Microk8s: Getting error while installing elasticsearch with helm

Created on 22 Oct 2019  路  6Comments  路  Source: ubuntu/microk8s

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

Most helpful comment

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

All 6 comments

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

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

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

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

toxsick picture toxsick  路  4Comments

edsiper picture edsiper  路  5Comments

NumesSanguis picture NumesSanguis  路  3Comments

xrpn picture xrpn  路  4Comments

ceefour picture ceefour  路  3Comments