From 17c4b4a1be4c8791504b40b5a790dd6ea30bbe1a Mon Sep 17 00:00:00 2001 From: Kostiantyn Kalynovskyi Date: Mon, 19 Apr 2021 03:34:45 +0000 Subject: [PATCH] Add worker labels for the machine deployments We are missing worker labels and this may lead to future problems when we will want to scale, wrong nodes can be chosen for the worker MachineDeployments. This is a temporary solution to add this to kustomize Permanent solution should add labels to host generation and variable catalogue. Relates-To: #531 Change-Id: Ia07f1d9125bf5b6aadea3750ea53bc34228577ca --- .../site/test-site/target/workers/nodes/kustomization.yaml | 2 +- .../target/workers/provision/metal3machinetemplate.yaml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/site/test-site/target/workers/nodes/kustomization.yaml b/manifests/site/test-site/target/workers/nodes/kustomization.yaml index 512dc07c8..af9467527 100644 --- a/manifests/site/test-site/target/workers/nodes/kustomization.yaml +++ b/manifests/site/test-site/target/workers/nodes/kustomization.yaml @@ -5,4 +5,4 @@ generators: - ../hostgenerator commonLabels: - airshipit.org/k8s-role: controlplane-host + airshipit.org/k8s-role: worker diff --git a/manifests/site/test-site/target/workers/provision/metal3machinetemplate.yaml b/manifests/site/test-site/target/workers/provision/metal3machinetemplate.yaml index f4405f62a..0152b999d 100644 --- a/manifests/site/test-site/target/workers/provision/metal3machinetemplate.yaml +++ b/manifests/site/test-site/target/workers/provision/metal3machinetemplate.yaml @@ -5,6 +5,9 @@ metadata: spec: template: spec: + hostSelector: + matchLabels: + airshipit.org/k8s-role: worker image: url: http://10.23.24.102:80/images/data-plane.qcow2 checksum: http://10.23.24.102:80/images/data-plane.qcow2.md5sum