-
Notifications
You must be signed in to change notification settings - Fork 204
/
Copy pathkind-config.yaml
37 lines (37 loc) · 1.07 KB
/
kind-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
apiVersion: kind.x-k8s.io/v1alpha4
networking:
ipFamily: dual
apiServerAddress: 0.0.0.0
apiServerPort: 6443
# 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: KUBEADM_VER
kind: ClusterConfiguration
patch: |
- op: add
path: /apiServer/certSANs/-
value: docker
kind: Cluster
nodes:
- role: control-plane
image: CI_REGISTRY_GO/kindest/node:K8S_VERSION
extraPortMappings:
- hostPort: 30080
containerPort: 30080
#listenAddress: "0.0.0.0" # Optional, defaults to "0.0.0.0"
#protocol: udp # Optional, defaults to tcp
- hostPort: 30443
containerPort: 30443
- hostPort: 31024
containerPort: 31024
- hostPort: 32766
containerPort: 32766
- hostPort: 32767
containerPort: 32767
kubeadmConfigPatches:
- |
kind: ClusterConfiguration
controllerManager:
extraArgs:
max-endpoints-per-slice: "5"