Deployment
Prerequisites for Deploying on Openshift
If you are deploying on Openshift, you need to use the group id from the uid-range assigned to the project:
oc new-project causely
oc get ns causely -o yaml|grep uid-range
openshift.io/sa.scc.uid-range: 1000630000/10000
and include in the causely-values.yaml
file:
global:
securityContext:
fsGroup: 1000630000
telemetry:
otel:
enabled: false
Or you can change the security context of the project to the 'anyuid' SCC
oc adm policy add-scc-to-group anyuid system:serviceaccounts:causely
In both cases, you need to assign the privileged
SCC to the causely-agent
service account used by the Causely agents:
oc adm policy add-scc-to-user privileged -z causely-agent -n causely
Using a custom StorageClass instead of the default one
If you are deploying into a cluster, where there is no default StorageClass defined, you can specify the StorageClass to use for persistent volumes:
global:
storageClass: ocs-storagecluster-ceph-rbd
Alternatively you can annotate a default StorageClass:
kubectl patch storageclass ocs-storagecluster-ceph-rbd -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'