aaronsuns commented on issue #671: URL: https://github.com/apache/solr-operator/issues/671#issuecomment-1881736950
Update: create a service account and SCC could run it on openshift without the above change in solr-operator. ``` # Service Account apiVersion: v1 kind: ServiceAccount metadata: name: solr-service-account --- # SCC apiVersion: security.openshift.io/v1 kind: SecurityContextConstraints metadata: name: solr-scc priority: 10 allowPrivilegedContainer: false runAsUser: type: MustRunAs uid: 8983 seLinuxContext: type: MustRunAs fsGroup: type: MustRunAs ranges: - min: 8983 max: 8983 --- # RoleBinding kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata: name: solr-scc-binding subjects: - kind: ServiceAccount name: solr-service-account roleRef: kind: Role name: solr-scc-role apiGroup: rbac.authorization.k8s.io # Role kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: solr-scc-role rules: - apiGroups: ["security.openshift.io"] resources: ["securitycontextconstraints"] verbs: ["use"] ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org