Skip to content

Instantly share code, notes, and snippets.

@davivcgarcia
Last active February 20, 2020 17:05
Show Gist options
  • Save davivcgarcia/b3003a7edc429bc9f7daff56ae026c5e to your computer and use it in GitHub Desktop.
Save davivcgarcia/b3003a7edc429bc9f7daff56ae026c5e to your computer and use it in GitHub Desktop.
Kind 0.7.0 - Config para habilitar EphemeralContainers e ServiceTopology.
# this config file contains all config fields with comments
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
# patch the generated kubeadm config with some extra settings
kubeadmConfigPatches:
- |
apiVersion: kubeadm.k8s.io/v1beta1
kind: ClusterConfiguration
metadata:
name: config
apiServer:
extraArgs:
"feture-gates": "EphemeralContainers=true,ServiceTopology=true,EndpointSlice=true"
scheduler:
extraArgs:
"feture-gates": "EphemeralContainers=true,ServiceTopology=true,EndpointSlice=true"
controllerManager:
extraArgs:
"feture-gates": "EphemeralContainers=true,ServiceTopology=true,EndpointSlice=true"
- |
apiVersion: kubeadm.k8s.io/v1beta1
kind: InitConfiguration
metadata:
name: config
nodeRegistration:
kubeletExtraArgs:
"feture-gates": "EphemeralContainers=true,ServiceTopology=true,EndpointSlice=true"
# 1 control plane node and 3 workers
nodes:
# the control plane node config
- role: control-plane
image: quay.io/davivcgarcia/kind-node:v1.17.3
kubeadmConfigPatches:
- |
kind: InitConfiguration
nodeRegistration:
kubeletExtraArgs:
node-labels: "ingress-ready=true"
extraPortMappings:
- containerPort: 80
hostPort: 80
protocol: TCP
- containerPort: 443
hostPort: 443
protocol: TCP
# the three workers
- role: worker
image: quay.io/davivcgarcia/kind-node:v1.17.3
- role: worker
image: quay.io/davivcgarcia/kind-node:v1.17.3
- role: worker
image: quay.io/davivcgarcia/kind-node:v1.17.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment