-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: cover azure provisioning via cluster class (#779)
* test: cover azure provisioning via cluster class Signed-off-by: Carlos Salas <[email protected]> * test: remove "standard" aks e2e scenario Signed-off-by: Carlos Salas <[email protected]> * test: reference rke2 bootstrap in aks class template Signed-off-by: Carlos Salas <[email protected]> --------- Signed-off-by: Carlos Salas <[email protected]>
- Loading branch information
1 parent
2027f18
commit 4fe5fb4
Showing
5 changed files
with
156 additions
and
136 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 was deleted.
Oops, something went wrong.
150 changes: 150 additions & 0 deletions
150
test/e2e/data/cluster-templates/azure-aks-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,150 @@ | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: ClusterClass | ||
metadata: | ||
name: ${CLUSTER_CLASS_NAME} | ||
namespace: default | ||
spec: | ||
controlPlane: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedControlPlaneTemplate | ||
name: ${CLUSTER_NAME}-control-plane | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedClusterTemplate | ||
name: ${CLUSTER_NAME} | ||
workers: | ||
machinePools: | ||
- class: default-system | ||
template: | ||
bootstrap: | ||
ref: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: RKE2ConfigTemplate | ||
name: ${CLUSTER_NAME}-pool0 | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
name: ${CLUSTER_NAME}-pool0 | ||
- class: default-worker | ||
template: | ||
bootstrap: | ||
ref: | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: RKE2ConfigTemplate | ||
name: ${CLUSTER_NAME}-pool1 | ||
infrastructure: | ||
ref: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
name: ${CLUSTER_NAME}-pool1 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedControlPlaneTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-control-plane | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
identityRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureClusterIdentity | ||
name: cluster-identity | ||
location: southcentralus | ||
resourceGroupName: "${CLUSTER_NAME}" | ||
subscriptionID: ${AZURE_SUBSCRIPTION_ID} | ||
version: ${KUBERNETES_VERSION} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedClusterTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
namespace: default | ||
spec: | ||
template: | ||
spec: {} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
mode: System | ||
name: pool0 | ||
sku: Standard_D2s_v3 | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureManagedMachinePoolTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool1 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: | ||
mode: User | ||
name: pool1 | ||
sku: Standard_D2s_v3 | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: RKE2ConfigTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool0 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: {} | ||
--- | ||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 | ||
kind: RKE2ConfigTemplate | ||
metadata: | ||
name: ${CLUSTER_NAME}-pool1 | ||
namespace: default | ||
spec: | ||
template: | ||
spec: {} | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: AzureClusterIdentity | ||
metadata: | ||
annotations: | ||
"helm.sh/resource-policy": keep | ||
labels: | ||
clusterctl.cluster.x-k8s.io/move-hierarchy: "true" | ||
name: cluster-identity | ||
namespace: default | ||
spec: | ||
allowedNamespaces: {} | ||
clientID: ${AZURE_CLIENT_ID} | ||
clientSecret: | ||
name: cluster-identity-secret | ||
namespace: default | ||
tenantID: ${AZURE_TENANT_ID} | ||
type: ServicePrincipal | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: ${CLUSTER_NAME} | ||
namespace: default | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: | ||
- 192.168.0.0/16 | ||
topology: | ||
class: ${CLUSTER_CLASS_NAME} | ||
version: ${KUBERNETES_VERSION} | ||
workers: | ||
machinePools: | ||
- class: default-system | ||
name: mp-0 | ||
replicas: 1 | ||
- class: default-worker | ||
name: mp-1 | ||
replicas: 1 |
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