Skip to content

Commit

Permalink
Fix helm chart.
Browse files Browse the repository at this point in the history
- Set fsGroup for correct file permissions
- Set memory default to 256 since Atlantis doesn't need more unless you
have large TF
- Use latest version of Atlantis
  • Loading branch information
lkysow committed Nov 1, 2018
1 parent 2fbfeab commit ba8e54d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion helm/atlantis/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ spec:
app: {{ template "atlantis.name" . }}
release: {{ .Release.Name }}
spec:
securityContext:
fsGroup: 1000
volumes:
{{- range $name, $_ := .Values.serviceAccountSecrets }}
- name: {{ $name }}-volume
Expand Down Expand Up @@ -187,4 +189,4 @@ spec:
requests:
# The biggest thing Atlantis stores is the Git repo when it checks it out.
# It deletes the repo after the pull request is merged.
storage: 5Gi
storage: 5Gi
6 changes: 3 additions & 3 deletions helm/atlantis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ serviceAccountSecrets:

image:
repository: runatlantis/atlantis
tag: v0.4.5
tag: v0.4.11
pullPolicy: IfNotPresent

## enable using atlantis.yaml file
Expand Down Expand Up @@ -115,10 +115,10 @@ ingress:

resources:
requests:
memory: 1Gi
memory: 256Mi
cpu: 100m
limits:
memory: 1Gi
memory: 256Mi
cpu: 100m

replicaCount: 1
Expand Down

0 comments on commit ba8e54d

Please sign in to comment.