summaryrefslogtreecommitdiffstats
path: root/deploy/example-webhook/templates/apiservice.yaml
diff options
context:
space:
mode:
authorJames Munnelly <james@munnelly.eu>2019-04-29 18:09:16 +0100
committerJames Munnelly <james@munnelly.eu>2019-04-29 18:09:16 +0100
commit2c01592255d90e2636b9a5f40cd7e2fbcb0e5529 (patch)
tree2bb3bee8630a1656231fe64393e87303ed2914c7 /deploy/example-webhook/templates/apiservice.yaml
parent3935fd70e743931e6322bf088cd3e1c866f2e2cd (diff)
downloadcert-manager-webhook-hostinger-2c01592255d90e2636b9a5f40cd7e2fbcb0e5529.tar.gz
cert-manager-webhook-hostinger-2c01592255d90e2636b9a5f40cd7e2fbcb0e5529.zip
Use cert-manager to secure APIService resource
Signed-off-by: James Munnelly <james@munnelly.eu>
Diffstat (limited to 'deploy/example-webhook/templates/apiservice.yaml')
-rw-r--r--deploy/example-webhook/templates/apiservice.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/example-webhook/templates/apiservice.yaml b/deploy/example-webhook/templates/apiservice.yaml
index ddd7c75..504ab91 100644
--- a/deploy/example-webhook/templates/apiservice.yaml
+++ b/deploy/example-webhook/templates/apiservice.yaml
@@ -7,11 +7,12 @@ metadata:
chart: {{ include "example-webhook.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
+ annotations:
+ certmanager.k8s.io/inject-ca-from: "{{ .Release.Namespace }}/{{ include "example-webhook.servingCertificate" . }}"
spec:
group: {{ .Values.groupName }}
groupPriorityMinimum: 1000
versionPriority: 15
- insecureSkipTLSVerify: true
service:
name: {{ include "example-webhook.fullname" . }}
namespace: {{ .Release.Namespace }}