feat: add deployment-metadata configmap to trigger pod restarts on git changes
This commit is contained in:
@@ -18,10 +18,6 @@ spec:
|
||||
metadata:
|
||||
labels:
|
||||
app: storefront
|
||||
annotations:
|
||||
# Flux will substitute this with the actual git revision
|
||||
# Changing this annotation forces pod restart on git updates
|
||||
gitRevision: ${GIT_REVISION:-unknown}
|
||||
spec:
|
||||
initContainers:
|
||||
- name: clone
|
||||
@@ -120,6 +116,10 @@ spec:
|
||||
- start
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: deployment-metadata
|
||||
optional: true
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: "production"
|
||||
|
||||
Reference in New Issue
Block a user