Troubleshooting

Use the following commands troubleshoot pods during deployment.

Look at the logs

You can use kubectl logs:

% kubectl logs pod/podname

For example:

% kubectl logs pod/pod1

You can also use kubectl describe:

% kubectl describe pod podname

For example:

% kubectl describe pod pod1

Look 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:

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