Executing Commands for Maintenance

AppViewX is installed based on the Kubernetes engine. We can use a few of the basic Kubernetes commands to manage the components in AppViewX. The list below contains the basic commands to manage the Kubernetes cluster.

  1. View all the nodes in the cluster
    kubectl get nodes
  2. View all the pods of AppViewX services
    kubectl get pods -n avx -o wide
  3. View all the services
    kubectl get services -n avx
  4. Log in to a particular container of the pod
    kubectl exec -it avx-platform-web-5c4595b87-cd2ml -n avx /bin/sh
  5. List all the namespaces
    kubectl get namespaces
  6. List all the configuration maps. This is used to view configuration related details.
    kubectl get configmaps -n avx
  7. List all the deployments
    kubectl get deployments -n avx
  8. Stop a deployment
    kubectl scale --replicas=0 deployment/avx-vendor-haproxy -n avx
  9. Start a deployment
    kubectl scale --replicas=1 deployment/avx-vendor-haproxy -n avx
  10. Edit a configuration
    kubectl edit configmaps -n avx avx-common-config
  11. Describe the pods
    kubectl describe pods -n avx <plugin name>
  12. Log in to the database
    kubectl exec -it mongo-routerdb-0 -n avx -- /bin/sh