Mohammed Naser 2a095fac7c Added functional tests
Change-Id: I9a07147e1bc2c79b4ff5773bf5c2d4a44cfc694a
2020-03-29 15:57:10 -04:00

62 lines
1.7 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 }}
- "{{ . }}"
{{- end }}
ports:
- name: metrics
containerPort: 9374
protocol: TCP
readinessProbe:
httpGet:
path: /
port: metrics
livenessProbe:
httpGet:
path: /
port: metrics
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 }}