Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
gangway: add a serviceaccount
Browse files Browse the repository at this point in the history
Gangway relies on a service account (any service account) to be mounted
on the pod file system to figure out the cluster CA.

We've disabled automounting of the default service account with the
our admission wehbook and this was breaking Gangway.

This creates a dummy service account so the Gangway pod has access to
the cluster CA file.
  • Loading branch information
iaguis committed Oct 20, 2020
1 parent 5b9b2de commit 44ec5c7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
1 change: 1 addition & 0 deletions assets/charts/components/gangway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ spec:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
serviceAccountName: gangway
initContainers:
- name: download-theme
image: alpine/git:1.0.7
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
app: gangway
name: gangway
10 changes: 8 additions & 2 deletions pkg/assets/generated_assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 44ec5c7

Please sign in to comment.