-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkind-config-advanced.yaml
49 lines (48 loc) · 1.5 KB
/
kind-config-advanced.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
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
# patch the generated kubeadm config with some extra settings
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
metadata:
name: config
apiServer:
extraArgs:
enable-admission-plugins: NodeRestriction
"feature-gates": "DynamicAuditing=true" # way to enable desired features
scheduler:
extraArgs:
"feature-gates": "DynamicAuditing=true" # way to enable desired features
controllerManager:
extraArgs:
"feature-gates": "DynamicAuditing=true" # way to enable desired features
- |
apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
metadata:
name: config
nodeRegistration:
kubeletExtraArgs:
"feature-gates": "DynamicAuditing=true" # way to enable desired features
nodes:
# The control plane node config
- role: control-plane
# this is to expose extra ports for NodePort
# see #https://github.com/kubernetes-sigs/kind/pull/637, https://github.com/kubernetes-sigs/kind/issues/99
extraPortMappings:
- containerPort: 30100
hostPort: 30100
- containerPort: 30101
hostPort: 30101
- containerPort: 30102
hostPort: 30102
# The three workers
- role: worker
- role: worker
- role: worker
# To disable CNI so we can add our choice of CNI, e.g. weave-net, later
networking:
disableDefaultCNI: true # disable kindnet
#podSubnet: 192.168.0.0/16 # set to Calico's default subnet
podSubnet: 10.32.0.0/12 # set to WeaveNet's default subnet