-
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 <[email protected]>
- Loading branch information
1 parent
772fee9
commit 4584039
Showing
4 changed files
with
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
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" | ||
--- | ||
apiVersion: cluster.x-k8s.io/v1beta1 | ||
kind: MachinePool | ||
metadata: | ||
name: "${CLUSTER_NAME}-mp-0" | ||
spec: | ||
clusterName: "${CLUSTER_NAME}" | ||
replicas: 1 | ||
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: | ||
nodeLocations: | ||
- "europe-west2-a" |
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