mirror of
https://github.com/nofusscomputing/kubernetes.git
synced 2025-08-02 04:22:42 +00:00
19
manifests/gitlab-operator/overlays/runner/Runner.yaml
Normal file
19
manifests/gitlab-operator/overlays/runner/Runner.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
|
||||
apiVersion: apps.gitlab.com/v1beta2
|
||||
kind: Runner
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: ci-cd-runner
|
||||
app.kubernetes.io/name: gitlab
|
||||
app.kubernetes.io/part-of: nginx
|
||||
name: gitlab-runner
|
||||
spec:
|
||||
gitlabUrl: https://gitlab.com
|
||||
podSpec:
|
||||
- name: gitlab-runner
|
||||
patchType: merge
|
||||
patch: |
|
||||
securityContext:
|
||||
runAsNonRoot: false
|
||||
token: gitlab-runner-token
|
9
manifests/gitlab-operator/overlays/runner/Secret.yaml
Normal file
9
manifests/gitlab-operator/overlays/runner/Secret.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: gitlab-runner-token
|
||||
stringData:
|
||||
runner-registration-token: -change-me-
|
||||
type: Opaque
|
24
manifests/gitlab-operator/overlays/runner/kustomization.yaml
Normal file
24
manifests/gitlab-operator/overlays/runner/kustomization.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
|
||||
|
||||
resources:
|
||||
- Secret.yaml
|
||||
- Runner.yaml
|
||||
|
||||
|
||||
patches:
|
||||
- target:
|
||||
kind: Runner
|
||||
name: gitlab-runner
|
||||
patch: |-
|
||||
# Runner Tags
|
||||
# - op: add
|
||||
# path: /spec/tags
|
||||
# value: production,website
|
||||
|
||||
- op: add
|
||||
path: /spec/runnerImage
|
||||
value: registry.gitlab.com/gitlab-org/gitlab-runner:v17.6.0
|
Reference in New Issue
Block a user