Browse Source

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>
leonnicolas 5 years ago
parent
commit
c8ed21cac4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      manifests/peer-validation.yaml

+ 3 - 3
manifests/peer-validation.yaml

@@ -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