-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scalability test by reusing capi scale e2e test with clusterclass
Signed-off-by: Mohammed Boukhalfa <[email protected]>
- Loading branch information
1 parent
ce9c2b1
commit 70cbb85
Showing
14 changed files
with
652 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- resources.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,77 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: fkas-system | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: metal3-fkas-sa | ||
namespace: fkas-system | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: metal3-fkas-role | ||
rules: | ||
- apiGroups: ["metal3.io", "infrastructure.cluster.x-k8s.io"] | ||
resources: ["baremetalhosts", "metal3machines"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: ["cluster.x-k8s.io"] | ||
resources: ["machines"] | ||
verbs: ["get", "list", "watch"] | ||
- apiGroups: [""] | ||
resources: ["secrets"] | ||
verbs: ["get", "list"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: metal3-fkas-rolebinding | ||
subjects: | ||
- kind: ServiceAccount | ||
name: metal3-fkas-sa | ||
namespace: fkas-system | ||
roleRef: | ||
kind: ClusterRole | ||
name: metal3-fkas-role | ||
apiGroup: rbac.authorization.k8s.io | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: metal3-fkas-system | ||
namespace: fkas-system | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: metal3-fkas-system | ||
template: | ||
metadata: | ||
labels: | ||
app: metal3-fkas-system | ||
spec: | ||
serviceAccountName: metal3-fkas-sa | ||
hostNetwork: true | ||
containers: | ||
- name: metal3-fkas-reconciler | ||
image: quay.io/metal3-io/metal3-fkas:latest | ||
imagePullPolicy: IfNotPresent | ||
command: ["/reconciler"] | ||
env: | ||
- name: DEBUG | ||
value: "true" | ||
- image: quay.io/metal3-io/metal3-fkas:latest | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 3333 | ||
env: | ||
- name: POD_IP | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.podIP | ||
- name: DEBUG | ||
value: "true" | ||
name: metal3-fkas |
107 changes: 107 additions & 0 deletions
107
test/e2e/data/infrastructure-metal3/bases/cluster-with-topology/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,107 @@ | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
labels: | ||
cni: ${CLUSTER_NAME}-crs-0 | ||
name: ${CLUSTER_NAME} | ||
namespace: ${NAMESPACE} | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: ["${POD_CIDR}"] | ||
services: | ||
cidrBlocks: ["${SERVICE_CIDR}"] | ||
topology: | ||
class: metal3 | ||
version: ${KUBERNETES_VERSION} | ||
controlPlane: | ||
replicas: ${CONTROL_PLANE_MACHINE_COUNT} | ||
workers: | ||
machineDeployments: | ||
- class: worker | ||
name: ${CLUSTER_NAME}-machine | ||
replicas: ${WORKER_MACHINE_COUNT} | ||
variables: | ||
- name: image | ||
value: | ||
checksum: ${IMAGE_RAW_CHECKSUM} | ||
checksumType: ${IMAGE_CHECKSUM_TYPE} | ||
format: raw | ||
url: ${IMAGE_RAW_URL} | ||
- name: controlPlaneEndpoint | ||
value: | ||
host: CLUSTER_APIENDPOINT_HOST_HOLDER | ||
port: CLUSTER_APIENDPOINT_PORT_HOLDER | ||
- name: controlPlaneDataTemplate | ||
value: ${CLUSTER_NAME}-controlplane-template | ||
--- | ||
apiVersion: ipam.metal3.io/v1alpha1 | ||
kind: IPPool | ||
metadata: | ||
name: ${CLUSTER_NAME}-baremetalv4-pool | ||
spec: | ||
clusterName: ${CLUSTER_NAME} | ||
gateway: 192.168.111.1 | ||
namePrefix: ${CLUSTER_NAME}-bmv4 | ||
pools: | ||
- end: 192.168.111.240 | ||
start: 192.168.111.201 | ||
prefix: 24 | ||
--- | ||
apiVersion: ipam.metal3.io/v1alpha1 | ||
kind: IPPool | ||
metadata: | ||
name: ${CLUSTER_NAME}-provisioning-pool | ||
spec: | ||
clusterName: ${CLUSTER_NAME} | ||
namePrefix: ${CLUSTER_NAME}-prov | ||
pools: | ||
- end: 172.22.0.240 | ||
start: 172.22.0.201 | ||
prefix: 24 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/${CAPM3_VERSION} | ||
kind: Metal3DataTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-controlplane-template | ||
spec: | ||
clusterName: ${CLUSTER_NAME} | ||
metaData: | ||
ipAddressesFromIPPool: | ||
- key: provisioningIP | ||
name: ${CLUSTER_NAME}-provisioning-pool | ||
objectNames: | ||
- key: name | ||
object: machine | ||
- key: local-hostname | ||
object: machine | ||
- key: local_hostname | ||
object: machine | ||
prefixesFromIPPool: | ||
- key: provisioningCIDR | ||
name: ${CLUSTER_NAME}-provisioning-pool | ||
networkData: | ||
links: | ||
ethernets: | ||
- id: enp1s0 | ||
macAddress: | ||
fromHostInterface: enp1s0 | ||
type: phy | ||
- id: enp2s0 | ||
macAddress: | ||
fromHostInterface: enp2s0 | ||
type: phy | ||
networks: | ||
ipv4: | ||
- id: baremetalv4 | ||
ipAddressFromIPPool: ${CLUSTER_NAME}-baremetalv4-pool | ||
link: enp2s0 | ||
routes: | ||
- gateway: | ||
fromIPPool: ${CLUSTER_NAME}-baremetalv4-pool | ||
network: 0.0.0.0 | ||
prefix: 0 | ||
services: | ||
dns: | ||
- 8.8.8.8 |
2 changes: 2 additions & 0 deletions
2
test/e2e/data/infrastructure-metal3/bases/cluster-with-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,2 @@ | ||
resources: | ||
- cluster-with-topology.yaml |
2 changes: 2 additions & 0 deletions
2
test/e2e/data/infrastructure-metal3/cluster-template-centos-fake/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,2 @@ | ||
resources: | ||
- ../bases/cluster-with-topology |
Oops, something went wrong.