2
0
mirror of https://github.com/nofusscomputing/kubernetes.git synced 2025-08-02 04:22:42 +00:00

fix(gitlab-operator): add runner component

ref: #5
This commit is contained in:
2025-06-12 14:51:38 +09:30
parent e0c32a61e5
commit 508032f58b
3 changed files with 52 additions and 0 deletions

View 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

View File

@ -0,0 +1,9 @@
---
apiVersion: v1
kind: Secret
metadata:
name: gitlab-runner-token
stringData:
runner-registration-token: -change-me-
type: Opaque

View 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