diff --git a/k8s/roles/drone/tasks/main.yml b/k8s/roles/drone/tasks/main.yml index 881ebe2..37c3c90 100644 --- a/k8s/roles/drone/tasks/main.yml +++ b/k8s/roles/drone/tasks/main.yml @@ -176,9 +176,18 @@ - name: Deploy Drone runner chart kubernetes.core.helm: - name: drone-kube-runner + name: drone-kube-runner-x86-64 chart_ref: drone/drone-runner-docker release_namespace: drone chart_version: 0.6.0 update_repo_cache: true - release_values: "{{ lookup('template', 'values.drone-runner-docker.yml.j2') | from_yaml }}" \ No newline at end of file + release_values: "{{ lookup('template', 'values.drone-runner-docker.x86_64.yml.j2') | from_yaml }}" + +- name: Deploy Drone runner chart + kubernetes.core.helm: + name: drone-kube-runner-arm64 + chart_ref: drone/drone-runner-docker + release_namespace: drone + chart_version: 0.6.0 + update_repo_cache: true + release_values: "{{ lookup('template', 'values.drone-runner-docker.arm64.yml.j2') | from_yaml }}" \ No newline at end of file diff --git a/k8s/roles/drone/templates/values.drone-runner-docker.yml.j2 b/k8s/roles/drone/templates/values.drone-runner-docker.arm64.yml.j2 similarity index 93% rename from k8s/roles/drone/templates/values.drone-runner-docker.yml.j2 rename to k8s/roles/drone/templates/values.drone-runner-docker.arm64.yml.j2 index c4fc6ad..8250c5c 100644 --- a/k8s/roles/drone/templates/values.drone-runner-docker.yml.j2 +++ b/k8s/roles/drone/templates/values.drone-runner-docker.arm64.yml.j2 @@ -22,3 +22,6 @@ affinity: values: - drone-runner-docker topologyKey: kubernetes.io/hostname + +nodeSelector: + kubernetes.io/arch: arm64 \ No newline at end of file diff --git a/k8s/roles/drone/templates/values.drone-runner-docker.x86_64.yml.j2 b/k8s/roles/drone/templates/values.drone-runner-docker.x86_64.yml.j2 new file mode 100644 index 0000000..e110a53 --- /dev/null +++ b/k8s/roles/drone/templates/values.drone-runner-docker.x86_64.yml.j2 @@ -0,0 +1,27 @@ +image: + tag: 1.8.3 + +extraSecretNamesForEnvFrom: + - drone-runner-secrets + +env: + DRONE_RUNNER_PRIVILEGED_IMAGES: code.icb4dc0.de/inetmock/inetmock + DRONE_RPC_HOST: drone.drone.svc.cluster.local:8080 + DRONE_RPC_PROTO: http + DRONE_RUNNER_CAPACITY: 1 + +affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - drone-runner-docker + topologyKey: kubernetes.io/hostname + +nodeSelector: + kubernetes.io/arch: amd64 \ No newline at end of file