@@ -56,9 +56,34 @@ Notice that in the configuration, we define an `extensionProviders` section that
56
56
[...]
57
57
```
58
58
59
+ ### Deploy cert-manager
60
+
61
+ The Kyverno Authz Server comes with a validation webhook and needs a certificate to let the api server call into it.
62
+
63
+ Let's deploy ` cert-manager ` to manage the certificate we need.
64
+
65
+ ``` bash
66
+ # install cert-manager
67
+ helm install cert-manager \
68
+ --namespace cert-manager --create-namespace \
69
+ --wait \
70
+ --repo https://charts.jetstack.io cert-manager \
71
+ --set crds.enabled=true
72
+
73
+ # create a self-signed cluster issuer
74
+ kubectl apply -f - << EOF
75
+ apiVersion: cert-manager.io/v1
76
+ kind: ClusterIssuer
77
+ metadata:
78
+ name: selfsigned-issuer
79
+ spec:
80
+ selfSigned: {}
81
+ EOF
82
+ ```
83
+
59
84
### Deploy the Kyverno Authz Server
60
85
61
- The first step is to deploy the Kyverno Authz Server.
86
+ Now we can deploy the Kyverno Authz Server.
62
87
63
88
``` bash
64
89
# create the kyverno namespace
@@ -68,9 +93,13 @@ kubectl create ns kyverno
68
93
kubectl label namespace kyverno istio-injection=enabled
69
94
70
95
# deploy the kyverno authz server
71
- helm install kyverno-authz-server --namespace kyverno --wait \
72
- --repo https://kyverno.github.io/kyverno-envoy-plugin \
73
- kyverno-authz-server
96
+ helm install kyverno-authz-server \
97
+ --namespace kyverno \
98
+ --wait \
99
+ --repo https://kyverno.github.io/kyverno-envoy-plugin kyverno-authz-server \
100
+ --set certificates.certManager.issuerRef.group=cert-manager.io \
101
+ --set certificates.certManager.issuerRef.kind=ClusterIssuer \
102
+ --set certificates.certManager.issuerRef.name=selfsigned-issuer
74
103
```
75
104
76
105
### Deploy a sample application
@@ -85,8 +114,9 @@ kubectl create ns demo
85
114
kubectl label namespace demo istio-injection=enabled
86
115
87
116
# deploy the httpbin application
88
- kubectl apply -n demo -f \
89
- https://raw.githubusercontent.com/istio/istio/master/samples/httpbin/httpbin.yaml
117
+ kubectl apply \
118
+ -n demo \
119
+ -f https://raw.githubusercontent.com/istio/istio/master/samples/httpbin/httpbin.yaml
90
120
```
91
121
92
122
### Deploy an Istio AuthorizationPolicy
0 commit comments