If you build an application which is supposed to run on kubernetes then at some point in time you would also do some testing directly on a kubernetes clusters. InfraBox offers a Service which can provision a GKE Cluster for your job. This can be extremely useful if you wan to run end-to-end tests and require an empty cluster for it. This provisioned cluster is not shared with any other job. So you can create non-namespaced objects without risking any collision with other jobs in the cluster.
{
"version": 1,
"jobs": [{
"type": "docker",
"name": "hello-kubernetes",
"build_only": false,
"docker_file": "Dockerfile",
"resources": {
"limits": { "cpu": 1, "memory": 1024 },
},
"services": [{
"apiVersion": "gcp.service.infrabox.net/v1alpha1",
"kind": "GKECluster",
"metadata": {
"name": "my-cluster"
},
"spec": {
"zone": "us-east1-b",
"diskSize": 100,
"machineType": "n1-standard-1",
"enableNetworkPolicy": false,
"numNodes": 1,
"preemptible": true,
"enableAutoscaling": false,
"maxNodes": 1,
"minNodes": 1
}
}]
}]
}
The GCP Service has to be installed.