Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions k8s-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
},
{
"k8s": "1.35.0"
},
{
"k8s": "1.36.1"
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class KindContainer<T extends KindContainer<T>> extends KubernetesWithKub
private static final Map<KubernetesVersionDescriptor, String> KUBEADM_CONFIGS = new HashMap<KubernetesVersionDescriptor, String>() {{
put(new KubernetesVersionDescriptor(1, 21, 0), "kubeadm-1.21.0.yaml");
put(new KubernetesVersionDescriptor(1, 24, 0), "kubeadm-1.24.0.yaml");
put(new KubernetesVersionDescriptor(1, 36, 0), "kubeadm-1.36.0.yaml");
}};
private static final String KUBECONFIG_PATH = "/etc/kubernetes/admin.conf";
private static final String NODE_NAME = "kind";
Expand Down
82 changes: 82 additions & 0 deletions src/main/resources/kubeadm-1.36.0.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apiServer:
certSANs: [{{ .CertSANs }}]
extraArgs:
- name: runtime-config
value: ""
- name: service-node-port-range
value: "{{ .MinNodePort }}-{{ .MaxNodePort }}"
apiVersion: kubeadm.k8s.io/v1beta4
clusterName: kind
controlPlaneEndpoint: {{ .NodeIp }}:6443
controllerManager:
extraArgs:
- name: enable-hostpath-provisioner
value: "true"
kind: ClusterConfiguration
kubernetesVersion: {{ .KubernetesVersion }}
networking:
podSubnet: {{ .PodSubnet }}
serviceSubnet: {{ .ServiceSubnet }}
---
apiVersion: kubeadm.k8s.io/v1beta4
bootstrapTokens:
- token: abcdef.0123456789abcdef
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: {{ .NodeIp }}
bindPort: 6443
nodeRegistration:
criSocket: unix:///run/containerd/containerd.sock
kubeletExtraArgs:
- name: fail-swap-on
value: "false"
- name: node-ip
value: {{ .NodeIp }}
- name: node-labels
value: ""
- name: provider-id
value: kind://docker/kind/kindcontainer-control-plane
---
apiVersion: kubeadm.k8s.io/v1beta4
controlPlane:
localAPIEndpoint:
advertiseAddress: {{ .NodeIp }}
bindPort: 6443
discovery:
bootstrapToken:
apiServerEndpoint: {{ .NodeIp }}:6443
token: abcdef.0123456789abcdef
unsafeSkipCAVerification: true
kind: JoinConfiguration
nodeRegistration:
criSocket: unix:///run/containerd/containerd.sock
kubeletExtraArgs:
- name: fail-swap-on
value: "false"
- name: node-ip
value: {{ .NodeIp }}
- name: node-labels
value: ""
- name: provider-id
value: kind://docker/kind/kindcontainer-control-plane
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
featureGates:
KubeletInUserNamespace: true
Comment on lines +65 to +66

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Drop the removed kubelet feature gate

When this template is selected for the newly supported 1.36.1 image, kubeadm writes KubeletInUserNamespace into the kubelet configuration, but Kubernetes 1.36 has removed that feature gate. The kubelet rejects the unknown gate and never becomes healthy, so 1.36+ KindContainer instances—including the default latest version—fail during provisioning; omit this feature-gate entry from the 1.36 template.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did not fail though

cgroupDriver: systemd
cgroupRoot: /kubelet
evictionHard:
imagefs.available: 0%
nodefs.available: 0%
nodefs.inodesFree: 0%
failSwapOn: false
imageGCHighThresholdPercent: 100
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
conntrack:
maxPerCore: 0
iptables:
minSyncPeriod: 1s
kind: KubeProxyConfiguration
mode: iptables
Loading