Kubernetes and Docker commands
The following are helpful commands to use with Kubernetes and Docker for IBM® Surveillance Insight for Financial Services.
List the services
To list all of the services in the namespace:
kubectl get services
List the pods
To list all of the pods in the namespace:
kubectl get pods
To list the pods with more details:
kubectl get pods -o wide
Pod logs
To dump the pod log files in the namespace:
kubectl logs my-pod
To dump the pod log files in the namespace if you have multiple containers:
kubectl logs my-pod -c my-container
Run a command in a pod
To run a command in a single container pod:
kubectl exec my-pod -- ls /
To run a command in a multi-container pod:
kubectl exec my-pod -c my-container -- ls /
IBM Surveillance Insight for Financial Services uses the following containers:
sifs-db2instancesifs-liberty-instancesifs-solr-instancesifs-elasticsearch-instancesifs-logstash-instancesifs-kibanna-instancesifs-filebeat-instance
Describe commands
kubectl describe nodes my-node
kubectl describe pods my-pod
List Docker images
docker images
List Docker containers
docker ps -a
Copying files from and to Docker
docker cp CONTAINER:SRC_PATH DEST_PATH|-
docker cp SRC_PATH|- CONTAINER:DEST_PATH