Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl run fix #41

Open
dylanmpeck opened this issue Jun 5, 2020 · 0 comments
Open

kubectl run fix #41

dylanmpeck opened this issue Jun 5, 2020 · 0 comments

Comments

@dylanmpeck
Copy link

Hey, I'm a lab architect with the Google Qwiklabs team, and the issue with kubectl run being deprecated is keeping a lab that uses this repo from being operational. We're getting the error message in the screenshot attached.
zone_depricated_error

Someone proposed a fix in another issue, and I came to the same solution that I have ready on another branch if you'd be willing to let me push a branch and make a pull request.

Otherwise changing kubectl run to kubectl create deployment in line 90 of main.tf seems to be the fix:

command = "kubectl --namespace default create deployment hello-server --image gcr.io/google-samples/hello-app:1.0"

command = "kubectl --namespace default expose deployment hello-server --type \"LoadBalancer\" --port 80 --target-port 8080"

Hope we can get this resolved!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant