kubectl run fix
Opened this issue · 0 comments
dylanmpeck commented
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.
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!