manifests/peer-validation.yaml: fix image and flag

Use a maintained fork of certgen.
The former project is not maintained anymore and will not work for
Kubernteses v1.22 because the admission v1beta1 API was dropped.

Also fix the name of the liste-metrics flag.

Signed-off-by: leonnicolas <leonloechner@gmx.de>
This commit is contained in:
leonnicolas 2021-09-07 10:33:29 +02:00
parent 6b93cc2ad9
commit c8ed21cac4
No known key found for this signature in database
GPG Key ID: 088D0743E2B65C07

View File

@ -51,7 +51,7 @@ spec:
- webhook
- --cert-file=/run/secrets/tls/tls.crt
- --key-file=/run/secrets/tls/tls.key
- --metrics-address=:1107
- --listen-metrics=:1107
- --listen=:8443
ports:
- containerPort: 8443
@ -152,7 +152,7 @@ spec:
serviceAccountName: kilo-peer-validation
initContainers:
- name: create
image: jettech/kube-webhook-certgen:v1.5.2
image: k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.0
args:
- create
- --namespace=kilo
@ -162,7 +162,7 @@ spec:
- --cert-name=tls.crt
containers:
- name: patch
image: jettech/kube-webhook-certgen:v1.5.2
image: k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.0
args:
- patch
- --webhook-name=peers.kilo.squat.ai