Skip to content

Commit 122ecff

Browse files
committed
Add secure deployment
1 parent 0006568 commit 122ecff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

artifacts/deployment-secure/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ OUTPUT := serving-cert-secret.yaml v1alpha1-apiservice.yaml v1beta1-apiservice.y
55
all: tls.key tls.crt $(OUTPUT)
66

77
tls.key tls.crt:
8-
openssl req -new -x509 -subj "/CN=webhook.pizza-crd.svc" -nodes -newkey rsa:4096 -keyout tls.key -out tls.crt -days 365
8+
openssl req -new -x509 -subj "/CN=api.custom-apiserver.svc" -nodes -newkey rsa:4096 -keyout tls.key -out tls.crt -days 365
99

1010
$(OUTPUT): tls.key tls.crt
1111
sed 's,CERT,$(shell base64 tls.crt),;s,KEY,$(shell base64 tls.key),' $@.template > $@
1212

1313
clean:
14-
rm -f tls.key tls.crt $(OUTPUT)
14+
rm -f tls.key tls.crt $(OUTPUT)

0 commit comments

Comments
 (0)