From c92b1b2fdc052fc33f083f0243908039d18ea892 Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Thu, 5 Dec 2024 12:06:20 +0000 Subject: [PATCH] Fix stateful set syntax and add ordianal number env var. --- deploy/development/stateful-set.tpl.yml | 10 ++++------ docker-compose.yml | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/deploy/development/stateful-set.tpl.yml b/deploy/development/stateful-set.tpl.yml index fc4560c..6631108 100644 --- a/deploy/development/stateful-set.tpl.yml +++ b/deploy/development/stateful-set.tpl.yml @@ -5,11 +5,6 @@ metadata: spec: replicas: 1 revisionHistoryLimit: 5 - strategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 0 - maxSurge: 100% selector: matchLabels: app: intranet-archive @@ -31,7 +26,6 @@ spec: allowPrivilegeEscalation: false runAsUser: 1001 runAsGroup: 1001 - fsGroup: 1001 capabilities: drop: ["ALL"] resources: @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 9fdc7a0..3849ef3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,6 +11,7 @@ services: - .env container_name: intranet-archive environment: + ORDINAL_NUMBER: 0 VIRTUAL_HOST: app.archive.intranet.docker VIRTUAL_PORT: "8080" volumes: