Skip to content

Commit

Permalink
Fix for AWS ServiceAccount (see kubernetes-sigs/external-dns#1185)
Browse files Browse the repository at this point in the history
  • Loading branch information
tektite-io committed Sep 15, 2021
1 parent c19f074 commit fb512b8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions snyk-monitor/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if ne .Values.securityContext.fsGroup "" }}
securityContext:
fsGroup: 65534
{{- end }}
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down Expand Up @@ -172,6 +176,13 @@ spec:
name: {{ .Values.defaultWorkloadPoliciesMap }}
{{- end }}
optional: true
{{- if .Values.volumes.projected.serviceAccountToken }}
- name: token-vol
projected:
sources:
- serviceAccountToken:
path: token
{{- end }}
- name: registries-conf
configMap:
name: {{ .Values.registriesConfConfigMap }}
Expand Down
15 changes: 15 additions & 0 deletions snyk-monitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,18 @@ psp:

# Override the excluded namespaces
excludedNamespaces:

# Allow specifying a fsGroup in
# spec:
# template:
# spec:
# securityContext:
# fsGroup: 65534 <-- here
securityContext:
fsGroup: ""

# A projected volume maps several existing volume sources into the same directory.
# https://kubernetes.io/docs/concepts/storage/volumes/#projected
volumes:
projected:
serviceAccountToken: false

0 comments on commit fb512b8

Please sign in to comment.