Name: worker-app-pod
Namespace: default
Priority: 0
Node: minikube/192.168.99.101
Start Time: Wed, 26 Aug 2020 22:14:08 +0530
Labels: app=demo-voting-app
name=worker-app-pod
Annotations: Status: Running
IP: 172.17.0.5
IPs:
IP: 172.17.0.5
Containers:
worker-app:
Container ID: docker://b80a62e8827abe7bfe1413d15efdeff3145fe9563fdb765bd736ce049a3a013b
Image: shivansh123321/worker
Image ID: docker-pullable://shivansh123321/worker@sha256:c364804d835e9ca3d5966b5a3ac4efdc73e570de070474e052d3cb4f0766f10a
Port:
Host Port:
State: Waiting
Reason: CrashLoopBackOff
Last State: Terminated
Reason: Error
Exit Code: 1
Started: Wed, 26 Aug 2020 22:17:21 +0530
Finished: Wed, 26 Aug 2020 22:17:22 +0530
Ready: False
Restart Count: 5
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from default-token-dzm7w (ro)
Conditions:
Type Status
Initialized True
Ready False
ContainersReady False
PodScheduled True
Volumes:
default-token-dzm7w:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-dzm7w
Optional: false
QoS Class: BestEffort
Node-Selectors:
Tolerations: node.kubernetes.io/not-ready:NoExecute for 300s node.kubernetes.io/unreachable:NoExecute for 300s
Events:
Type Reason Age From Message
Normal Scheduled 4m47s default-scheduler Successfully assigned default/worker-app-pod to minikube
Normal Created 3m54s (x4 over 4m43s) kubelet, minikube Created container worker-app
Normal Started 3m54s (x4 over 4m43s) kubelet, minikube Started container worker-app Warning BackOff 3m24s (x7 over 4m37s) kubelet, minikube Back-off restarting failed container
Normal Pulling 3m10s (x5 over 4m46s) kubelet, minikube Pulling image âshivansh123321/workerâ
Normal Pulled 3m8s (x5 over 4m43s) kubelet, minikube Successfully pulled image âshivansh123321/workerâ
Hello, @Shivansh123321
What is the image you choose? Just to deploy only image is not enough. You have to write some code to make it container alive after pulling your image.
I was able to get the voting app screen and result app screen up with port:30004 and 30005 respectively but there is problem with the worker app .as I am always getting CrashLoopBackOff msg.
due to this, the data is not being updated in the Postgres database.
Iâm going through same issue also, I donât want to submit it like that because I believe I will fail the task. Something is wrong with the image or dns issue.
Please follow these full steps to know what you have missed and try again :
Note: We will create deployments again so please before following the steps, Runkubectl delete deployment --allto delete old deployments and avoid any conflicts.
Run git clone https://github.com/mmumshad/example-voting-app-kubernetes-v2.git
Run cd example-voting-app-kubernetes-v2/
Run vim postgres-deployment.yml and modify itâs content as below then save and exit.
Run kubectl create -f . if you create deployments for the first time, if you created the same deployments before Run kubectl apply -f . .
Run kubectl get service to get the exposed ports.
For example if the output of the command as above you can accces the voting app by hitting One_of_the_worker_nodes_IP:32733 on your browser and the same for the resulting app >> One_of_the_worker_nodes_IP:30013.
Check :
Note: The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.
@Ayman Could you please give more details about this change on the postgress manifest? Why keep the user and password if Iâm passing the POSTGRES_HOST_AUTH_METHOD as âtrustâ?
Hello @deovrat.dubey,
Please follow these full steps to know what you have missed and try again :
Note: We will create deployments again so please before following the steps, Runkubectl delete deployment --allto delete old deployments and avoid any conflicts.
Run git clone https://github.com/mmumshad/example-voting-app-kubernetes-v2.git
Run cd example-voting-app-kubernetes-v2/
Run vim postgres-deployment.yml and modify itâs content as below then save and exit.
Run kubectl create -f . if you create deployments for the first time, if you created the same deployments before Run kubectl apply -f . .
Run kubectl get service to get the exposed ports.
For example if the output of the command as above you can accces the voting app by hitting One_of_the_worker_nodes_IP:32733 on your browser and the same for the resulting app >> One_of_the_worker_nodes_IP:30013.
Check :
Note: The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client.
HI Ayman, you might be suggesting me for Deploying microservices using Deployments.
but i want to deploy microservice via installing pods and services manually one by one. in this case all the services and pods are installed and running except the worker pod which is giving the error can you provide me the solution and reason for this case.