Created
November 27, 2021 10:30
-
-
Save susimsek/3561649f5ccb37134ceeec0a740f3f53 to your computer and use it in GitHub Desktop.
Kubernetes Certificate Generating Job
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: create-certs | |
spec: | |
backoffLimit: 1 | |
parallelism: 1 | |
completions: 1 | |
template: | |
metadata: | |
name: create-certs | |
spec: | |
containers: | |
- name: create-certs | |
image: hyperledger/fabric-ca-tools:1.2.1 | |
command: | |
- /bin/sh | |
- -c | |
- | | |
./scripts/orderer-certs.sh && | |
./scripts/org1-certs.sh && | |
./scripts/org2-certs.sh && | |
./scripts/org3-certs.sh | |
... | |
volumeMounts: | |
- name: fabricfiles | |
mountPath: /organizations | |
subPath: organizations | |
- name: fabricfiles | |
mountPath: /scripts | |
subPath: scripts | |
restartPolicy: Never | |
volumes: | |
- name: fabricfiles | |
persistentVolumeClaim: | |
claimName: fabricfiles-pvc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment