Ver Fonte

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 há 4 anos atrás
pai
commit
c8ed21cac4
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      manifests/peer-validation.yaml

+ 3 - 3
manifests/peer-validation.yaml

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