Kubectl Commands
To get the subnamespace:
kubectl get subnamespaces
To get the pods:
kubectl -n <subnamespace> get pods
For example:
kubectl -n fsgbu-ofscca--fsafnd-ccaqa313233-prd get pods
kubectl -n fsgbu-ofscca--ofscca-ccaqa313233-prd get pods
To get the node level details and logs:
kubectl logs <servicename> -n <subnamespace>
For example:
kubectl logs dataload-ofscca-czpv5 -n
fsgbu-ofscca--ofscca-ccaqa282233-prd
To delete a pod:
kubectl delete pod <ppodname> -n
fsgbu-ofscca--ofscca-<tenanted>
For example:
kubectl delete pod cca-loader-cfdf7b4f4-8vk4x -n
fsgbu-ofscca--ofscca-ccaqa313233-prd
Scaling the pods:
Kubectl get deployments
kubectl scale deployment jobless-ordering-service --replicas=3(Scale
up)
kubectl scale deployment jobless-ordering-service --replicas=0 (Scale
Down)