Skip to content

Commit

Permalink
Merge pull request #40 from lucaviolanti/master
Browse files Browse the repository at this point in the history
Use new Kubernetes API for creating deployments
  • Loading branch information
kaariger authored Jun 5, 2020
2 parents dc5cfc0 + 224a61a commit 87ae8e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ resource "google_container_cluster" "primary" {
}

provisioner "local-exec" {
command = "kubectl --namespace default run hello-server --image gcr.io/google-samples/hello-app:1.0 --port 8080"
command = "kubectl --namespace default create deployment hello-server --image gcr.io/google-samples/hello-app:1.0"
}

provisioner "local-exec" {
command = "kubectl --namespace default expose deployment hello-server --type \"LoadBalancer\" "
command = "kubectl --namespace default expose deployment hello-server --type \"LoadBalancer\" --port=8080"
}
}

Expand Down

0 comments on commit 87ae8e6

Please sign in to comment.