Skip to content

Commit

Permalink
scaling test
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Jul 5, 2024
1 parent ff91102 commit 1e80d77
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
sudo sysctl fs.inotify.max_user_instances=8192
- name: Run e2e tests
run: |
sudo GINKGO_FOCUS="Workload cluster upgrade" SKIP_RESOURCE_CLEANUP=true make test-e2e
sudo GINKGO_FOCUS="Workload cluster scaling" SKIP_RESOURCE_CLEANUP=true make test-e2e
- name: Setup tmate session
if: ${{ failure() }}
uses: canonical/action-tmate@main
103 changes: 103 additions & 0 deletions c1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: c1
namespace: default
spec:
clusterNetwork:
pods:
cidrBlocks:
- 10.1.0.0/16
serviceDomain: cluster.local
services:
cidrBlocks:
- 10.152.0.0/16
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
kind: CK8sControlPlane
name: c1-control-plane
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerCluster
name: c1
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerCluster
metadata:
name: c1
namespace: default
spec: {}
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
kind: CK8sControlPlane
metadata:
name: c1-control-plane
namespace: default
spec:
machineTemplate:
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerMachineTemplate
name: c1-control-plane
replicas: 1
spec:
airGapped: true
controlPlane:
extraKubeAPIServerArgs:
--anonymous-auth: "true"
version: v1.30.1
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerMachineTemplate
metadata:
name: c1-control-plane
namespace: default
spec:
template:
spec:
customImage: k8s-snap:dev
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
name: c1-worker-md-0
namespace: default
spec:
clusterName: c1
replicas: 0
selector:
matchLabels:
cluster.x-k8s.io/cluster-name: c1
template:
spec:
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: CK8sConfigTemplate
name: c1-md-0
clusterName: c1
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerMachineTemplate
name: c1-md-0
version: v1.30.1
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerMachineTemplate
metadata:
name: c1-md-0
namespace: default
spec:
template:
spec:
customImage: k8s-snap:dev
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: CK8sConfigTemplate
metadata:
name: c1-md-0
namespace: default
spec:
template:
spec:
airGapped: true
113 changes: 113 additions & 0 deletions c2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: c2
namespace: default
spec:
clusterNetwork:
pods:
cidrBlocks:
- 10.1.0.0/16
serviceDomain: cluster.local
services:
cidrBlocks:
- 10.152.0.0/16
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
kind: CK8sControlPlane
name: c2-control-plane
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AWSCluster
name: c2
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AWSCluster
metadata:
name: c2
namespace: default
spec:
bastion:
enabled: false
region: eu-central-1
sshKeyName: default
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
kind: CK8sControlPlane
metadata:
name: c2-control-plane
namespace: default
spec:
machineTemplate:
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: DockerMachineTemplate
name: c2-control-plane
replicas: 1
spec:
airGapped: true
controlPlane:
extraKubeAPIServerArgs:
--anonymous-auth: "true"
version: v1.30.1
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AWSMachineTemplate
metadata:
name: c2-control-plane
namespace: default
spec:
template:
spec:
iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io
instanceType: t3.large
publicIP: false
sshKeyName: default
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
name: c2-worker-md-0
namespace: default
spec:
clusterName: c2
replicas: 0
selector:
matchLabels:
cluster.x-k8s.io/cluster-name: c2
template:
spec:
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: CK8sConfigTemplate
name: c2-md-0
clusterName: c2
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta
kind: AWSMachineTemplate
name: c2-md-0
version: v1.30.1
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AWSMachineTemplate
metadata:
name: c2-md-0
namespace: default
spec:
template:
spec:
iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io
instanceType: t3.large
publicIP: false
sshKeyName: default
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: CK8sConfigTemplate
metadata:
name: c2-md-0
namespace: default
spec:
template:
spec:
airGapped: true
76 changes: 76 additions & 0 deletions c4.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: c4
namespace: default
spec:
clusterNetwork:
pods:
cidrBlocks:
- 10.1.0.0/16
serviceDomain: cluster.local
services:
cidrBlocks:
- 10.152.0.0/16
controlPlaneRef:
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
kind: CK8sControlPlane
name: c4-control-plane
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSCluster
name: c4
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta2
kind: CK8sControlPlane
metadata:
name: c4-control-plane
namespace: default
spec:
machineTemplate:
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate
name: c4-control-plane
replicas: 1
spec:
airGapped: true
controlPlane:
extraKubeAPIServerArgs:
--anonymous-auth: "true"
version: v1.30.1
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
name: c4-worker-md-0
namespace: default
spec:
clusterName: c4
replicas: 0
selector:
matchLabels:
cluster.x-k8s.io/cluster-name: c4
template:
spec:
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: CK8sConfigTemplate
name: c4-md-0
clusterName: c4
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
kind: AWSMachineTemplate
name: c4-md-0
version: v1.30.1
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
kind: CK8sConfigTemplate
metadata:
name: c4-md-0
namespace: default
spec:
template:
spec:
airGapped: true
Loading

0 comments on commit 1e80d77

Please sign in to comment.