Unverified Commit 95c3b514 authored by Alex Manning's avatar Alex Manning
Browse files

Allow configuration of container security context from helm chart.

parent 4a18dbba
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -53,6 +53,9 @@ spec:
            # where files are expected to change
            - name: tmp
              mountPath: /tmp
          {{- with $auth.securityContext }}
          securityContext: {{ toYaml . | nindent 12 }}
          {{- end }}
      {{- with $auth.nodeSelector }}
      nodeSelector: {{ toYaml . | nindent 8 }}
      {{- end }}
+3 −0
Original line number Diff line number Diff line
@@ -38,6 +38,9 @@ spec:
            - name: policy
              mountPath: /policies
              readOnly: true
          {{- with $opa.securityContext }}
          securityContext: {{ toYaml . | nindent 12 }}
          {{- end }}
      {{- with $opa.nodeSelector }}
      nodeSelector: {{ toYaml . | nindent 8 }}
      {{- end }}
+3 −2
Original line number Diff line number Diff line
@@ -43,8 +43,9 @@ spec:
          livenessProbe:
            <<: *probe
            initialDelaySeconds: 120
          securityContext:
            readOnlyRootFilesystem: true
          {{- with $search.securityContext }}
          securityContext: {{ toYaml . | nindent 12 }}
          {{- end }}
          volumeMounts:
            - name: esg-config
              mountPath: /esg/config
+13 −1
Original line number Diff line number Diff line
@@ -115,6 +115,10 @@ auth:
        userinfo_endpoint:
        client_kwargs:
          scope: openid profile email
  # Security context for auth container.
  securityContext:
    # Run with a read-only root filesystem by default
    readOnlyRootFilesystem: true

###
# OPA server configuration
@@ -153,6 +157,10 @@ opa:
  logLevel: info
  # Paths to restrict
  restrictedPaths: []
  # Security context for OPA container.
  securityContext:
    # Run with a read-only root filesystem by default
    readOnlyRootFilesystem: true

###
# Data node configuration
@@ -345,7 +353,6 @@ data:
    # See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
    tolerations:


###
# Index node configuration
###
@@ -463,3 +470,8 @@ index:
    # The tolerations for the search pods
    # See https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
    tolerations:
  # Security context for search container.

    securityContext:
      # Run with a read-only root filesystem by default
      readOnlyRootFilesystem: true