Skip to content

Commit ff2e4eb

Browse files
committed
OCPBUGS-28230: enforce termination message policy on all platform pods
1 parent 642fa6b commit ff2e4eb

File tree

6 files changed

+9
-0
lines changed

6 files changed

+9
-0
lines changed

templates/common/cloud-platform-alt-dns/files/coredns.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ contents:
5252
mountPath: "/etc/coredns"
5353
mountPropagation: HostToContainer
5454
imagePullPolicy: IfNotPresent
55+
terminationMessagePolicy: FallbackToLogsOnError
5556
containers:
5657
- name: coredns
5758
securityContext:
@@ -97,6 +98,7 @@ contents:
9798
requests:
9899
cpu: 100m
99100
memory: 200Mi
101+
terminationMessagePolicy: FallbackToLogsOnError
100102
volumeMounts:
101103
- name: kubeconfig
102104
mountPath: "/var/lib/kubelet"

templates/common/on-prem/files/coredns.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ contents:
4747
- "--resolvconf-path"
4848
- "/var/run/NetworkManager/resolv.conf"
4949
resources: {}
50+
terminationMessagePolicy: FallbackToLogsOnError
5051
volumeMounts:
5152
- name: kubeconfig
5253
mountPath: "/var/lib/kubelet"
@@ -110,6 +111,7 @@ contents:
110111
requests:
111112
cpu: 100m
112113
memory: 200Mi
114+
terminationMessagePolicy: FallbackToLogsOnError
113115
volumeMounts:
114116
- name: kubeconfig
115117
mountPath: "/var/lib/kubelet"

templates/common/on-prem/files/keepalived.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ contents:
5353
- "--out-dir"
5454
- "/etc/keepalived"
5555
resources: {}
56+
terminationMessagePolicy: FallbackToLogsOnError
5657
volumeMounts:
5758
- name: kubeconfig
5859
mountPath: "/etc/kubernetes"
@@ -218,6 +219,7 @@ contents:
218219
- name: nodeip-configuration
219220
mountPath: "/run/nodeip-configuration"
220221
mountPropagation: HostToContainer
222+
terminationMessagePolicy: FallbackToLogsOnError
221223
imagePullPolicy: IfNotPresent
222224
hostNetwork: true
223225
tolerations:

templates/master/00-master/on-prem/files/haproxy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ contents:
3838
- |
3939
/usr/bin/curl -o /dev/null -kLfs https://api-int.{{ .DNS.Spec.BaseDomain }}:6443/healthz
4040
resources: {}
41+
terminationMessagePolicy: FallbackToLogsOnError
4142
volumeMounts:
4243
- name: chroot-host
4344
mountPath: "/host"

templates/master/01-master-kubelet/_base/files/criometricsproxy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ contents:
6868
requests:
6969
cpu: 20m
7070
memory: 50Mi
71+
terminationMessagePolicy: FallbackToLogsOnError
7172
volumeMounts:
7273
- name: etc-kube
7374
mountPath: "/etc/kubernetes"

templates/worker/01-worker-kubelet/_base/files/criometricsproxy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ contents:
6868
requests:
6969
cpu: 20m
7070
memory: 50Mi
71+
terminationMessagePolicy: FallbackToLogsOnError
7172
volumeMounts:
7273
- name: etc-kube
7374
mountPath: "/etc/kubernetes"

0 commit comments

Comments
 (0)