GoogleCloudPlatform / metacontroller

Lightweight Kubernetes controllers as a service
https://metacontroller.app/
Apache License 2.0
792 stars 105 forks source link

Service-per-pod example: no matches for kind "Deployment" in version "apps/v1beta1" #203

Open rifqifatih opened 4 years ago

rifqifatih commented 4 years ago

Greetings, I'm trying to follow the example in https://github.com/GoogleCloudPlatform/metacontroller/tree/master/examples/service-per-pod and executing kubectl apply -f service-per-pod.yaml will result in:

error: unable to recognize "service-per-pod.yaml": no matches for kind "Deployment" in version "apps/v1beta1"

Changing the apiVersion to apiVersion: apps/v1 should work.