Difference between revisions of "Kubectl attach"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
kubectl attach my-pod -i | kubectl attach my-pod -i | ||
https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources | https://kubernetes.io/docs/reference/kubectl/cheatsheet/#updating-resources | ||
+ | |||
+ | [[kubectl attach ubuntu]] -c ubuntu [[-i -t]] | ||
+ | |||
Revision as of 18:25, 22 October 2023
Unable to use a TTY - container your-container did not allocate one
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
kubectl exec kubectl debug
See also
- K8s troubleshooting:
kubectl logs, kubectl top, kubectl get events -A, kubectl describe pod
, Liveness, Readiness,Kubernetes events
, Pulling image, OOMKilled, ProbeWarning, Reason,FailedScheduling
,errImagePull, ImagePullBackOff
, Kubelet conditions:MemoryPressure, DiskPressure, KubeletHasSufficientPID, KubeletReady, kubectl [ debug | attach | exec ] kubectl cluster-info dump, SimKube, KWOK
Advertising: