forked from denali49/fabric-ca-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fabric-ca-server-initJob.yaml
39 lines (38 loc) · 1.19 KB
/
fabric-ca-server-initJob.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
apiVersion: batch/v1
kind: Job
metadata:
name: fabric-ca-k8s
spec:
backoffLimit: 1
template:
metadata:
name: fabric-ca-k8s
spec:
restartPolicy: "Never"
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 init -b admin:adminpw -d --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"
ports:
- containerPort: 7054
volumeMounts:
- mountPath: /shared
name: redis-storage