Skip to content

Instantly share code, notes, and snippets.

@susimsek
Created November 27, 2021 10:30
Show Gist options
  • Save susimsek/3561649f5ccb37134ceeec0a740f3f53 to your computer and use it in GitHub Desktop.
Save susimsek/3561649f5ccb37134ceeec0a740f3f53 to your computer and use it in GitHub Desktop.
Kubernetes Certificate Generating Job
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