Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create deployment. Stash admission policy is preventing #557

Closed
arjunsbabu opened this issue Aug 20, 2018 · 3 comments
Closed

Cannot create deployment. Stash admission policy is preventing #557

arjunsbabu opened this issue Aug 20, 2018 · 3 comments

Comments

@arjunsbabu
Copy link

HI Team ,
We have just installed stash on an Ibm cloud private 2.1.0.3 EE kubernetes cluster. This is an HA env. We have installed using the script in the appscode documentation directly.
But after it when im trying to create a deployment it not allowing me to do so. Please have a look at it

root@gyfradgicpdevm01:~/workspace/stash# cat newdepploy.yaml apiVersion: apps/v1 kind: Deployment metadata: name: dragon spec: replicas: 1 selector: matchLabels: app: arjun template: metadata: labels: app: arjun spec: containers: - name: stash-nginx-container image: nginx ports: - containerPort: 80 volumeMounts: - name: webdirectory mountPath: /usr/share/nginx/html resources: requests: cpu: 100m memory: 100Mi limits: cpu: 100m memory: 100Mi volumes: - name: dragon persistentVolumeClaim: claimName: dragon root@gyfradgicpdevm01:~/workspace/stash# kubectl create -f newdepploy.yaml Error from server (InternalError): error when creating "newdepploy.yaml": Internal error occurred: failed calling admission webhook "deployment.admission.stash.appscode.com": Unauthorized root@gyfradgicpdevm01:~/workspace/stash#

@arjunsbabu arjunsbabu changed the title Cannot create deployment. Stash ad,ission policy is preventing Cannot create deployment. Stash ad,mission policy is preventing Aug 20, 2018
@arjunsbabu arjunsbabu changed the title Cannot create deployment. Stash ad,mission policy is preventing Cannot create deployment. Stash admission policy is preventing Aug 20, 2018
@tamalsaha
Copy link
Member

I think you are facing kubernetes/kubernetes#62649 issue. It was fixed in 1.10.2

@arjunsbabu
Copy link
Author

arjunsbabu commented Sep 3, 2018

@tamalsaha got it..But just to let you know that we havent faced the issue in creating the deployment in another similar env. Not sure why there the k8 bug never applies.
The issue in creating the deployment is only reported in one particular env

@tamalsaha
Copy link
Member

Closing out-dated issue. Please file a new issue with logs if you see this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants