mirror of https://github.com/rancher/gitjob.git
27 lines
542 B
YAML
27 lines
542 B
YAML
apiVersion: gitjob.cattle.io/v1
|
|
kind: GitJob
|
|
metadata:
|
|
name: example
|
|
namespace: default
|
|
spec:
|
|
git:
|
|
branch: master
|
|
repo: https://github.com/StrongMonkey/gitjobs-example
|
|
jobSpec:
|
|
template:
|
|
spec:
|
|
serviceAccountName: kubectl-apply
|
|
restartPolicy: "Never"
|
|
containers:
|
|
- image: "bitnami/kubectl:latest"
|
|
name: kubectl-apply
|
|
command:
|
|
- kubectl
|
|
args:
|
|
- apply
|
|
- -f
|
|
- deployment.yaml
|
|
workingDir: /workspace/source
|
|
|
|
|