mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Trigger rollout with a change to spec.template
The documentation clearly says: ``` Note: A Deployment’s rollout is triggered if and only if the Deployment’s pod template (that is, .spec.template) is changed, for example if the labels or container images of the template are updated. Other updates, such as scaling the Deployment, do not trigger a rollout. ``` Read: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
This commit is contained in:
parent
ecbdfdfb55
commit
09b6cbaba5
@ -4,8 +4,6 @@
|
||||
metadata:
|
||||
name: nitro-backend
|
||||
namespace: human-connection
|
||||
labels:
|
||||
commit: "COMMIT"
|
||||
spec:
|
||||
replicas: 1
|
||||
minReadySeconds: 15
|
||||
@ -20,6 +18,7 @@
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
human-connection.org/commit: COMMIT
|
||||
human-connection.org/selector: deployment-human-connection-backend
|
||||
name: "nitro-backend"
|
||||
spec:
|
||||
|
||||
@ -3,8 +3,6 @@ kind: Deployment
|
||||
metadata:
|
||||
name: nitro-web
|
||||
namespace: human-connection
|
||||
labels:
|
||||
commit: "COMMIT"
|
||||
spec:
|
||||
replicas: 2
|
||||
minReadySeconds: 15
|
||||
@ -15,6 +13,7 @@ spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
human-connection.org/commit: COMMIT
|
||||
human-connection.org/selector: deployment-human-connection-web
|
||||
name: nitro-web
|
||||
spec:
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
metadata:
|
||||
labels:
|
||||
commit: <COMMIT>
|
||||
spec:
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
human-connection.org/commit: <COMMIT>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user