Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toonarmycaptain:~/PycharmProjects/kubernetes-test$ helm install toon-app helm_charts/flask_app/
- NAME: toon-app
- LAST DEPLOYED: Sat Sep 25 00:52:42 2021
- NAMESPACE: default
- STATUS: deployed
- REVISION: 1
- toonarmycaptain:~/PycharmProjects/kubernetes-test$ kubectl get pods
- NAME READY STATUS RESTARTS AGE
- k8s-test-flask-5798d876-2s7pc 0/1 ContainerCreating 0 28s
- k8s-test-flask-5798d876-4qd2l 0/1 ContainerCreating 0 28s
- k8s-test-flask-5798d876-tghv7 0/1 ContainerCreating 0 28s
- nfs-server-78984847d5-pvhlz 1/1 Running 0 27m
- toonarmycaptain:~/PycharmProjects/kubernetes-test$ kubectl describe pod k8s-test-flask-5798d876-2s7pc
- Name: k8s-test-flask-5798d876-2s7pc
- Namespace: default
- Priority: 0
- Node: gke-cluster-1-default-pool-21733ced-56bt/10.128.0.7
- Start Time: Sat, 25 Sep 2021 00:52:43 -0500
- Labels: app=k8s-test-flask
- pod-template-hash=5798d876
- Annotations: <none>
- Status: Pending
- IP:
- IPs: <none>
- Controlled By: ReplicaSet/k8s-test-flask-5798d876
- Containers:
- k8s-test-flask:
- Container ID:
- Image: toonarmycaptain/k8s-test:latest
- Image ID:
- Port: 3000/TCP
- Host Port: 0/TCP
- State: Waiting
- Reason: ContainerCreating
- Ready: False
- Restart Count: 0
- Liveness: http-get http://:http/ delay=30s timeout=1s period=10s #success=1 #failure=3
- Readiness: http-get http://:http/ delay=30s timeout=1s period=10s #success=1 #failure=3
- Environment: <none>
- Mounts:
- /mnt/data from k8s-test-storage-volume (rw)
- /var/run/secrets/kubernetes.io/serviceaccount from default-token-228gc (ro)
- Conditions:
- Type Status
- Initialized True
- Ready False
- ContainersReady False
- PodScheduled True
- Volumes:
- k8s-test-storage-volume:
- Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
- ClaimName: k8s-test-storage-volume
- ReadOnly: false
- default-token-228gc:
- Type: Secret (a volume populated by a Secret)
- SecretName: default-token-228gc
- Optional: false
- QoS Class: BestEffort
- Node-Selectors: <none>
- Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
- node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
- Events:
- Type Reason Age From Message
- ---- ------ ---- ---- -------
- Normal Scheduled 48s default-scheduler Successfully assigned default/k8s-test-flask-5798d876-2s7pc to gke-cluster-1-default-pool-21733ced-56bt
- Warning FailedMount 46s kubelet MountVolume.SetUp failed for volume "default-token-228gc" : failed to sync secret cache: timed out waiting for the condition
- Warning FailedMount 15s (x7 over 47s) kubelet MountVolume.SetUp failed for volume "k8s-test-storage-volume" : mount failed: exit status 1
- Mounting command: /home/kubernetes/containerized_mounter/mounter
- 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
- Output: Mount failed: mount failed: exit status 32
- Mounting command: chroot
- 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]
- Output: mount.nfs: Failed to resolve server nfs-service.default.svc.cluster.local: Name or service not known
- toonarmycaptain:~/PycharmProjects/kubernetes-test$ kubectl get svc -n default
- NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
- k8s-test-flask-service LoadBalancer 10.8.14.172 34.72.209.183 80:32056/TCP 59s
- kubernetes ClusterIP 10.8.0.1 <none> 443/TCP 28m
- nfs-server ClusterIP 10.8.3.65 <none> 2049/TCP,20048/TCP,111/TCP 59s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement