-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkind.yaml
28 lines (28 loc) · 955 Bytes
/
kind.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
# Inspired from https://github.com/kind-ci/examples/blob/master/gitlab/kind-config.yaml
# and https://kind.sigs.k8s.io/docs/user/private-registries/
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: "${CLUSTER_NAME}"
networking:
apiServerAddress: "${API_SERVER_ADDRESS}"
apiServerPort: ${API_SERVER_PORT}
nodes:
- role: control-plane
image: "kindest/node:${KINDEST_NODE_IMAGE_TAG}"
extraMounts:
# Propagate "docker login" credentials
- containerPath: /var/lib/kubelet/config.json
hostPath: "${HOME}/.docker/config.json"
# Propagate (hopefully) images cache
- containerPath: /var/lib/docker/image/overlay2
hostPath: /var/lib/docker/image/overlay2
#Extra Nodes (if needed)
${CLUSTER_EXTRA_NODES}
kubeadmConfigPatchesJSON6902:
- group: kubeadm.k8s.io
version: v1beta2
kind: ClusterConfiguration
patch: |
- op: add
path: /apiServer/certSANs/-
value: docker