-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prepare main branch for v1.4 development
- v1.9.4
- v1.9.3
- v1.9.2
- v1.9.1
- v1.9.0
- v1.9.0-rc.1
- v1.9.0-rc.0
- v1.9.0-beta.1
- v1.9.0-beta.0
- v1.8.9
- v1.8.8
- v1.8.7
- v1.8.6
- v1.8.5
- v1.8.4
- v1.8.3
- v1.8.2
- v1.8.1
- v1.8.0
- v1.8.0-rc.1
- v1.8.0-rc.0
- v1.8.0-beta.1
- v1.8.0-beta.0
- v1.7.9
- v1.7.8
- v1.7.7
- v1.7.6
- v1.7.5
- v1.7.4
- v1.7.3
- v1.7.2
- v1.7.1
- v1.7.0
- v1.7.0-rc.1
- v1.7.0-rc.0
- v1.7.0-beta.1
- v1.7.0-beta.0
- v1.6.8
- v1.6.7
- v1.6.6
- v1.6.5
- v1.6.4
- v1.6.3
- v1.6.2
- v1.6.1
- v1.6.0
- v1.6.0-rc.1
- v1.6.0-rc.0
- v1.6.0-beta.1
- v1.6.0-beta.0
- v1.5.8
- v1.5.7
- v1.5.6
- v1.5.5
- v1.5.4
- v1.5.3
- v1.5.2
- v1.5.1
- v1.5.0
- v1.5.0-rc.1
- v1.5.0-rc.0
- v1.5.0-beta.1
- v1.5.0-beta.0
- v1.4.9
- v1.4.8
- v1.4.7
- v1.4.6
- v1.4.5
- v1.4.4
- v1.4.3
- v1.4.2
- v1.4.1
- v1.4.0
- v1.4.0-rc.1
- v1.4.0-rc.0
- v1.4.0-beta.2
- v1.4.0-beta.1
- v1.4.0-beta.0
- test/v1.9.4
- test/v1.9.3
- test/v1.9.2
- test/v1.9.1
- test/v1.9.0
- test/v1.9.0-rc.1
- test/v1.9.0-rc.0
- test/v1.9.0-beta.1
- test/v1.9.0-beta.0
- test/v1.8.9
- test/v1.8.8
- test/v1.8.7
- test/v1.8.6
- test/v1.8.5
- test/v1.8.4
- test/v1.8.3
- test/v1.8.2
- test/v1.8.1
- test/v1.8.0
- test/v1.8.0-rc.1
- test/v1.8.0-rc.0
- test/v1.8.0-beta.1
- test/v1.8.0-beta.0
- test/v1.7.9
- test/v1.7.8
- test/v1.7.7
- test/v1.7.6
- test/v1.7.5
- test/v1.7.4
- test/v1.7.3
- test/v1.7.2
- test/v1.7.1
- test/v1.7.0
- test/v1.7.0-rc.1
- test/v1.7.0-rc.0
- test/v1.7.0-beta.1
- test/v1.7.0-beta.0
- test/v1.6.8
- test/v1.6.7
- test/v1.6.6
- test/v1.6.5
- test/v1.6.4
- test/v1.6.3
- test/v1.6.2
- test/v1.6.1
- test/v1.6.0
- test/v1.6.0-rc.1
- test/v1.6.0-rc.0
- test/v1.6.0-beta.1
- test/v1.6.0-beta.0
- test/v1.5.8
- test/v1.5.7
- test/v1.5.6
- test/v1.5.5
- test/v1.5.4
- test/v1.5.3
- test/v1.5.2
- test/v1.5.1
- test/v1.5.0
- test/v1.5.0-rc.1
- test/v1.5.0-rc.0
- test/v1.5.0-beta.1
- test/v1.5.0-beta.0
- test/v1.4.9
- test/v1.4.8
- test/v1.4.7
- test/v1.4.6
- test/v1.4.5
- test/v1.4.4
- test/v1.4.3
- test/v1.4.2
- test/v1.4.1
- test/v1.4.0
- test/v1.4.0-rc.1
- test/v1.4.0-rc.0
- test/v1.4.0-beta.2
- test/v1.4.0-beta.1
- test/v1.4.0-beta.0
Yuvaraj Kakaraparthi
committed
Dec 6, 2022
1 parent
f73b00d
commit a05d171
Showing
16 changed files
with
634 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
95 changes: 95 additions & 0 deletions
95
test/e2e/data/infrastructure-docker/v1beta1/v1.3/bases/cluster-with-kcp.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
--- | ||
# DockerCluster object referenced by the Cluster object | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerCluster | ||
metadata: | ||
name: '${CLUSTER_NAME}' | ||
spec: | ||
failureDomains: | ||
fd1: | ||
controlPlane: true | ||
fd2: | ||
controlPlane: true | ||
fd3: | ||
controlPlane: true | ||
fd4: | ||
controlPlane: false | ||
fd5: | ||
controlPlane: false | ||
fd6: | ||
controlPlane: false | ||
fd7: | ||
controlPlane: false | ||
fd8: | ||
controlPlane: false | ||
--- | ||
# Cluster object with | ||
# - Reference to the KubeadmControlPlane object | ||
# - the label cni=${CLUSTER_NAME}-crs-0, so the cluster can be selected by the ClusterResourceSet. | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: '${CLUSTER_NAME}' | ||
labels: | ||
cni: "${CLUSTER_NAME}-crs-0" | ||
spec: | ||
clusterNetwork: | ||
services: | ||
cidrBlocks: ['${DOCKER_SERVICE_CIDRS}'] | ||
pods: | ||
cidrBlocks: ['${DOCKER_POD_CIDRS}'] | ||
serviceDomain: '${DOCKER_SERVICE_DOMAIN}' | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerCluster | ||
name: '${CLUSTER_NAME}' | ||
controlPlaneRef: | ||
kind: KubeadmControlPlane | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
name: "${CLUSTER_NAME}-control-plane" | ||
--- | ||
# DockerMachineTemplate object referenced by the KubeadmControlPlane object | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-control-plane" | ||
spec: | ||
template: | ||
spec: | ||
extraMounts: | ||
- containerPath: "/var/run/docker.sock" | ||
hostPath: "/var/run/docker.sock" | ||
--- | ||
# KubeadmControlPlane referenced by the Cluster object with | ||
# - the label kcp-adoption.step2, because it should be created in the second step of the kcp-adoption test. | ||
kind: KubeadmControlPlane | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
metadata: | ||
name: "${CLUSTER_NAME}-control-plane" | ||
labels: | ||
kcp-adoption.step2: "" | ||
spec: | ||
replicas: ${CONTROL_PLANE_MACHINE_COUNT} | ||
machineTemplate: | ||
infrastructureRef: | ||
kind: DockerMachineTemplate | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
name: "${CLUSTER_NAME}-control-plane" | ||
kubeadmConfigSpec: | ||
clusterConfiguration: | ||
controllerManager: | ||
extraArgs: {enable-hostpath-provisioner: 'true'} | ||
apiServer: | ||
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied. | ||
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal] | ||
initConfiguration: | ||
nodeRegistration: | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%' | ||
joinConfiguration: | ||
nodeRegistration: | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%' | ||
version: "${KUBERNETES_VERSION}" |
35 changes: 35 additions & 0 deletions
35
test/e2e/data/infrastructure-docker/v1beta1/v1.3/bases/cluster-with-topology.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: '${CLUSTER_NAME}' | ||
namespace: default | ||
labels: | ||
cni: "${CLUSTER_NAME}-crs-0" | ||
spec: | ||
clusterNetwork: | ||
services: | ||
cidrBlocks: ['${DOCKER_SERVICE_CIDRS}'] | ||
pods: | ||
cidrBlocks: ['${DOCKER_POD_CIDRS}'] | ||
serviceDomain: '${DOCKER_SERVICE_DOMAIN}' | ||
topology: | ||
class: "quick-start" | ||
version: "${KUBERNETES_VERSION}" | ||
controlPlane: | ||
metadata: {} | ||
nodeDeletionTimeout: "30s" | ||
replicas: ${CONTROL_PLANE_MACHINE_COUNT} | ||
workers: | ||
machineDeployments: | ||
- class: "default-worker" | ||
name: "md-0" | ||
nodeDeletionTimeout: "30s" | ||
replicas: ${WORKER_MACHINE_COUNT} | ||
failureDomain: fd4 | ||
variables: | ||
# We set an empty value to use the default tag kubeadm init is using. | ||
- name: etcdImageTag | ||
value: "" | ||
# We set an empty value to use the default tag kubeadm init is using. | ||
- name: coreDNSImageTag | ||
value: "" |
24 changes: 24 additions & 0 deletions
24
test/e2e/data/infrastructure-docker/v1beta1/v1.3/bases/crs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
--- | ||
# ConfigMap object referenced by the ClusterResourceSet object and with | ||
# the CNI resource defined in the test config file | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: "cni-${CLUSTER_NAME}-crs-0" | ||
data: ${CNI_RESOURCES} | ||
binaryData: | ||
--- | ||
# ClusterResourceSet object with | ||
# a selector that targets all the Cluster with label cni=${CLUSTER_NAME}-crs-0 | ||
apiVersion: addons.cluster.x-k8s.io/v1beta1 | ||
kind: ClusterResourceSet | ||
metadata: | ||
name: "${CLUSTER_NAME}-crs-0" | ||
spec: | ||
strategy: ApplyOnce | ||
clusterSelector: | ||
matchLabels: | ||
cni: "${CLUSTER_NAME}-crs-0" | ||
resources: | ||
- name: "cni-${CLUSTER_NAME}-crs-0" | ||
kind: ConfigMap |
52 changes: 52 additions & 0 deletions
52
test/e2e/data/infrastructure-docker/v1beta1/v1.3/bases/md.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
# DockerMachineTemplate referenced by the MachineDeployment and with | ||
# - extraMounts for the docker sock, thus allowing self-hosting test | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-0" | ||
spec: | ||
template: | ||
spec: | ||
extraMounts: | ||
- containerPath: "/var/run/docker.sock" | ||
hostPath: "/var/run/docker.sock" | ||
--- | ||
# KubeadmConfigTemplate referenced by the MachineDeployment | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-0" | ||
spec: | ||
template: | ||
spec: | ||
joinConfiguration: | ||
nodeRegistration: | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%' | ||
--- | ||
# MachineDeployment object | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachineDeployment | ||
metadata: | ||
name: "${CLUSTER_NAME}-md-0" | ||
spec: | ||
clusterName: "${CLUSTER_NAME}" | ||
replicas: ${WORKER_MACHINE_COUNT} | ||
selector: | ||
matchLabels: | ||
template: | ||
spec: | ||
clusterName: "${CLUSTER_NAME}" | ||
version: "${KUBERNETES_VERSION}" | ||
bootstrap: | ||
configRef: | ||
name: "${CLUSTER_NAME}-md-0" | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
infrastructureRef: | ||
name: "${CLUSTER_NAME}-md-0" | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
failureDomain: fd4 |
3 changes: 3 additions & 0 deletions
3
.../e2e/data/infrastructure-docker/v1beta1/v1.3/cluster-template-topology/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
resources: | ||
- ../bases/cluster-with-topology.yaml | ||
- ../bases/crs.yaml |
5 changes: 5 additions & 0 deletions
5
test/e2e/data/infrastructure-docker/v1beta1/v1.3/cluster-template/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
bases: | ||
- ../bases/cluster-with-kcp.yaml | ||
- ../bases/md.yaml | ||
- ../bases/crs.yaml | ||
|
292 changes: 292 additions & 0 deletions
292
test/e2e/data/infrastructure-docker/v1beta1/v1.3/clusterclass-quick-start.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,292 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: ClusterClass | ||
metadata: | ||
name: quick-start | ||
spec: | ||
controlPlane: | ||
ref: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlaneTemplate | ||
name: quick-start-control-plane | ||
machineInfrastructure: | ||
ref: | ||
kind: DockerMachineTemplate | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
name: quick-start-control-plane | ||
machineHealthCheck: | ||
maxUnhealthy: 100% | ||
unhealthyConditions: | ||
- type: e2e.remediation.condition | ||
status: "False" | ||
timeout: 20s | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerClusterTemplate | ||
name: quick-start-cluster | ||
workers: | ||
machineDeployments: | ||
- class: default-worker | ||
template: | ||
bootstrap: | ||
ref: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
name: quick-start-default-worker-bootstraptemplate | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
name: quick-start-default-worker-machinetemplate | ||
machineHealthCheck: | ||
maxUnhealthy: 100% | ||
unhealthyConditions: | ||
- type: e2e.remediation.condition | ||
status: "False" | ||
timeout: 20s | ||
variables: | ||
- name: lbImageRepository | ||
required: true | ||
schema: | ||
openAPIV3Schema: | ||
type: string | ||
default: kindest | ||
- name: etcdImageTag | ||
required: true | ||
schema: | ||
openAPIV3Schema: | ||
type: string | ||
default: "" | ||
example: "3.5.3-0" | ||
description: "etcdImageTag sets the tag for the etcd image." | ||
- name: coreDNSImageTag | ||
required: true | ||
schema: | ||
openAPIV3Schema: | ||
type: string | ||
default: "" | ||
example: "v1.8.5" | ||
description: "coreDNSImageTag sets the tag for the coreDNS image." | ||
- name: kubeadmControlPlaneMaxSurge | ||
required: false | ||
schema: | ||
openAPIV3Schema: | ||
type: string | ||
default: "" | ||
example: "0" | ||
description: "kubeadmControlPlaneMaxSurge is the maximum number of control planes that can be scheduled above or under the desired number of control plane machines." | ||
patches: | ||
- name: lbImageRepository | ||
definitions: | ||
- selector: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerClusterTemplate | ||
matchResources: | ||
infrastructureCluster: true | ||
jsonPatches: | ||
- op: add | ||
path: "/spec/template/spec/loadBalancer" | ||
valueFrom: | ||
template: | | ||
imageRepository: {{ .lbImageRepository }} | ||
# We have to pin the cgroupDriver to cgroupfs for Kubernetes < v1.24 because kind does not support systemd for those versions, but kubeadm >= 1.21 defaults to systemd. | ||
- name: cgroupDriver-controlPlane | ||
description: | | ||
Sets the cgroupDriver to cgroupfs if a Kubernetes version < v1.24 is referenced. | ||
This is required because kind and the node images do not support the default | ||
systemd cgroupDriver for kubernetes < v1.24. | ||
enabledIf: '{{ semverCompare "<= v1.23" .builtin.controlPlane.version }}' | ||
definitions: | ||
- selector: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlaneTemplate | ||
matchResources: | ||
controlPlane: true | ||
jsonPatches: | ||
- op: add | ||
path: "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver" | ||
value: cgroupfs | ||
- op: add | ||
path: "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver" | ||
value: cgroupfs | ||
- name: cgroupDriver-machineDeployment | ||
description: | | ||
Sets the cgroupDriver to cgroupfs if a Kubernetes version < v1.24 is referenced. | ||
This is required because kind and the node images do not support the default | ||
systemd cgroupDriver for kubernetes < v1.24. | ||
enabledIf: '{{ semverCompare "<= v1.23" .builtin.machineDeployment.version }}' | ||
definitions: | ||
- selector: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
matchResources: | ||
machineDeploymentClass: | ||
names: | ||
- default-worker | ||
jsonPatches: | ||
- op: add | ||
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cgroup-driver" | ||
value: cgroupfs | ||
- name: etcdImageTag | ||
description: "Sets tag to use for the etcd image in the KubeadmControlPlane." | ||
definitions: | ||
- selector: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlaneTemplate | ||
matchResources: | ||
controlPlane: true | ||
jsonPatches: | ||
- op: add | ||
path: "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/etcd" | ||
valueFrom: | ||
template: | | ||
local: | ||
imageTag: {{ .etcdImageTag }} | ||
- name: coreDNSImageTag | ||
description: "Sets tag to use for the etcd image in the KubeadmControlPlane." | ||
definitions: | ||
- selector: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlaneTemplate | ||
matchResources: | ||
controlPlane: true | ||
jsonPatches: | ||
- op: add | ||
path: "/spec/template/spec/kubeadmConfigSpec/clusterConfiguration/dns" | ||
valueFrom: | ||
template: | | ||
imageTag: {{ .coreDNSImageTag }} | ||
- name: customImage | ||
description: "Sets the container image that is used for running dockerMachines for the controlPlane and default-worker machineDeployments." | ||
definitions: | ||
- selector: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
matchResources: | ||
machineDeploymentClass: | ||
names: | ||
- default-worker | ||
jsonPatches: | ||
- op: add | ||
path: "/spec/template/spec/customImage" | ||
valueFrom: | ||
template: | | ||
kindest/node:{{ .builtin.machineDeployment.version | replace "+" "_" }} | ||
- selector: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
matchResources: | ||
controlPlane: true | ||
jsonPatches: | ||
- op: add | ||
path: "/spec/template/spec/customImage" | ||
valueFrom: | ||
template: | | ||
kindest/node:{{ .builtin.controlPlane.version | replace "+" "_" }} | ||
- name: kubeadmControlPlaneMaxSurge | ||
description: "Sets the maxSurge value used for rolloutStrategy in the KubeadmControlPlane." | ||
enabledIf: '{{ ne .kubeadmControlPlaneMaxSurge "" }}' | ||
definitions: | ||
- selector: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlaneTemplate | ||
matchResources: | ||
controlPlane: true | ||
jsonPatches: | ||
- op: add | ||
path: /spec/template/spec/rolloutStrategy/rollingUpdate/maxSurge | ||
valueFrom: | ||
template: "{{ .kubeadmControlPlaneMaxSurge }}" | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerClusterTemplate | ||
metadata: | ||
name: quick-start-cluster | ||
spec: | ||
template: | ||
spec: | ||
failureDomains: | ||
fd1: | ||
controlPlane: true | ||
fd2: | ||
controlPlane: true | ||
fd3: | ||
controlPlane: true | ||
fd4: | ||
controlPlane: false | ||
fd5: | ||
controlPlane: false | ||
fd6: | ||
controlPlane: false | ||
fd7: | ||
controlPlane: false | ||
fd8: | ||
controlPlane: false | ||
--- | ||
kind: KubeadmControlPlaneTemplate | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
metadata: | ||
name: quick-start-control-plane | ||
spec: | ||
template: | ||
spec: | ||
rolloutBefore: | ||
certificatesExpiryDays: 21 | ||
machineTemplate: | ||
nodeDrainTimeout: 1s | ||
kubeadmConfigSpec: | ||
clusterConfiguration: | ||
controllerManager: | ||
extraArgs: { enable-hostpath-provisioner: 'true' } | ||
apiServer: | ||
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied. | ||
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal] | ||
initConfiguration: | ||
nodeRegistration: | ||
# We have to set the criSocket to containerd as kubeadm defaults to docker runtime if both containerd and docker sockets are found | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%' | ||
joinConfiguration: | ||
nodeRegistration: | ||
# We have to set the criSocket to containerd as kubeadm defaults to docker runtime if both containerd and docker sockets are found | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%' | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
name: quick-start-control-plane | ||
spec: | ||
template: | ||
spec: | ||
extraMounts: | ||
- containerPath: "/var/run/docker.sock" | ||
hostPath: "/var/run/docker.sock" | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
metadata: | ||
name: quick-start-default-worker-machinetemplate | ||
spec: | ||
template: | ||
spec: | ||
extraMounts: | ||
- containerPath: "/var/run/docker.sock" | ||
hostPath: "/var/run/docker.sock" | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
metadata: | ||
name: quick-start-default-worker-bootstraptemplate | ||
spec: | ||
template: | ||
spec: | ||
joinConfiguration: | ||
nodeRegistration: | ||
# We have to set the criSocket to containerd as kubeadm defaults to docker runtime if both containerd and docker sockets are found | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: clusterctl.cluster.x-k8s.io/v1alpha3 | ||
kind: Metadata | ||
releaseSeries: | ||
- major: 1 | ||
minor: 3 | ||
contract: v1beta1 | ||
- major: 1 | ||
minor: 2 | ||
contract: v1beta1 | ||
- major: 1 | ||
minor: 1 | ||
contract: v1beta1 | ||
- major: 1 | ||
minor: 0 | ||
contract: v1beta1 | ||
- major: 0 | ||
minor: 4 | ||
contract: v1alpha4 | ||
- major: 0 | ||
minor: 3 | ||
contract: v1alpha3 | ||
- major: 0 | ||
minor: 2 | ||
contract: v1alpha2 |