Skip to content

Commit

Permalink
move node lables config tot he k2d config file
Browse files Browse the repository at this point in the history
  • Loading branch information
hisarbalik committed Jan 27, 2025
1 parent 455ee73 commit d743a30
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .k3d-kyma.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,19 @@ registries:
name: kyma
hostPort: '5001'

options:
k3s:
nodeLabels:
- label: topology.kubernetes.io/region=test_region
nodeFilters:
- server:*
- label: topology.kubernetes.io/zone=test_zone
nodeFilters:
- server:*
- label: node.kubernetes.io/instance-type=test_instance
nodeFilters:
- server:*
- label: kubernetes.io/arch=test_arch
nodeFilters:
- server:*

2 changes: 1 addition & 1 deletion hack/make/provision.mk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
##@ k3d
.PHONY: provision-k3d
provision-k3d: $(K3D)
$(K3D) cluster create --image rancher/k3s:v$(strip $(K3S_K8S_VERSION))-k3s1 --config .k3d-kyma.yaml --k3s-node-label "topology.kubernetes.io/region=testregion@server:0" --k3s-node-label "topology.kubernetes.io/zone=testzone@server:0" --k3s-node-label "node.kubernetes.io/instance-type=testmach@server:0" --k3s-node-label "kubernetes.io/arch=testarch@server:0"
$(K3D) cluster create --image rancher/k3s:v$(strip $(K3S_K8S_VERSION))-k3s1 --config .k3d-kyma.yaml
kubectl create ns kyma-system

.PHONY: provision-k3d-istio
Expand Down

0 comments on commit d743a30

Please sign in to comment.