Skip to content
Open
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
12 changes: 12 additions & 0 deletions chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,12 @@ You should now be able to connect to the FusionAuth application at http://localh
<td><code>{}</code></td>
<td>Define labels for fusionauth Deployment.</td>
</tr>
<tr>
<td><code>podSecurityContext</code></td>
<td>object</td>
<td><code>{}</code></td>
<td>Security context for the pod. Ref: <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context/">Kubernetes docs</a>.</td>
</tr>
<tr>
<td><code>readinessProbe</code></td>
<td>object</td>
Expand Down Expand Up @@ -485,6 +491,12 @@ You should now be able to connect to the FusionAuth application at http://localh
<td><code>"http"</code></td>
<td>Protocol to use when connecting to elasticsearch. Ignored when <code>search.engine</code> is NOT <code>elasticsearch</code>.</td>
</tr>
<tr>
<td><code>securityContext</code></td>
<td>object</td>
<td><code>{}</code></td>
<td>Security context for the fusionauth container. Ref: <a href="https://kubernetes.io/docs/tasks/configure-pod-container/security-context/">Kubernetes docs</a>.</td>
</tr>
<tr>
<td><code>service.annotations</code></td>
<td>object</td>
Expand Down
8 changes: 8 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ spec:
{{- end }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 12 }}
{{- end }}

{{- if or .Values.kickstart.enabled .Values.extraVolumeMounts }}
volumeMounts:
Expand All @@ -149,6 +153,10 @@ spec:
{{- if .Values.extraContainers }}
{{- toYaml .Values.extraContainers | nindent 8 }}
{{- end }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.dnsConfig }}
dnsConfig:
{{- toYaml .Values.dnsConfig |nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"nodeSelector": {
"type": "object"
},
"podSecurityContext": {
"type": "object"
},
"podAnnotations": {
"type": "object"
},
Expand Down Expand Up @@ -246,6 +249,9 @@
"resources": {
"type": "object"
},
"securityContext": {
"type": "object"
},
"search": {
"type": "object",
"properties": {
Expand Down
13 changes: 13 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,19 @@ autoscaling:
targetCPU: 50
# targetMemory: 50

# podSecurityContext -- Security context for the pod. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
podSecurityContext: {}
# runAsNonRoot: true
# seccompProfile:
# type: RuntimeDefault

# securityContext -- Security context for the fusionauth container. Ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
securityContext: {}
# allowPrivilegeEscalation: false
# capabilities:
# drop:
# - ALL

# nodeSelector -- Define nodeSelector for kubernetes to use when scheduling fusionauth pods.
nodeSelector: {}

Expand Down