Install operator in Openshift with empty securityContext - cniackz/public GitHub Wiki
Objective:
To install Operator in OpenShift with Empty securityContext
Steps:
-
With
crc
deployed OpenShift locally, instructions at: https://console.redhat.com/openshift/create/local -
Get Helm files from https://github.com/minio/operator/blob/master/helm-releases/operator-4.5.8.tgz
-
Modify the securityContext in the values.yaml file for both deployments:
securityContext: {}
containerSecurityContext: {}
- Install operator:
helm install \
--namespace minio-operator \
--create-namespace \
minio-operator ./operator
- Expectation is that OpenShift will select the values for securityContext since they are empty in the Deployments
GitOps / ArgoCD
- If using Argo CD then we should use "" rather than {}
operator:
replicaCount: 2
securityContext: ""
containerSecurityContext: ""
console:
securityContext: ""
containerSecurityContext: ""