diff --git a/charts/unbound/templates/deployment.yaml b/charts/unbound/templates/deployment.yaml index 514421e..f3016a0 100644 --- a/charts/unbound/templates/deployment.yaml +++ b/charts/unbound/templates/deployment.yaml @@ -64,18 +64,6 @@ spec: {{- with .Values.containers.unbound.args }} args: {{ toYaml . | nindent 10 }} {{- end }} - - name: "healthz" - image: {{ .Values.containers.healthz.image.repository }}:{{ .Values.containers.healthz.image.tag }} - imagePullPolicy: {{ .Values.containers.healthz.image.pullPolicy | quote }} - {{- with .Values.containers.healthz.resources }} - resources: {{ toYaml . | nindent 10 }} - {{- end }} - args: - - "-cmd=nslookup health.check.unbound. 127.0.0.1:{{ .Values.containers.unbound.serverPort }} > /dev/null" - ports: - - name: healthz - containerPort: 8080 - protocol: TCP {{- if .Values.metrics.enabled }} - name: "exporter" image: {{ .Values.containers.exporter.image.repository }}:{{ .Values.containers.exporter.image.tag }} diff --git a/charts/unbound/values.yaml b/charts/unbound/values.yaml index 9ba2103..5f7158b 100644 --- a/charts/unbound/values.yaml +++ b/charts/unbound/values.yaml @@ -75,15 +75,6 @@ containers: # extraLines: # - 'stub-first: yes' - healthz: - image: - repository: gcr.io/google-containers/exechealthz - tag: "1.2" - pullPolicy: IfNotPresent - resources: - requests: - cpu: 2m - memory: 10Mi exporter: image: repository: tombokombo/unbound-exporter @@ -101,18 +92,22 @@ strategy: maxUnavailable: 1 livenessProbe: - httpGet: - path: "/healthz" - port: 8080 + exec: + command: + - nslookup + - health.check.unbound. + - 127.0.0.1 initialDelaySeconds: 10 timeoutSeconds: 5 periodSeconds: 10 failureThreshold: 10 readinessProbe: - httpGet: - path: "/healthz" - port: 8080 + exec: + command: + - nslookup + - health.check.unbound. + - 127.0.0.1 initialDelaySeconds: 10 timeoutSeconds: 5 periodSeconds: 10