Stable/unbound/add tcp port + minor fixes (#5544)

* Add the tcp port definition to the unbound container

* Add the tcp port definition to the unbound service

* Wrap resources in with block to prevent rendering when empty

* Style: unindent remaining with blocks to left margin

* Bump chart version.
This commit is contained in:
Mark Betz
2018-05-17 23:40:01 -07:00
committed by k8s-ci-robot
parent 973b4facdb
commit b8e6f2db5f
3 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
description: Unbound is a fast caching DNS resolver
home: https://www.unbound.net/
name: unbound
version: 0.1.1
version: 0.1.2
appVersion: 1.6.7
sources:
- http://unbound.nlnetlabs.nl/svn/
+12 -8
View File
@@ -32,12 +32,17 @@ spec:
- name: "unbound"
image: {{ .Values.unbound.image.repository }}:{{ .Values.unbound.image.tag }}
imagePullPolicy: {{ .Values.unbound.image.pullPolicy | quote }}
{{- with .Values.resources }}
resources:
{{ toYaml .Values.resources | indent 10 }}
{{ toYaml . | indent 10 }}
{{- end }}
ports:
- name: "dns-udp"
containerPort: {{ .Values.unbound.serverPort }}
protocol: "UDP"
- name: "dns-tcp"
containerPort: {{ .Values.unbound.serverPort }}
protocol: "TCP"
volumeMounts:
- name: "unbound-conf"
mountPath: "/etc/unbound/"
@@ -49,7 +54,6 @@ spec:
initialDelaySeconds: 5
timeoutSeconds: 2
readinessProbe:
exec:
httpGet:
path: "/healthz"
port: 8080
@@ -68,16 +72,16 @@ spec:
- name: "unbound-conf"
configMap:
name: {{ template "unbound.fullname" . }}
{{- with .Values.nodeSelector }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}
{{- end }}
+4
View File
@@ -16,3 +16,7 @@ spec:
protocol: UDP
port: {{ .Values.unbound.serverPort }}
targetPort: dns-udp
- name: dns-tcp
protocol: TCP
port: {{ .Values.unbound.serverPort }}
targetPort: dns-tcp