Skip to content

Commit

Permalink
Add example job
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleFox94 committed Jun 30, 2020
1 parent 7e4c83a commit d5ce83f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions examples/job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: batch/v1
kind: Job
metadata:
name: secret-generator
spec:
template:
spec:
serviceAccountName: secret-admin # do not use default, create a new service account
restartPolicy: OnFailure
containers:
- name: k8s-secret-admin
image: littlefox/k8s-secret-admin:v0.1.0
imagePullPolicy: ifNotPresent
args:
- --name
- application-config
- --namespace
- the-next-big-thing

#will generate "session-key" as random 128 byte sequence
- --bytes
- session-key=128

# generate "postgres_pass" as random 32 character password
- --password
- postgres_pass=32

# some static database config values
- --static
- postgres_database=bigthing
- --static
- postgres_user=root

0 comments on commit d5ce83f

Please sign in to comment.