diff --git a/k8s/deployment-nodejs.yaml b/k8s/deployment-nodejs.yaml index 9f16fe3..267d50b 100644 --- a/k8s/deployment-nodejs.yaml +++ b/k8s/deployment-nodejs.yaml @@ -18,6 +18,9 @@ spec: metadata: labels: app: storefront + annotations: + # Git revision annotation - changes with each commit to force pod restart + gitRevision: ${GIT_REVISION} spec: initContainers: - name: clone diff --git a/k8s/kustomization.yaml b/k8s/kustomization.yaml index b269891..20719b0 100644 --- a/k8s/kustomization.yaml +++ b/k8s/kustomization.yaml @@ -4,13 +4,3 @@ resources: - deployment-nodejs.yaml - service.yaml - ingress.yaml - -# Generate a ConfigMap with git revision info -# This ConfigMap changes on each Flux reconciliation, triggering pod restarts -configMapGenerator: - - name: deployment-metadata - literals: - - GIT_REVISION=${GIT_REVISION} - - DEPLOY_TIME=${DEPLOY_TIME} - options: - disableNameSuffixHash: false # Changing hash forces pod restart