From 1fd5cd5d4704237cc4fec8452f5addb5f1837175 Mon Sep 17 00:00:00 2001 From: Arnaud Lemaire Date: Sun, 17 Nov 2019 11:05:40 +0100 Subject: [PATCH] [stable/unbound] add clusterIP (#15304) * [stable/unbound] add clusterIP Signed-off-by: Arnaud Lemaire * [unbound] fix exechealthz container & deploy app/v1 Signed-off-by: Arnaud Lemaire --- stable/unbound/Chart.yaml | 2 +- stable/unbound/README.md | 1 + stable/unbound/templates/deployment.yaml | 2 +- stable/unbound/templates/service.yaml | 3 +++ stable/unbound/values.yaml | 4 +++- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/stable/unbound/Chart.yaml b/stable/unbound/Chart.yaml index 9966a522e0..eb325b9d75 100644 --- a/stable/unbound/Chart.yaml +++ b/stable/unbound/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 description: Unbound is a fast caching DNS resolver home: https://www.unbound.net/ name: unbound -version: 1.0.0 +version: 1.1.0 appVersion: 1.6.7 sources: - http://unbound.nlnetlabs.nl/svn/ diff --git a/stable/unbound/README.md b/stable/unbound/README.md index b4a4ae903b..c47199f32a 100644 --- a/stable/unbound/README.md +++ b/stable/unbound/README.md @@ -64,6 +64,7 @@ unbound.serverPort: 53 | ------------------------ | --------------------------- | | replicaCount | 1 | | externalIP | "" | +| clusterIP | "" | | unbound.image.repository | markbnj/unbound-docker | | unbound.image.tag | 0.1.0 | | unbound.image.pullPolicy | IfNotPresent | diff --git a/stable/unbound/templates/deployment.yaml b/stable/unbound/templates/deployment.yaml index 488208dd13..597f6efd39 100644 --- a/stable/unbound/templates/deployment.yaml +++ b/stable/unbound/templates/deployment.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta2 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "unbound.fullname" . }} diff --git a/stable/unbound/templates/service.yaml b/stable/unbound/templates/service.yaml index 1743d22d51..18d197ee65 100644 --- a/stable/unbound/templates/service.yaml +++ b/stable/unbound/templates/service.yaml @@ -8,6 +8,9 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: + {{- if .Values.clusterIP }} + clusterIP: {{ .Values.clusterIP }} + {{- end }} {{- if .Values.externalIP }} externalIPs: - {{ .Values.externalIP }} diff --git a/stable/unbound/values.yaml b/stable/unbound/values.yaml index 11792410cc..806018a334 100644 --- a/stable/unbound/values.yaml +++ b/stable/unbound/values.yaml @@ -17,7 +17,7 @@ unbound: # https://github.com/kubernetes/contrib/tree/master/exec-healthz healthz: image: - repository: googlecontainer/exechealthz + repository: gcr.io/google-containers/exechealthz tag: "1.2" pullPolicy: IfNotPresent @@ -29,6 +29,8 @@ tolerations: [] affinity: {} +# clusterIP: + # Controls which IP address ranges unbound will allow queries from. # If you want to use unbound as an upstream for kube-dns, or allow other pods # to query the resolver directly, you'll at least need to allow the