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

Getting error while installing elasticsearch with helm #749

Closed
ghost opened this issue Oct 22, 2019 · 7 comments
Closed

Getting error while installing elasticsearch with helm #749

ghost opened this issue Oct 22, 2019 · 7 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 22, 2019

helm install incubator/elasticsearch --namespace logging --name elasticsearch --set data.terminationGracePeriodSeconds=0

Error: release elasticsearch failed: Deployment.apps "elasticsearch-client" is invalid: spec.template.spec.initContainers[0].securityContext.privileged: Forbidden: disallowed by cluster policy

@ktsakalozos
Copy link
Member

Could you try to add --allow-privileged into /var/snap/microk8s/current/args/kube-apiserver and do a restart with microk8s.stop; microk8s.start ?

@ghost
Copy link
Author

ghost commented Oct 25, 2019

After executing command kubectl rollout status deployment/kibana --namespace=kube-logging
No pod is created.
Waiting for 3 pods to be ready...

@ktsakalozos
Copy link
Member

Could you attach the tarball produced by microk8s.inspect? Thank you.

@morganchristiansson
Copy link

Hello. I had the same issue when trying to run elasticsearch on microk8s.

Adding --allow-privileged into /var/snap/microk8s/current/args/kube-apiserver and microk8s.stop; microk8s.start resolves it. Thank you @ktsakalozos

@strigona-worksight
Copy link
Contributor

For what it's worth, I've had no issues with the Elasticsearch Operator.

@eli-halych
Copy link

eli-halych commented Sep 30, 2020

For me this was also relevant with other operators like Rook in a rook-ceph cluster. Thanks for this solution, all worked! @ktsakalozos

@stale
Copy link

stale bot commented Aug 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the inactive label Aug 26, 2021
@stale stale bot closed this as completed Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants