-
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.
Add workloadKubernetesVersion to v1.3 clusterctl upgrade test
Signed-off-by: killianmuldoon <[email protected]>
- Loading branch information
1 parent
cd0351c
commit a19a288
Showing
7 changed files
with
656 additions
and
1 deletion.
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
167 changes: 167 additions & 0 deletions
167
test/e2e/data/infrastructure-docker/v1.0/cluster-template.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,167 @@ | ||
apiVersion: v1 | ||
binaryData: null | ||
data: ${CNI_RESOURCES} | ||
kind: ConfigMap | ||
metadata: | ||
name: cni-${CLUSTER_NAME}-crs-0 | ||
--- | ||
apiVersion: addons.cluster.x-k8s.io/v1beta1 | ||
kind: ClusterResourceSet | ||
metadata: | ||
name: ${CLUSTER_NAME}-crs-0 | ||
spec: | ||
clusterSelector: | ||
matchLabels: | ||
cni: ${CLUSTER_NAME}-crs-0 | ||
resources: | ||
- kind: ConfigMap | ||
name: cni-${CLUSTER_NAME}-crs-0 | ||
strategy: ApplyOnce | ||
--- | ||
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: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
fail-swap-on: "false" | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
labels: | ||
cni: ${CLUSTER_NAME}-crs-0 | ||
name: ${CLUSTER_NAME} | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- ${DOCKER_POD_CIDRS} | ||
serviceDomain: ${DOCKER_SERVICE_DOMAIN} | ||
services: | ||
cidrBlocks: | ||
- ${DOCKER_SERVICE_CIDRS} | ||
controlPlaneRef: | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
name: ${CLUSTER_NAME}-control-plane | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerCluster | ||
name: ${CLUSTER_NAME} | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachineDeployment | ||
metadata: | ||
name: ${CLUSTER_NAME}-md-0 | ||
spec: | ||
clusterName: ${CLUSTER_NAME} | ||
replicas: ${WORKER_MACHINE_COUNT} | ||
selector: | ||
matchLabels: null | ||
template: | ||
spec: | ||
bootstrap: | ||
configRef: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmConfigTemplate | ||
name: ${CLUSTER_NAME}-md-0 | ||
clusterName: ${CLUSTER_NAME} | ||
failureDomain: fd4 | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
name: ${CLUSTER_NAME}-md-0 | ||
version: ${KUBERNETES_VERSION} | ||
--- | ||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1 | ||
kind: KubeadmControlPlane | ||
metadata: | ||
labels: | ||
kcp-adoption.step2: "" | ||
name: ${CLUSTER_NAME}-control-plane | ||
spec: | ||
kubeadmConfigSpec: | ||
clusterConfiguration: | ||
apiServer: | ||
certSANs: | ||
- localhost | ||
- 127.0.0.1 | ||
- 0.0.0.0 | ||
- host.docker.internal | ||
controllerManager: | ||
extraArgs: | ||
enable-hostpath-provisioner: "true" | ||
initConfiguration: | ||
nodeRegistration: | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
fail-swap-on: "false" | ||
joinConfiguration: | ||
nodeRegistration: | ||
criSocket: unix:///var/run/containerd/containerd.sock | ||
kubeletExtraArgs: | ||
cgroup-driver: cgroupfs | ||
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% | ||
fail-swap-on: "false" | ||
machineTemplate: | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: DockerMachineTemplate | ||
name: ${CLUSTER_NAME}-control-plane | ||
replicas: ${CONTROL_PLANE_MACHINE_COUNT} | ||
version: ${KUBERNETES_VERSION} | ||
--- | ||
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 | ||
--- | ||
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 | ||
--- | ||
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 |
73 changes: 73 additions & 0 deletions
73
test/e2e/data/infrastructure-docker/v1.3/cluster-template-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,73 @@ | ||
apiVersion: v1 | ||
binaryData: null | ||
data: ${CNI_RESOURCES} | ||
kind: ConfigMap | ||
metadata: | ||
name: cni-${CLUSTER_NAME}-crs-0 | ||
--- | ||
apiVersion: addons.cluster.x-k8s.io/v1beta1 | ||
kind: ClusterResourceSet | ||
metadata: | ||
name: ${CLUSTER_NAME}-crs-0 | ||
spec: | ||
clusterSelector: | ||
matchLabels: | ||
cni: ${CLUSTER_NAME}-crs-0 | ||
resources: | ||
- kind: ConfigMap | ||
name: cni-${CLUSTER_NAME}-crs-0 | ||
strategy: ApplyOnce | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
labels: | ||
cni: ${CLUSTER_NAME}-crs-0 | ||
name: ${CLUSTER_NAME} | ||
namespace: default | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- ${DOCKER_POD_CIDRS} | ||
serviceDomain: ${DOCKER_SERVICE_DOMAIN} | ||
services: | ||
cidrBlocks: | ||
- ${DOCKER_SERVICE_CIDRS} | ||
topology: | ||
class: quick-start | ||
controlPlane: | ||
metadata: | ||
annotations: | ||
annotation-from-cluster-topology: value-from-cluster-topology | ||
labels: | ||
label-from-cluster-topology: value-from-cluster-topology | ||
nodeDeletionTimeout: 30s | ||
nodeVolumeDetachTimeout: 5m | ||
replicas: ${CONTROL_PLANE_MACHINE_COUNT} | ||
variables: | ||
- name: etcdImageTag | ||
value: "" | ||
- name: coreDNSImageTag | ||
value: "" | ||
- name: preLoadImages | ||
value: ${DOCKER_PRELOAD_IMAGES:-[]} | ||
version: ${KUBERNETES_VERSION} | ||
workers: | ||
machineDeployments: | ||
- class: default-worker | ||
failureDomain: fd4 | ||
metadata: | ||
annotations: | ||
annotation-from-cluster-topology: value-from-cluster-topology | ||
labels: | ||
label-from-cluster-topology: value-from-cluster-topology | ||
minReadySeconds: 5 | ||
name: md-0 | ||
nodeDeletionTimeout: 30s | ||
nodeVolumeDetachTimeout: 5m | ||
replicas: ${WORKER_MACHINE_COUNT} | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 20% | ||
maxUnavailable: 0 |
Oops, something went wrong.