Skip to content

Commit

Permalink
Switch to kubectl cloud builder
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Oct 20, 2022
1 parent b4ab181 commit 138440c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions cloudbuild-gke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,14 @@

steps:
- id: "install"
name: "gcr.io/cloud-builders/gcloud"
name: "gcr.io/cloud-builders/kubectl"
env:
- "KUBECONFIG=/kube/config"
- "PROJECT_ID=$PROJECT_ID"
- "CLOUDSDK_CONTAINER_CLUSTER=${_CLUSTER}"
- "CLOUDSDK_COMPUTE_ZONE=${_ZONE}
entrypoint: "bash"
args:
- "-c"
- |
gcloud container clusters get-credentials "${_CLUSTER}" \
--project "$${PROJECT}" \
--zone "${_ZONE}"
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.10.0/cert-manager.yaml
while ! kubectl apply -f https://github.com/open-telemetry/opentelemetry-operator/releases/latest/download/opentelemetry-operator.yaml; do echo "Retrying"; sleep 5; done

0 comments on commit 138440c

Please sign in to comment.