Advertisement
toonarmycaptain

PVC-mount-error

Sep 25th, 2021
1,169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.31 KB | None | 0 0
  1. toonarmycaptain:~/PycharmProjects/kubernetes-test$ helm install toon-app helm_charts/flask_app/
  2. NAME: toon-app
  3. LAST DEPLOYED: Sat Sep 25 00:52:42 2021
  4. NAMESPACE: default
  5. STATUS: deployed
  6. REVISION: 1
  7. toonarmycaptain:~/PycharmProjects/kubernetes-test$ kubectl get pods
  8. NAME                            READY   STATUS              RESTARTS   AGE
  9. k8s-test-flask-5798d876-2s7pc   0/1     ContainerCreating   0          28s
  10. k8s-test-flask-5798d876-4qd2l   0/1     ContainerCreating   0          28s
  11. k8s-test-flask-5798d876-tghv7   0/1     ContainerCreating   0          28s
  12. nfs-server-78984847d5-pvhlz     1/1     Running             0          27m
  13. toonarmycaptain:~/PycharmProjects/kubernetes-test$ kubectl describe pod k8s-test-flask-5798d876-2s7pc
  14. Name:           k8s-test-flask-5798d876-2s7pc
  15. Namespace:      default
  16. Priority:       0
  17. Node:           gke-cluster-1-default-pool-21733ced-56bt/10.128.0.7
  18. Start Time:     Sat, 25 Sep 2021 00:52:43 -0500
  19. Labels:         app=k8s-test-flask
  20.                 pod-template-hash=5798d876
  21. Annotations:    <none>
  22. Status:         Pending
  23. IP:            
  24. IPs:            <none>
  25. Controlled By:  ReplicaSet/k8s-test-flask-5798d876
  26. Containers:
  27.   k8s-test-flask:
  28.     Container ID:  
  29.     Image:          toonarmycaptain/k8s-test:latest
  30.     Image ID:      
  31.     Port:           3000/TCP
  32.     Host Port:      0/TCP
  33.     State:          Waiting
  34.       Reason:       ContainerCreating
  35.     Ready:          False
  36.     Restart Count:  0
  37.     Liveness:       http-get http://:http/ delay=30s timeout=1s period=10s #success=1 #failure=3
  38.     Readiness:      http-get http://:http/ delay=30s timeout=1s period=10s #success=1 #failure=3
  39.     Environment:    <none>
  40.     Mounts:
  41.       /mnt/data from k8s-test-storage-volume (rw)
  42.       /var/run/secrets/kubernetes.io/serviceaccount from default-token-228gc (ro)
  43. Conditions:
  44.   Type              Status
  45.   Initialized       True
  46.   Ready             False
  47.   ContainersReady   False
  48.   PodScheduled      True
  49. Volumes:
  50.   k8s-test-storage-volume:
  51.     Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
  52.     ClaimName:  k8s-test-storage-volume
  53.     ReadOnly:   false
  54.   default-token-228gc:
  55.     Type:        Secret (a volume populated by a Secret)
  56.     SecretName:  default-token-228gc
  57.     Optional:    false
  58. QoS Class:       BestEffort
  59. Node-Selectors:  <none>
  60. Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
  61.                  node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
  62. Events:
  63.   Type     Reason       Age                From               Message
  64.   ----     ------       ----               ----               -------
  65.   Normal   Scheduled    48s                default-scheduler  Successfully assigned default/k8s-test-flask-5798d876-2s7pc to gke-cluster-1-default-pool-21733ced-56bt
  66.   Warning  FailedMount  46s                kubelet            MountVolume.SetUp failed for volume "default-token-228gc" : failed to sync secret cache: timed out waiting for the condition
  67.   Warning  FailedMount  15s (x7 over 47s)  kubelet            MountVolume.SetUp failed for volume "k8s-test-storage-volume" : mount failed: exit status 1
  68. Mounting command: /home/kubernetes/containerized_mounter/mounter
  69. Mounting arguments: mount -t nfs nfs-service.default.svc.cluster.local:/mnt/data /var/lib/kubelet/pods/8a6ef886-7235-4f1f-a0b2-bc1ba3b945ed/volumes/kubernetes.io~nfs/k8s-test-storage-volume
  70. Output: Mount failed: mount failed: exit status 32
  71. Mounting command: chroot
  72. Mounting arguments: [/home/kubernetes/containerized_mounter/rootfs mount -t nfs nfs-service.default.svc.cluster.local:/mnt/data /var/lib/kubelet/pods/8a6ef886-7235-4f1f-a0b2-bc1ba3b945ed/volumes/kubernetes.io~nfs/k8s-test-storage-volume]
  73. Output: mount.nfs: Failed to resolve server nfs-service.default.svc.cluster.local: Name or service not known
  74. toonarmycaptain:~/PycharmProjects/kubernetes-test$ kubectl get svc -n default
  75. NAME                     TYPE           CLUSTER-IP    EXTERNAL-IP     PORT(S)                      AGE
  76. k8s-test-flask-service   LoadBalancer   10.8.14.172   34.72.209.183   80:32056/TCP                 59s
  77. kubernetes               ClusterIP      10.8.0.1      <none>          443/TCP                      28m
  78. nfs-server               ClusterIP      10.8.3.65     <none>          2049/TCP,20048/TCP,111/TCP   59s
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement