From 980965bb4ed785f3c7c1854ac149a09e80366753 Mon Sep 17 00:00:00 2001 From: Feruzjon Muyassarov Date: Thu, 12 Oct 2023 16:04:15 +0300 Subject: [PATCH] deployment: adjust Pod restartPolicy to OnFailure Signed-off-by: Feruzjon Muyassarov --- deployment/helm/balloons/templates/daemonset.yaml | 2 +- deployment/helm/memory-qos/templates/daemonset.yaml | 2 +- deployment/helm/memtierd/templates/daemonset.yaml | 2 +- deployment/helm/topology-aware/templates/daemonset.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment/helm/balloons/templates/daemonset.yaml b/deployment/helm/balloons/templates/daemonset.yaml index a6463c272..f4f067fb2 100644 --- a/deployment/helm/balloons/templates/daemonset.yaml +++ b/deployment/helm/balloons/templates/daemonset.yaml @@ -14,6 +14,7 @@ spec: labels: {{- include "balloons-plugin.labels" . | nindent 8 }} spec: + restartPolicy: OnFailure serviceAccount: nri-resource-policy-balloons nodeSelector: kubernetes.io/os: "linux" @@ -22,7 +23,6 @@ spec: - name: patch-runtime image: {{ .Values.initContainerImage.name }}:{{ .Values.initContainerImage.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.initContainerImage.pullPolicy }} - restartPolicy: Never volumeMounts: - name: containerd-config mountPath: /etc/containerd diff --git a/deployment/helm/memory-qos/templates/daemonset.yaml b/deployment/helm/memory-qos/templates/daemonset.yaml index 9f3c7f001..88261bb56 100644 --- a/deployment/helm/memory-qos/templates/daemonset.yaml +++ b/deployment/helm/memory-qos/templates/daemonset.yaml @@ -14,6 +14,7 @@ spec: labels: {{- include "memory-qos.labels" . | nindent 8 }} spec: + restartPolicy: OnFailure nodeSelector: kubernetes.io/os: "linux" {{- if .Values.nri.patchRuntimeConfig }} @@ -21,7 +22,6 @@ spec: - name: patch-runtime image: {{ .Values.initContainerImage.name }}:{{ .Values.initContainerImage.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.initContainerImage.pullPolicy }} - restartPolicy: Never volumeMounts: - name: containerd-config mountPath: /etc/containerd diff --git a/deployment/helm/memtierd/templates/daemonset.yaml b/deployment/helm/memtierd/templates/daemonset.yaml index 48fdbb958..8af4bc97a 100644 --- a/deployment/helm/memtierd/templates/daemonset.yaml +++ b/deployment/helm/memtierd/templates/daemonset.yaml @@ -14,6 +14,7 @@ spec: labels: {{- include "memtierd.labels" . | nindent 8 }} spec: + restartPolicy: OnFailure nodeSelector: kubernetes.io/os: "linux" hostPID: true @@ -22,7 +23,6 @@ spec: - name: patch-runtime image: {{ .Values.initContainerImage.name }}:{{ .Values.initContainerImage.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.initContainerImage.pullPolicy }} - restartPolicy: Never volumeMounts: - name: containerd-config mountPath: /etc/containerd diff --git a/deployment/helm/topology-aware/templates/daemonset.yaml b/deployment/helm/topology-aware/templates/daemonset.yaml index c5e3f70fb..02e2bc9d0 100644 --- a/deployment/helm/topology-aware/templates/daemonset.yaml +++ b/deployment/helm/topology-aware/templates/daemonset.yaml @@ -14,6 +14,7 @@ spec: labels: {{- include "topology-aware-plugin.labels" . | nindent 8 }} spec: + restartPolicy: OnFailure serviceAccount: nri-resource-policy-topology-aware nodeSelector: kubernetes.io/os: "linux" @@ -22,7 +23,6 @@ spec: - name: patch-runtime image: {{ .Values.initContainerImage.name }}:{{ .Values.initContainerImage.tag | default .Chart.AppVersion }} imagePullPolicy: {{ .Values.initContainerImage.pullPolicy }} - restartPolicy: Never volumeMounts: - name: containerd-config mountPath: /etc/containerd