Closed iamayushdas closed 4 years ago
Resolve what?
@bitfield kubectl create -f k8s/deployment.yaml
error: unable to recognize "k8s/deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
Getting this So pls tell how to resolve this :)
@bitfield Below is the Deployment.yaml code :-
kind: Deployment apiVersion: extensions/v1beta1 metadata: name: valkyrie-dev spec: replicas: 1 template: metadata: name: valkyrie-app labels: app: valkyrie-app role: frontend-backend env: dev spec: containers:
Pls tell asap :)
Resolve this!
@iamayushdas you seem like a smart individual on a path of learning - you've found the best book on Kubernetes after all. It is also important to hone the softer skills like how to collaborate - by remaining polite, explaining the issue clearly, and being respectful of people's time. There's great benefits to be had.
@moth sir pls tell how to resolve the issue I explained above
Have you checked the 'Known issues' list in the README? Specifically, https://github.com/cloudnativedevops/demo#apiversion
thanks @bitfield will try again and let u know asap :)
Have you checked the 'Known issues' list in the README? Specifically, https://github.com/cloudnativedevops/demo#apiversion
I tried this. But ended up in having error
error: error validating "k8s/deployment.yaml": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation offwith --validate=false
resolved!
Resolved!
May i know how to resolve this error from
I tried this code..
sed -i s#IMAGE_HERE#gcr.io/$GOOGLE_CLOUD_PROJECT/valkyrie-app:v0.0.1#g k8s/deployment.yaml
gcloud container clusters get-credentials valkyrie-dev --zone us-east1-d
kubectl create -f k8s/deployment.yaml
kubectl create -f k8s/service.yaml
And ended up receiving this error below
error: unable to recognize "k8s/deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
Screenshot below