-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: provision gke cluster in full e2e test
Signed-off-by: Carlos Salas <carlos.salas@suse.com>
- Loading branch information
1 parent
0226d17
commit 49070ee
Showing
5 changed files
with
98 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: Cluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
spec: | ||
clusterNetwork: | ||
pods: | ||
cidrBlocks: ["192.168.0.0/16"] | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: GCPManagedCluster | ||
name: "${CLUSTER_NAME}" | ||
controlPlaneRef: | ||
kind: GCPManagedControlPlane | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
name: "${CLUSTER_NAME}-control-plane" | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: GCPManagedCluster | ||
metadata: | ||
name: "${CLUSTER_NAME}" | ||
spec: | ||
project: "${GCP_PROJECT}" | ||
region: "europe-west2" | ||
network: | ||
name: "highlander-ci" | ||
--- | ||
kind: GCPManagedControlPlane | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
metadata: | ||
name: "${CLUSTER_NAME}-control-plane" | ||
spec: | ||
project: "${GCP_PROJECT}" | ||
location: "europe-west2" | ||
controlPlaneVersion: "${KUBERNETES_VERSION}" | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachinePool | ||
metadata: | ||
name: "${CLUSTER_NAME}-mp-0" | ||
spec: | ||
clusterName: "${CLUSTER_NAME}" | ||
replicas: 3 # regional cluster means we need to use a multiple of 3 | ||
template: | ||
spec: | ||
bootstrap: | ||
dataSecretName: "" | ||
clusterName: "${CLUSTER_NAME}" | ||
infrastructureRef: | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: GCPManagedMachinePool | ||
name: "${CLUSTER_NAME}-mp-0" | ||
--- | ||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 | ||
kind: GCPManagedMachinePool | ||
metadata: | ||
name: "${CLUSTER_NAME}-mp-0" | ||
spec: {} |
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