Skip to content
2 changes: 1 addition & 1 deletion .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def withKubernetes(Closure body) {
chmod +x ${HOME}/bin/kubectl
kubectl version --client
''') }
sh(label: "Create kind cluster", script: 'kind create cluster')
sh(label: "Create kind cluster", script: 'kind create cluster --config ../../kind-config.yaml')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this config is in the root of the project, try with BASE_DIR

Suggested change
sh(label: "Create kind cluster", script: 'kind create cluster --config ../../kind-config.yaml')
sh(label: "Create kind cluster", script: 'kind create cluster --config ${BASE_DIR}/kind-config.yaml')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems to pass with ../../kind-config.yaml 😅

}

body()
Expand Down
8 changes: 8 additions & 0 deletions kind-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: KubeProxyConfiguration
metricsBindAddress: "0.0.0.0"