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:
@ -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
|
||||
|
@ -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"
|
@ -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
|
||||
|
Reference in New Issue
Block a user