Skip to content

Instantly share code, notes, and snippets.

@greyhoundforty

greyhoundforty/job.yaml

Last active Aug 17, 2020
Embed
What would you like to do?
Kubernetes ICOS Sync Job
apiVersion: batch/v1
kind: Job
metadata:
name: mc-icos-sync-test
spec:
template:
spec:
containers:
- name: mc-icos-sync
image: greyhoundforty/icos-ce-sync:1
env:
- name: "SOURCE_ACCESS_KEY"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: SOURCE_ACCESS_KEY
- name: "SOURCE_SECRET_KEY"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: SOURCE_SECRET_KEY
- name: "DESTINATION_ACCESS_KEY"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: DESTINATION_ACCESS_KEY
- name: "DESTINATION_SECRET_KEY"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: DESTINATION_SECRET_KEY
- name: "SOURCE_REGION"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: SOURCE_REGION
- name: "DESTINATION_REGION"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: DESTINATION_REGION
- name: "SOURCE_BUCKET"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: SOURCE_BUCKET
- name: "DESTINATION_BUCKET"
valueFrom:
secretKeyRef:
name: iks-mc-secret
key: DESTINATION_BUCKET
restartPolicy: Never
backoffLimit: 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment