-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathserver.yaml
More file actions
112 lines (107 loc) · 2.39 KB
/
server.yaml
File metadata and controls
112 lines (107 loc) · 2.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
---
apiVersion: v1
kind: Namespace
metadata:
name: sample-spring-conventions
---
# The following manifests contain a self-signed issuer CR and a certificate CR.
# More document can be found at https://docs.cert-manager.io
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: spring-selfsigned-issuer
namespace: sample-spring-conventions
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: spring-webhook-cert
namespace: sample-spring-conventions
spec:
subject:
organizations:
- vmware
organizationalUnits:
- tanzu
commonName: spring-webhook.spring-conventions.svc
dnsNames:
- spring-webhook.sample-spring-conventions.svc
- spring-webhook.sample-spring-conventions.svc.cluster.local
issuerRef:
kind: Issuer
name: spring-selfsigned-issuer
secretName: spring-webhook-cert
revisionHistoryLimit: 10
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-webhook
namespace: sample-spring-conventions
spec:
replicas: 1
selector:
matchLabels:
app: spring-webhook
template:
metadata:
labels:
app: spring-webhook
spec:
containers:
- name: webhook
image: ko://github.com/vmware-tanzu/cartographer-conventions/samples/spring-convention-server
env:
- name: PORT
value: "8443"
ports:
- containerPort: 8443
name: webhook
livenessProbe:
httpGet:
scheme: HTTPS
port: webhook
path: /healthz
readinessProbe:
httpGet:
scheme: HTTPS
port: webhook
path: /healthz
volumeMounts:
- name: certs
mountPath: /config/certs
readOnly: true
volumes:
- name: certs
secret:
defaultMode: 420
secretName: spring-webhook-cert
---
apiVersion: v1
kind: Service
metadata:
name: spring-webhook
namespace: sample-spring-conventions
spec:
selector:
app: spring-webhook
ports:
- protocol: TCP
port: 443
targetPort: webhook
---
apiVersion: conventions.carto.run/v1alpha1
kind: ClusterPodConvention
metadata:
name: spring-sample
spec:
webhook:
certificate:
namespace: sample-spring-conventions
name: spring-webhook-cert
clientConfig:
service:
name: spring-webhook
namespace: sample-spring-conventions