Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ spec:
{{- with .Values.operator.disableComponentControllers }}
- --disable-component-controllers={{ . }}
{{- end }}
{{- with .Values.operator.livenessProbe }}
livenessProbe:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.operator.readinessProbe }}
readinessProbe:
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- name: env
mountPath: /fluent-operator
Expand Down
39 changes: 37 additions & 2 deletions charts/fluent-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ operator:
priorityClassName: ""
# -- Pod security context for Fluent Operator
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext: {}
podSecurityContext:
runAsNonRoot: true
runAsUser: 65532
runAsGroup: 65532
fsGroup: 65532
seccompProfile:
type: RuntimeDefault
Comment thread
smallc2009 marked this conversation as resolved.
rbac:
# -- Specifies whether to create the ClusterRole and ClusterRoleBinding
create: true
Expand All @@ -48,7 +54,36 @@ operator:
additionalRules: []
# -- Container security context for Fluent Operator container
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext: {}
securityContext:
runAsNonRoot: true
runAsUser: 65532
runAsGroup: 65532
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
# -- Liveness probe for Fluent Operator
# Ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe:
httpGet:
path: /healthz
port: 8081
initialDelaySeconds: 15
periodSeconds: 20
timeoutSeconds: 5
failureThreshold: 3
# -- Readiness probe for Fluent Operator
readinessProbe:
httpGet:
path: /readyz
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
# -- Fluent Operator resource requests and limits
resources:
limits:
Expand Down
Loading