Skip to content

Commit 1fd015a

Browse files
RamLavimaiqueb
authored andcommitted
Set container's TerminationMessagePolicy to FallbackToLogsOnError
To comply with best practices, all the containers in all the pods, must set the TerminationMessagePolicy field to FallbackToLogsOnError [0] [0] https://github.com/redhat-best-practices-for-k8s/certsuite/blob/main/CATALOG.md#observability-termination-policy Signed-off-by: Ram Lavi <[email protected]>
1 parent dbbb88b commit 1fd015a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

manifests/crio-dynamic-networks-controller.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ spec:
129129
mountPath: /host/run/multus/multus.sock
130130
- name: cri-socket
131131
mountPath: /host/run/crio/crio.sock
132+
terminationMessagePolicy: FallbackToLogsOnError
132133
terminationGracePeriodSeconds: 10
133134
volumes:
134135
- name: dynamic-networks-controller-config-dir

manifests/dynamic-networks-controller.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ spec:
129129
mountPath: /host/run/multus/multus.sock
130130
- name: cri-socket
131131
mountPath: /host/run/containerd/containerd.sock
132+
terminationMessagePolicy: FallbackToLogsOnError
132133
terminationGracePeriodSeconds: 10
133134
volumes:
134135
- name: dynamic-networks-controller-config-dir

templates/dynamic-networks-controller.yaml.j2

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ spec:
129129
mountPath: /host{{ MULTUS_SOCKET_PATH }}
130130
- name: cri-socket
131131
mountPath: /host{{ CRI_SOCKET_PATH }}
132+
terminationMessagePolicy: FallbackToLogsOnError
132133
terminationGracePeriodSeconds: 10
133134
volumes:
134135
- name: dynamic-networks-controller-config-dir

0 commit comments

Comments
 (0)