-
-
Notifications
You must be signed in to change notification settings - Fork 749
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
Volume Mount Issue in health-check Deployment on Azure AKS #136
Comments
Thank you so much @intrusus-dev for the detailed information and solution. Would you like to make a PR for this? |
Fix issue on pods keep on `ContainerCreating` state. issue madhuakula#136 madhuakula#136
Hi @intrusus-dev / @madhuakula I've created a PR for this. |
Thanks @za ! |
Hi @intrusus-dev can you double check, it seems the issue has been solved without any changes on current main branch.
I am running on AKS with Kubernetes version 1.28.9 |
Issue #136 change to DirectoryOrCreate
As PR 157 has been merged, I've tested deploy it on AKS, and I can confirm that the pod is created successfully.
Maybe we can close/resolve this issue now @intrusus-dev cc: @madhuakula |
Thank you @za for testing 🙏 |
Environment:
Platform: Azure AKS
Affected Scenario: scenarios/health-check/deployment.yaml
Kubernetes Goat Version: v2.2.0
Issue Description:
During the deployment of the Kubernetes Goat's "health-check" scenario on Azure AKS, I encountered a volume mount issue that prevented the pod from transitioning out of the "ContainerCreating" state. This issue appears to be specific to the Azure AKS platform.
Symptoms:
The "health-check" pod remained stuck in the "ContainerCreating" state.
Logs showed errors related to mounting volumes, specifically the docker-sock-volume.
Troubleshooting:
hostPath
configuration in deployment.yaml.Resolution:
The issue was due to an incorrect type used for the docker-sock-volume
hostPath
. I updated the type toDirectoryOrCreate
, which resolved the volume mount problem.Steps to Reproduce:
kubectl get pods
Expected Behavior:
The "health-check" pod should transition from the "ContainerCreating" state to the "Running" state without any volume mount issues.
Recommendation:
Developers are advised to use the corrected type for the docker-sock-volume hostPath in the deployment.yaml file to ensure successful deployment on Azure AKS. To ensure compatibility, it's recommended to test the deployment specifically on Azure AKS, as this issue might not surface on other platforms.
The text was updated successfully, but these errors were encountered: