This commit is contained in:
44
config/samples/batch_v1alpha1_gitlabjobrunner.yaml
Normal file
44
config/samples/batch_v1alpha1_gitlabjobrunner.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
---
|
||||
apiVersion: batch.rml.ru/v1alpha1
|
||||
kind: GitlabJobRunner
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: gitlab-job-runner
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: gitlabjobrunner-sample-job
|
||||
spec:
|
||||
gitlabSecretRef: gitlab-credentials
|
||||
repositoryURL: mygroup/myrepo
|
||||
branch: main
|
||||
scriptPath: scripts/cleanup.sh
|
||||
image: bitnami/git:latest
|
||||
serviceAccountName: default
|
||||
|
||||
---
|
||||
apiVersion: batch.rml.ru/v1alpha1
|
||||
kind: GitlabJobRunner
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: gitlab-job-runner
|
||||
app.kubernetes.io/managed-by: kustomize
|
||||
name: gitlabjobrunner-sample-cronjob
|
||||
spec:
|
||||
schedule: "0 2 * * *"
|
||||
gitlabSecretRef: gitlab-credentials
|
||||
repositoryURL: mygroup/myrepo
|
||||
branch: main
|
||||
scriptPath: scripts/backup.sh
|
||||
image: bitnami/git:latest
|
||||
serviceAccountName: backup-sa
|
||||
suspend: false
|
||||
concurrencyPolicy: Forbid
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: gitlab-credentials
|
||||
type: Opaque
|
||||
stringData:
|
||||
GITLAB_URL: "https://gitlab.example.com"
|
||||
GITLAB_TOKEN: "glpat-xxxxxxxxxxxxxxxxxxxx"
|
||||
Reference in New Issue
Block a user