kubectl describe pod web-d8b69f76f-d5qj6
Error from server (NotFound): pods "web-d8b69f76f-d5qj6" not found
and deployment not available
ubectl get deployments --all-namespaces
NAMESPACE NAME READY UP-TO-DATE AVAILABLE AGE
kube-system coredns 2/2 2 2 176d
kubernetes-dashboard dashboard-metrics-scraper 1/1 1 1 176d
kubernetes-dashboard kubernetes-dashboard 1/1 1 1 176d
smt-prod web 0/2 2 0 12m
the deployment used is
using Docker Images from Docker Hub I set up there myself.
When I check events I do not see anything helpful as of yet
kubectl get events
LAST SEEN TYPE REASON OBJECT MESSAGE
34m Normal RegisteredNode node/minikube Node minikube event: Registered Node minikube in Controller
37m Warning FailedGetScale horizontalpodautoscaler/web deployments/scale.apps "web" not found
4m19s Warning FailedGetScale horizontalpodautoscaler/web deployments/scale.apps "web" not found
Why do these new deployments remain pending? How to remedy this?
So it seems my Persistent Volume Claim code cannot be found.
So I removed the deployments and rebuilt them after I had the persistent volume claim set up. But now I am seeing
Type Reason Age From Message
---- ------ ---- ---- -------
Warning FailedScheduling <unknown> default-scheduler running "VolumeBinding" filter plugin for pod "web-d8b69f76f-2b9fp": pod has unbound immediate PersistentVolumeClaims
Warning FailedScheduling <unknown> default-scheduler running "VolumeBinding" filter plugin for pod "web-d8b69f76f-2b9fp": pod has unbound immediate PersistentVolumeClaims
and locally I need a local path and no DigitalOcean Storage class name. But how? And why would I need a PVC if the Docker Image uses a work directory or its own PVC? What is wisdom here?