Viya 4 Basic Troubleshooting
Viya 4 Basic Troubleshooting
com
Similar to yesterday you can use trainee1 and tranee2 namspaces respectively
Trainee1 (Mohini Ojha, Archana Patil, Saurabh Tomer, Gorang Khandelwal, Rajesh Kazhankodath,
Narendra Kailasiya, Arun Bhilare, Harrshada Panikkar)
Trainee2 (Amit Kumar Das, Raghunath Sahay, Tanvi P, Pallavi G, Rohit R, Abhishek Tiwari, Sameer Mulay,
Anoop Gadewar, Nishant Palia)
a. Pending
b. ContainerCreating
c. Init: x/y
d. Running
e. Init: ErrImagePull
f. Terminating
g. CrashLoopBackOff
h. ImagePullBackOff
- For statuses like a,b,c you need to wait as pod/containers are still coming up
- For Status d – check logs and start testing
- For statuses like e-h need debugging
For complete list of kubelet events
3. Check logs
5. Start/Stop services
To stop a service
- kubectl -n <namespace> delete pod <podName>
OR
if you set the replicas=0 then to start the service you need to re-run the same command with
replicas=1
https://repulpmaster.unx.sas.com/v2/
7. How to rollback
- Check the current image use kubectl describe pod
- Check rollout history of a deploymet
- Rollback
- Login to container
10. How to check the list of all nodes and their status in Kubernetes Cluster
./kubectl-get-sas-logs.sh -n yourspace
https://gitlab.sas.com/enablement/viya-k8s-utils