Files
devops-infra-helm-charts-gcp/helm-templates/node-thp-config/templates/daemonset.yaml
T
2026-08-26 03:39:42 +05:30

60 lines
1.9 KiB
YAML

apiVersion: apps/v1
kind: DaemonSet
metadata:
name: {{ .Values.daemonSet.name }}
namespace: {{ .Values.daemonSet.namespace }}
labels:
app: {{ .Values.daemonSet.name }}
{{- with .Values.daemonSet.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.daemonSet.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
app: {{ .Values.daemonSet.name }}
template:
metadata:
labels:
app: {{ .Values.daemonSet.name }}
{{- with .Values.pod.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.pod.annotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.global.imagePullSecrets }}
imagePullSecrets:
{{- range .Values.global.imagePullSecrets }}
- name: {{ . }}
{{- end }}
{{- end }}
hostNetwork: {{ .Values.pod.hostNetwork }}
hostPID: {{ .Values.pod.hostPID }}
hostIPC: {{ .Values.pod.hostIPC }}
containers:
- name: {{ .Values.container.name }}
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
command: {{ .Values.container.command | toJson }}
args: {{ .Values.container.args | toJson }}
securityContext:
{{- toYaml .Values.container.securityContext | nindent 12 }}
resources:
{{- toYaml .Values.container.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.volumeMounts | nindent 12 }}
volumes:
{{- toYaml .Values.volumes | nindent 8 }}
affinity:
{{- include "node-thp-config.nodeAffinity" . | nindent 8 }}
{{- with .Values.pod.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}