Hi,
We are trying to deploy craft cms in azure with private vnet
we are getting multiple issues which are not addressed previously and its too difficult to fins the solution .
So i am posting the issues and solution plus we are still stuck with git certificate mount issue which require community help.
1. cant run kubectl apply -k . or kubectl get nodes directly from cloud shell
solution : use az aks command invoke -g
"kubectl apply -k ."
2. while running with az aks command invoke -g kubectl cant able to find the files like any yaml
solution: az aks command invoke -g <rsname> -n <clustorname> -c "kubectl apply -k ."
--file . # this will supply all file contect to that virtaul env which runs the kubctl
3. ssl issue with git
:
error: NewResMapFromSecretArgs: NewResMapFromSecretArgs: file sources:
[resources/secrets/git-https-server/server.crt
resources/secrets/git-https-server/server.key]: evalsymlink failure on
'/command-files/resources/secrets/git-https-server/server.crt' : lstat
/command-files/resources/secrets/git-https-server: no such file or
directory
Solution: uncomment the top git commands in kustomization.yaml because as per craft doc u already generated the ssh key use that one
4. Now we are able to run after using newly created ssh key but still git is having issue
node.kubernetes.io/unreachable:NoExecute
op=Exists for 300s
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedMount 53m (x18 over 4h22m) kubelet Unable to
attach or mount volumes: unmounted
volumes=[git-https-server-cert-files], unattached volumes=[temp
git-https-server-cert-files data logs kube-api-access-w4dt9]: timed out
waiting for the condition
Warning FailedMount 28m (x33 over 4h15m) kubelet Unable to
attach or mount volumes: unmounted
volumes=[git-https-server-cert-files], unattached volumes=[data logs
kube-api-access-w4dt9 temp git-https-server-cert-files]: timed out
waiting for the condition
Warning FailedMount 8m24s (x18 over 4h4m) kubelet Unable to
attach or mount volumes: unmounted
volumes=[git-https-server-cert-files], unattached volumes=[logs
kube-api-access-w4dt9 temp git-https-server-cert-files data]: timed out
waiting for the condition
Warning FailedMount 3m54s (x136 over 4h24m) kubelet
MountVolume.SetUp failed for volume "git-https-server-cert-files" :
secret "git-https-server-cert-files" not found
Solution: Please help us to find one
Thank
Pankaj