fix cluster config

This commit is contained in:
Michael Kriese 2023-03-22 10:08:53 +01:00
parent 9659934063
commit fdfe86a0d6
No known key found for this signature in database
GPG key ID: B83F553A0724D44E

View file

@ -1,20 +1,17 @@
# based on https://github.com/kind-ci/examples/blob/master/.gitlab-ci.yml
# based on https://github.com/kind-ci/examples
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
name: chart-testing
networking:
apiServerAddress: '0.0.0.0'
# add to the apiServer certSANs the name of the docker (dind) service in order to be able to reach the cluster through it
kubeadmConfigPatchesJSON6902:
- group: kubeadm.k8s.io
version: v1beta2
kind: ClusterConfiguration
patch: |
- op: add
path: /apiServer/certSANs/-
value: docker
nodes:
# add to the apiServer certSANs the name of the drone service in order to be able to reach the cluster through it
- role: control-plane
kubeadmConfigPatches:
- |
kind: ClusterConfiguration
apiServer:
certSANs:
- docker
- role: worker