File tree 2 files changed +2
-8
lines changed
deploy/kubernetes/webhook-example
2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 23
23
Build the docker image
24
24
25
25
``` bash
26
- docker build -t gcr.io/your-project-name/webhook:latest -f ./cmd/webhook/Dockerfile .
27
- ```
28
-
29
- Push the docker image to the remote registry
30
-
31
- ``` bash
32
- docker push gcr.io/your-project-name/webhook:latest
26
+ docker build -t validation-webhook:latest -f ./cmd/validation-webhook/Dockerfile .
33
27
```
34
28
35
29
## How to deploy the webhook
Original file line number Diff line number Diff line change 17
17
spec :
18
18
containers :
19
19
- name : snapshot-validation
20
- image : gcr.io/your-project-name /validation-webhook:latest # change the image if you wish to use your own custom validation server image
20
+ image : k8s. gcr.io/sig-storage /validation-webhook:v2.2.0 # change the image if you wish to use your own custom validation server image
21
21
args : ['--tls-cert-file=/etc/snapshot-validation-webhook/certs/cert.pem', '--tls-private-key-file=/etc/snapshot-validation-webhook/certs/key.pem']
22
22
ports :
23
23
- containerPort : 443 # change the port as needed
You can’t perform that action at this time.
0 commit comments