kubectl run to create deployment has been deprecated
Closed this issue · 1 comments
supirman commented
There is .tf that use kubectl run to create a deployment.
This will create pods instead of deployment, the old functionality has been deprecated.
elkyee commented
Updated kubectl commands for deployment and worked.
provisioner "local-exec" {
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" --port=8080"
}