Skip to content

support set securityContext #881

Answered by Zerpet
alochym01 asked this question in Q&A
Discussion options

You must be logged in to vote

You can configure the security context via StatefulSet override, something like this:

apiVersion: rabbitmq.com/v1beta1
kind: RabbitmqCluster
metadata:
  name: my-rabbitmqcluster
spec:
  # Any properties you already have +
  override:
    statefulSet:
      spec:
        template:
          spec:
            containers:
              - name: rabbitmq
            securityContext:
              fsGroup: 1000
              runAsUser: 1000

We do not plan to add the security context as a top level proeprty in our Spec for now.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by alochym01
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #880 on October 27, 2021 11:11.