Welcome to the Linux Foundation Forum!

Lab 8.1 Create a config map Step 5

Options

Execution of command in step 5 "kubectl exec shell-demo -- /bin/bash -c 'echo $ilike'" Creates error "error: unable to upgrade connection: container not found ("nginx")"

What needs to happen that was not a part of the instructions?

Answers

  • chrispokorni
    chrispokorni Posts: 2,165
    Options

    Hi @mabricker,

    The expectation is that the shell-demo pod is running prior to a successful kubectl exec command.

    After running kubectl create -f simpleshell.yaml, does a kubectl get pod shell-demo list the pod in a Running state? If not, what are the "Events" showing after kubectl describe pod shell-demo ?

    Regards,
    -Chris

Categories

Upcoming Training