-
Notifications
You must be signed in to change notification settings - Fork 0
/
kind-cluster.yaml
71 lines (71 loc) · 2 KB
/
kind-cluster.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
apiVersion: kind.x-k8s.io/v1alpha4
kind: Cluster
featureGates:
PodSecurity: true
networking:
apiServerAddress: "127.0.0.1"
apiServerPort: 6443
podSubnet: "10.240.0.0/16"
serviceSubnet: "10.0.0.0/16"
disableDefaultCNI: true
kubeProxyMode: "iptables"
nodes:
- role: control-plane
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
#- |
# kind: ClusterConfiguration
# apiServer:
# extraArgs:
# audit-log-path: /etc/kubernetes/audit/audit.log
# audit-policy-file: /etc/kubernetes/audit/audit-policy.yaml
# extraVolumes:
# - name: audit-policy
# hostPath: /etc/kubernetes/audit
# mountPath: /etc/kubernetes/audit
# readOnly: false
# pathType: "DirectoryOrCreate"
#extraMounts:
#- hostPath: /tmp/api/
# containerPath: /etc/kubernetes/audit
# readOnly: false
# selinuxRelabel: false
# propagation: None
# - containerPath: /var/lib/kubelet/config.json
# hostPath: ./config.json
# - hostPath: ./data
# containerPath: /data
extraPortMappings:
- containerPort: 30000
hostPort: 8080
listenAddress: "127.0.0.1"
protocol: TCP
- containerPort: 30003
hostPort: 8000
listenAddress: "127.0.0.1"
protocol: TCP
- containerPort: 30001
hostPort: 8443
listenAddress: "127.0.0.1"
protocol: TCP
- containerPort: 30002
hostPort: 15021
listenAddress: "127.0.0.1"
protocol: TCP
- containerPort: 31467
hostPort: 8444
listenAddress: "127.0.0.1"
protocol: TCP
# - role: worker
# # This appears to not work so have to set label manually
# kubeadmConfigPatches:
# - |
# kind: InitConfiguration
# nodeRegistration:
# kubeletExtraArgs:
# node-labels: "ingress-ready=true"
# - role: worker