kubectl get svc |grep uss-bcs //Search and view service
kubectl get pod -w |grep uss-base//Search and view pod and keep listening until running
kubectl describe pods uss-bcs-pod-84ddf5fdb7-vzpzx(pod name)// Display the detailed information of Pod,
see Warning FailedScheduling 108s (x128 over 117m) default-scheduler 0/1 nodes are available: 1 Insufficient cpu. It
should be insufficient resources
kubectl edit cm uss-bcs-svc edit yml file
kubectl logs -f uss-bcs-pod-668787fcfc-rhbls -c uss-bcs-svc
kubectl logs -f uss-bcs-pod-74c66b979f-xd6s7 -c uss-bcs-svc |grep start //Search and filter logs
kubectl delete pod uss-web-pod-567578b55f-q498l //Delete pod to restart pod
uss-web-pod-567578b55f-7j48p// is the page service corresponding to http://192.168.111.85:9000/, if you can’t open it, restart the pod
View the contents of the bag
[root@node1 uss-bcs-svc]# pwd
/home/vcloud_product/vcloud_app/USS-BCS-V100R001B01D008/configFile/single/uss-bcs-svc
history command
cd USS-BCS-V100R001B01D008
236 ls
237 cd configPod/
238 ls
239 cd ..
240 cd configFile/
241 ls
242 cd single/
243 ls
244 cd uss-bcs-svc/
245 ls
246 vi application.yml
247 kubectl edit cm uss-bcs-svc
248 history