Skip to content

Instantly share code, notes, and snippets.

@agracey
Last active July 7, 2021 19:43
Show Gist options
  • Save agracey/33a748f1fe9931357199d25907a553ea to your computer and use it in GitHub Desktop.
Save agracey/33a748f1fe9931357199d25907a553ea to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: ServiceAccount
metadata:
name: epinio-gitjob
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: epinio-gitjob
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: epinio-gitjob
namespace: default
---
apiVersion: gitjob.cattle.io/v1
kind: GitJob
metadata:
name: samplepush
namespace: default
spec:
syncInterval: 15
git:
branch: scf
repo: https://github.com/scf-samples/12factor
jobSpec:
template:
spec:
serviceAccountName: epinio-gitjob
restartPolicy: "Never"
containers:
- image: "splatform/epinio-server:v0.0.18"
name: epinio-push
volumeMounts:
- name: config
mountPath: "/config/"
readOnly: true
env:
- name: EPINIO_CONFIG
value: "/config/config.yaml"
command:
- /epinio
args:
- push
- test12factor
workingDir: /workspace/source
volumes:
- name: config
secret:
secretName: gitjob-epinio-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment