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

[operator] Installation fails on AKS with default Azure Policy for K8s #700

Open
rsirny opened this issue Mar 24, 2023 · 0 comments
Open
Labels
chart:operator Issue related to opentelemetry-operator helm chart enhancement New feature or request

Comments

@rsirny
Copy link

rsirny commented Mar 24, 2023

Opentelemetry operator installation via Helm chart fails on Azure Kubernetes Service cluster, which has enabled default Azure Policies, with the following message:

admission webhook "validation.gatekeeper.sh" denied the request: 
     [azurepolicy-k8sazurev3noprivilegeescalatio-...] Privilege escalation container is not allowed: kube-rbac-proxy
     [azurepolicy-k8sazurev3noprivilegeescalatio-...] Privilege escalation container is not allowed: manager

The above message is due to Azure Policy "Kubernetes cluster should not allow privileged containers]" violation. The root cause is that container security context property allowPrivilegeEscalation is not explicitly set to false and there is no way to set container security context via values overrides. There is a similar issue reported for autoinstrumentation

I was able to start the pods by manually editing operator deployment and setting container security context allowPrivilegeEscalation to false. It would be great if Helm values allowed to set the container security context (e.g. containerSecurityContext).

Kubernetes server version: v1.25.5

@TylerHelmuth TylerHelmuth added chart:operator Issue related to opentelemetry-operator helm chart enhancement New feature or request labels Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chart:operator Issue related to opentelemetry-operator helm chart enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants