Asking for help? Comment out what you need so we can get more information to help you!
Cloud being used:Microsoft Azure
Host OS: Ubuntu
CNI and version:AzureCNI
CRI and version:
I raised a gitlab image on this AKS cluster:
And I want to run some command with image startup.
like “apt-get update” as below:
spec: nodeSelector: "kubernetes.io/os": linux containers: - image: "gitlab/gitlab-ce:latest" command: ["/bin/bash", "-ce", "apt-get update"] name: gitlab-image ports: - name: http containerPort: 80
when I applied this deployment, the pod’s status returned ContainerCreating->Running->Completed → CrashLoopBackOff
Is there any way I can run some command when pod deployed and keep pod running?
Please kindly help.