kubectl attach

From wikieduonline
Revision as of 12:54, 8 February 2024 by Welcome (talk | contribs)
Jump to navigation Jump to search

 Unable to use a TTY - container your-container did not allocate one
kubectl attach myalpinedataaccess -i
If you don't see a command prompt, try pressing enter.
Error from server (BadRequest): pod myalpinedataaccess does not have a host assigned

Solution: maybe pod is in pending state


kubectl attach my-pod -i
https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources
kubectl attach ubuntu -c ubuntu -i -t


spec:
    containers:
    - name: your-name
      image: your-name:latest
      tty: true
      stdin: true

Related

kubectl exec
kubectl debug

See also

Advertising: