-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcfssl-server.yaml
58 lines (58 loc) · 1.11 KB
/
cfssl-server.yaml
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
apiVersion: v1
kind: Service
metadata:
name: cfssl-server
labels:
app: cfssl-server
spec:
selector:
app: cfssl-server
ports:
- name: https
protocol: TCP
port: 8888
targetPort: 8888
externalIPs:
- 192.168.0.164
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: cfssl-server
labels:
app: cfssl-server
spec:
replicas: 2
template:
metadata:
labels:
app: cfssl-server
spec:
containers:
- name: cfssl-server
image: ghcr.io/wuvt/cfssl:latest
command:
- multirootca
- -tls-cert
- /etc/cfssl/cfssl.pem
- -tls-key
- /etc/cfssl/cfssl-key.pem
- -roots
- /etc/cfssl/roots.conf
securityContext:
runAsUser: 1000
ports:
- containerPort: 8888
volumeMounts:
- name: cfssl-data
mountPath: /etc/cfssl
readOnly: true
volumes:
- name: cfssl-data
cephfs:
monitors:
- 192.168.0.234:6789
path: /cfssl-data
user: k8s
secretRef:
name: ceph-k8s