Mohammed Naser 7ae39f46ec Added Helm chart with linting
Change-Id: Ib2244866fdbbf5a1d0590352a5867506aedec191
2020-03-28 21:37:06 -04:00

58 lines
1.6 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "smokeping.fullname" . }}
labels:
{{- include "smokeping.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "smokeping.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "smokeping.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.version }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --ping.interval=1s
- --privileged
- --log.level=info
{{- range .Values.hosts }}
- "{{ .ip }}"
{{- end }}
ports:
- name: http
containerPort: 9374
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}