-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for issue where you can't deploy via Helm to a cluster with PSP e…
…nabled (#4863) * Fix issue where Stratos can't be deployed into a k8s cluster with PSP enabled * Readme fix * Fix typo in the new value name * Another typo fix * Document psp values for annotations and extra labels * Only set service account name for db if psp is enabled
- Loading branch information
Showing
7 changed files
with
145 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{{- if and .Values.console.pspEnabled (not .Values.console.pspName) }} | ||
apiVersion: policy/v1beta1 | ||
kind: PodSecurityPolicy | ||
metadata: | ||
name: {{ .Release.Name }}-psp | ||
{{- if .Values.console.pspAnnotations }} | ||
annotations: | ||
{{ toYaml .Values.console.pspAnnotations | indent 4 }} | ||
{{- end }} | ||
labels: | ||
app.kubernetes.io/name: "stratos" | ||
app.kubernetes.io/instance: "{{ .Release.Name }}" | ||
app.kubernetes.io/version: "{{ .Chart.AppVersion }}" | ||
app.kubernetes.io/component: "console-psp" | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}" | ||
{{- if .Values.console.pspExtraLabels }} | ||
{{ toYaml .Values.console.pspExtraLabels | indent 4 }} | ||
{{- end }} | ||
spec: | ||
privileged: false | ||
allowPrivilegeEscalation: false | ||
allowedCapabilities: | ||
- '*' | ||
volumes: | ||
- 'configMap' | ||
- 'downwardAPI' | ||
- 'emptyDir' | ||
- 'persistentVolumeClaim' | ||
- 'secret' | ||
- 'projected' | ||
hostNetwork: false | ||
hostPID: false | ||
hostIPC: false | ||
runAsUser: | ||
rule: 'RunAsAny' | ||
runAsGroup: | ||
rule: 'RunAsAny' | ||
seLinux: | ||
rule: 'RunAsAny' | ||
supplementalGroups: | ||
rule: 'RunAsAny' | ||
fsGroup: | ||
rule: 'RunAsAny' | ||
readOnlyRootFilesystem: false | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters