Hi Andrew,
Thank you for reaching out and sharing your question on the Q&A portal. I appreciate the detailed explanation of the issue you're facing with deploying Defender for Containers on your Arc-enabled OpenShift cluster.
From the error message you provided, it seems the Publisher pod is unable to write the certificate file due to a permission issue, even though the pod is running in privileged mode. This could be related to the directory permissions or a security context constraint (SCC) in OpenShift that might be restricting the pod’s access despite its privileged status.
Here are a few of my things you could check:
- Ensure the directory
/var/microsoft/microsoft-defender-for-cloud
exists on the host and has the correct permissions (e.g.,chmod 777
temporarily for testing).
Verify if OpenShift’s SCC (Security Context Constraints) for the pod’s service account allows the necessary permissions. You might need to adjust the SCC or assign a more permissive one.
Check if there are any admission controllers or policies in your production cluster that might be enforcing stricter rules compared to your non-production environment.
For further guidance, you might find these Microsoft articles helpful:
Deploy Defender for Containers on Kubernetes clusters
Troubleshooting Azure Arc-enabled Kubernetes
Let me know if you need further assistance or if you’ve already tried these steps. I’d be happy to help you dig deeper into the issue.
Best regards,
Alex
P.S. If my answer helps you, please Accept my answer.