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
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
Most helpful comment
Could you try to add
--allow-privilegedinto/var/snap/microk8s/current/args/kube-apiserverand do a restart withmicrok8s.stop; microk8s.start?