Skip to content

Commit

Permalink
chore: Store k3d config in file (#1556)
Browse files Browse the repository at this point in the history
Co-authored-by: Stanislav Khalash <[email protected]>
  • Loading branch information
k15r and skhalash authored Oct 24, 2024
1 parent e766f7a commit bf4120b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .k3d-kyma.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: k3d.io/v1alpha5
kind: Simple
metadata:
name: kyma
servers: 1
agents: 0
kubeAPI:
hostPort: '6550'
registries:
create:
name: kyma
hostPort: '5001'

6 changes: 2 additions & 4 deletions hack/make/provision.mk
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
##@ k3d
.PHONY: provision-k3d
provision-k3d: $(K3D)
$(K3D) registry create kyma-registry --port 5001
$(K3D) cluster create kyma --registry-use kyma-registry:5001 --image rancher/k3s:v$(strip $(K3S_K8S_VERSION))-k3s1 --api-port 6550
$(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 All @@ -12,8 +11,7 @@ provision-k3d-istio: provision-k3d

.PHONY: cleanup-k3d
cleanup-k3d:
$(K3D) cluster delete kyma
$(K3D) registry delete k3d-kyma-registry
$(K3D) cluster delete --config .k3d-kyma.yaml

##@ Gardener
## injected by the environment
Expand Down

0 comments on commit bf4120b

Please sign in to comment.