Troubleshooting

The following commands can be used to troubleshoot and look at pods during deployment.

Look at the logs

You can use oc logs:

% oc logs pod/podname

For example:

% oc logs pod/pod1

You can also use oc describe:

% oc describe pod podname

For example:

% oc describe pod pod1

Looking at the init container

In the guide, the init container is deployed at each pod that gets the secret. To look at the logs for the init container, use the following command:

% oc logs pods/pod1 -c secret-v --namespace=testnamespace