Created
October 23, 2023 14:17
-
-
Save schmurfy/7f970d3909b8818b0595f60d21c8b848 to your computer and use it in GitHub Desktop.
force_change
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: ntp-server | |
spec: | |
template: | |
spec: | |
containers: | |
- name: chrony | |
image: "something:0" | |
command: ["chronyd", "-d", "-s", "-f", "/config/chronyd.conf"] | |
ports: | |
- name: ntp | |
protocol: UDP | |
containerPort: 123 | |
env: | |
- name: SOME_VAR | |
value: toto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: app2 | |
spec: | |
template: | |
spec: | |
containers: | |
- name: chrony | |
image: "something:0" | |
command: ["chronyd", "-d", "-s", "-f", "/config/chronyd.conf"] | |
ports: | |
- name: ntp | |
protocol: UDP | |
containerPort: 123 | |
env: | |
- name: SOME_VAR | |
value: toto | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#@ load("@ytt:overlay", "overlay") | |
#@overlay/match by=overlay.subset({"kind": "Deployment"}), expects="1+" | |
--- | |
spec: | |
template: | |
spec: | |
containers: | |
#@overlay/match by=overlay.index(0), missing_ok=True | |
- env: | |
- name: __FORCED_RESTART | |
value: rr |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment