-
Notifications
You must be signed in to change notification settings - Fork 0
/
kind.yaml
42 lines (41 loc) · 1.04 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
# Kind cluster configuration
# https://kind.sigs.k8s.io/docs/user/configuration/
#
# start kind with this file
# kind create cluster -n <cluster_name> --config kind.yaml
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
# Control-plane node
- role: control-plane
# Patch kubeadm to add node labels for accepting ingress.
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
- containerPort: 4566
hostPort: 4566
protocol: TCP
extraMounts:
# Mount the docker socket from the host machine to the kind node
- hostPath: /var/run/docker.sock
containerPath: /var/run/docker.sock
# Worker nodes
- role: worker
extraMounts:
- hostPath: /var/run/docker.sock
containerPath: /var/run/docker.sock
- role: worker
extraMounts:
- hostPath: /var/run/docker.sock
containerPath: /var/run/docker.sock