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

chore(gitlab-operator): add node targeting to amd64

ref: #5 https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/-/issues/244
This commit is contained in:
2025-06-12 18:41:03 +09:30
parent a0afbb0b0d
commit a839aa6f95
3 changed files with 19 additions and 22 deletions

View File

@ -65,19 +65,19 @@ patches:
https://gitlab.com/gitlab-org/gl-openshift/gitlab-runner-operator/-/raw/160ee6bf2ad4e05d0e673d0652cc47bd6100ddec/config/manager/auth_proxy_patch.yaml
# # Operator only has arch AMD64
# - patch: |-
# - op: replace
# path: /spec/template/spec/affinity
# value:
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: kubernetes.io/arch
# operator: In
# values:
# - amd64
# target:
# kind: Deployment
# name: controller-manager
# version: v1
- patch: |-
- op: replace
path: /spec/template/spec/affinity
value:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/arch
operator: In
values:
- amd64
target:
kind: Deployment
name: controller-manager
version: v1

View File

@ -12,9 +12,6 @@ data:
shell = "bash"
[runners.kubernetes]
namespace = "test"
helper_image = "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:alpine-edge-x86_64-latest"
image = "alpine"
pull_policy = "if-not-present}"
cpu_limit = "100m"
@ -38,8 +35,5 @@ data:
read_only = false
host_path = "/opt/webserver/nofusscomputing.com"
[runners.kubernetes.node_selector]
"node-role.kubernetes.io/prime" = "true"
[runners.kubernetes.node_tolerations]
"CriticalAddonsOnly=true" = "NoExecute"

View File

@ -9,8 +9,11 @@ metadata:
app.kubernetes.io/part-of: nginx
name: my-gitlab
spec:
buildImage: debian:stable-slim
concurrent: 2
config: gitlab-runner
gitlabUrl: https://gitlab.com
# helperImage:
podSpec:
- name: gitlab-runner
patchType: merge