Skip to content

Commit

Permalink
Merge pull request #152 from fmuyassarov/fix-restartPolicy
Browse files Browse the repository at this point in the history
deployment: adjust Pod restartPolicy to OnFailure
  • Loading branch information
marquiz authored Oct 12, 2023
2 parents 5ffea63 + 980965b commit 68db912
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployment/helm/balloons/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/memory-qos/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ spec:
labels:
{{- include "memory-qos.labels" . | nindent 8 }}
spec:
restartPolicy: OnFailure
nodeSelector:
kubernetes.io/os: "linux"
{{- if .Values.nri.patchRuntimeConfig }}
initContainers:
- 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
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/memtierd/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
labels:
{{- include "memtierd.labels" . | nindent 8 }}
spec:
restartPolicy: OnFailure
nodeSelector:
kubernetes.io/os: "linux"
hostPID: true
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/topology-aware/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 68db912

Please sign in to comment.