Skip to content

Commit

Permalink
Fix stateful set syntax and add ordianal number env var.
Browse files Browse the repository at this point in the history
  • Loading branch information
EarthlingDavey committed Dec 5, 2024
1 parent 7632c49 commit c92b1b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions deploy/development/stateful-set.tpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ metadata:
spec:
replicas: 1
revisionHistoryLimit: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 100%
selector:
matchLabels:
app: intranet-archive
Expand All @@ -31,7 +26,6 @@ spec:
allowPrivilegeEscalation: false
runAsUser: 1001
runAsGroup: 1001
fsGroup: 1001
capabilities:
drop: ["ALL"]
resources:
Expand All @@ -57,6 +51,10 @@ spec:
secretKeyRef:
name: cloudfront-output
key: cloudfront_public_keys
- name: ORDINAL_NUMBER
valueFrom:
fieldRef:
fieldPath: metadata.labels['apps.kubernetes.io/pod-index']
envFrom:
- configMapRef:
name: ${KUBE_NAMESPACE}-config
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
- .env
container_name: intranet-archive
environment:
ORDINAL_NUMBER: 0
VIRTUAL_HOST: app.archive.intranet.docker
VIRTUAL_PORT: "8080"
volumes:
Expand Down

0 comments on commit c92b1b2

Please sign in to comment.