Skip to content

Commit 7a64510

Browse files
Add e2e test for RKE2 ClusterClass
Signed-off-by: Danil-Grigorev <[email protected]>
1 parent cf4c84b commit 7a64510

15 files changed

+1132
-0
lines changed

templates/cluster-template-clusterclass-rke2.yaml

+231
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
2+
kind: AzureClusterTemplate
3+
metadata:
4+
name: ${CLUSTER_NAME}-azure-cluster
5+
spec:
6+
template:
7+
spec:
8+
identityRef:
9+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
10+
kind: AzureClusterIdentity
11+
name: ${CLUSTER_IDENTITY_NAME}
12+
networkSpec:
13+
additionalAPIServerLBPorts:
14+
- name: rke2
15+
port: 9345
16+
subnets:
17+
- name: control-plane-subnet
18+
role: control-plane
19+
securityGroup:
20+
securityRules:
21+
- name: "allow_port_9345"
22+
description: "Allow port 9345 for RKE2"
23+
direction: "Inbound"
24+
priority: 2203
25+
protocol: "Tcp"
26+
destination: "*"
27+
destinationPorts: "9345"
28+
source: "*"
29+
sourcePorts: "*"
30+
action: "Allow"
31+
- name: node-subnet
32+
role: node
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
2+
kind: AzureMachineTemplate
3+
metadata:
4+
name: ${CLUSTER_NAME}-control-plane
5+
spec:
6+
template:
7+
spec:
8+
osDisk:
9+
diskSizeGB: 128
10+
osType: Linux
11+
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
2+
kind: AzureMachineTemplate
3+
metadata:
4+
name: ${CLUSTER_NAME}-worker
5+
spec:
6+
template:
7+
spec:
8+
osDisk:
9+
diskSizeGB: 30
10+
osType: Linux
11+
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}

0 commit comments

Comments
 (0)