-
Notifications
You must be signed in to change notification settings - Fork 6
/
fabric-ca-deployment.yaml
58 lines (57 loc) · 1.45 KB
/
fabric-ca-deployment.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: fabric-ca-k8s
spec:
selector:
app: fabric-ca
ports:
- protocol: TCP
port: 7054
targetPort: 7054
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: fabric-ca-k8s
labels:
app: fabric-ca-k8s
spec:
replicas: 1
selector:
matchLabels:
app: fabric-ca-k8s
template:
metadata:
labels:
app: fabric-ca-k8s
spec:
volumes:
- name: redis-storage
persistentVolumeClaim:
claimName: mypvc
containers:
- name: fabric-ca-k8s
image: hyperledger/fabric-ca:1.4.4
command: ["sh", "-c", "sleep 1 && fabric-ca-server start -d --cfg.identities.allowremove --port 7054"]
env:
- name: FABRIC_CA_SERVER_HOME
value: /shared/hyperledger/fabric-ca/k8s
- name: FABRIC_CA_SERVER_CSR_CN
value: "fabric-ca-k8s"
- name: FABRIC_CA_SERVER_CSR_HOSTS
value: 0.0.0.0
- name: FABRIC_CA_SERVER_DEBUG
value: "true"
# Uncomment if you want to run the CA with TLS enabled. It is disabled by default. You can also run fabric-ca-server init and customize the fabric-ca-server-config.yaml file.
# - name: FABRIC_CA_SERVER_TLS_ENABLED
# value: "true"
- name: GODEBUG
value: "netdns=go"
volumeMounts:
- mountPath: /shared
name: redis-storage
ports:
- containerPort: 7054