--- a/compiled/complete/manifests/shop/policy-webhook-deploy.yaml +++ b/compiled/complete/manifests/shop/policy-webhook-deploy.yaml @@ -74,7 +74,7 @@ kind: MutatingWebhookConfiguration metadata: annotations: - cert-manager.io/inject-ca-from: shop/policy-webhook-tls + cert-manager.io/inject-ca-from-secret: shop/policy-webhook-tls labels: name: shop-policy-webhook name: shop-policy-webhook @@ -109,7 +109,7 @@ kind: ValidatingWebhookConfiguration metadata: annotations: - cert-manager.io/inject-ca-from: shop/policy-webhook-tls + cert-manager.io/inject-ca-from-secret: shop/policy-webhook-tls labels: name: shop-policy-webhook name: shop-policy-webhook --- a/compiled/complete/manifests/shop/policy-webhook-rbac.yaml +++ b/compiled/complete/manifests/shop/policy-webhook-rbac.yaml @@ -1,3 +1,36 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: Role +metadata: + labels: + name: policy-webhook + name: policy-webhook + namespace: kube-system +rules: + - apiGroups: + - coordination.k8s.io + resources: + - leases + verbs: + - get + - create + - update +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + labels: + name: policy-webhook + name: policy-webhook + namespace: kube-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: policy-webhook +subjects: + - kind: ServiceAccount + name: policy-webhook + namespace: shop +--- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: --- a/compiled/complete/manifests/shop/policy-webhook-svc.yaml +++ b/compiled/complete/manifests/shop/policy-webhook-svc.yaml @@ -7,7 +7,8 @@ namespace: shop spec: ports: - - name: https + - appProtocol: https + name: https port: 443 protocol: TCP targetPort: https --- a/compiled/complete/manifests/shop/web-svc.yaml +++ b/compiled/complete/manifests/shop/web-svc.yaml @@ -7,7 +7,8 @@ namespace: shop spec: ports: - - name: http + - appProtocol: http + name: http port: 80 protocol: TCP targetPort: http --- a/compiled/minimal/manifests/demo/echo-server-svc.yaml +++ b/compiled/minimal/manifests/demo/echo-server-svc.yaml @@ -7,7 +7,8 @@ namespace: demo spec: ports: - - name: http + - appProtocol: http + name: http port: 80 protocol: TCP targetPort: http