Common Kubernetes commands
kubectl
is a helpful command-line tool for investigating the state of a Kubernetes cluster. Get familiar with their reference documentation. Here are some commands you may use frequently.
The first thing you should do is get the status of all containers in a cluster and ensure the whole cluster is running. The status column will all be ‘Running’ when the entire cluster is up and operational. Example:
% kubectl get pods -n dcone NAME READY STATUS RESTARTS AGE account-6d4f9fb589-lbp66 1/1 Running 1 2d2h certificate-authority-578cfdc6b5-pf4nm 1/1 Running 1 2d2h enterprise-85b8f96f4d-9hkfk 1/1 Running 2 2d2h extauth-74f85f9d5d-l87kp 1/1 Running 1 2d2h imauth-74c846b75-w9zfk 1/1 Running 1 2d2h iot-5bccb5d6f6-kpbsm 1/1 Running 1 2d2h keycloak-0 1/1 Running 1 2d2h mailhog-7b6c97f894-dqzlm 1/1 Running 0 2d2h mariadb-mariadb-0 1/1 Running 0 2d2h
To view the real-time system logs for the DigiCert® Trust Lifecycle Manager application:
kubectl logs -f service/enterprise -n dcone
To view the real-time system logs for DigiCert® IoT Trust Manager:
kubectl logs -f service/iot -n dcone
To view the real-time system logs for Account Manager:
kubectl logs -f service/account -n dcone
To view the real-time system logs for CA Manager:
kubectl logs -f service/certificate-authority -n dcone