URL: /apis/apps/v1/namespaces/diyclientapps/deployments
) "{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"deployments.apps is forbidden: User \"system:serviceaccount:default:default\" cannot create deployments.apps in the namespace \"diyclientapps\"","reason":"Forbidden","details":{"group":"apps","kind":"deployments"},"code":403}
I'm getting the above error when trying to create a deployment via the Kubernetes REST API.
Why? I don't understand the error message...
This occurs on a custom Kubernetes cluster... The above worked correctly on a local Minikube instance.
I can successfully create a deployment via: kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.4 --port=8080