Difference between revisions of "Kubectl run -it ubuntu --image=ubuntu -- bash"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
{{lc}}
 
{{lc}}
 
  [[kubectl run -it]] ubuntu --image=ubuntu -- bash
 
  [[kubectl run -it]] ubuntu --image=ubuntu -- bash
 
  
 
  root@ubuntu:/# df -kh
 
  root@ubuntu:/# df -kh
Line 11: Line 10:
 
  [[tmpfs]]          7.7G  12K  7.7G  1% [[/run/secrets/kubernetes.io/serviceaccount]]
 
  [[tmpfs]]          7.7G  12K  7.7G  1% [[/run/secrets/kubernetes.io/serviceaccount]]
 
  tmpfs          3.9G    0  3.9G  0% [[/sys/firmware]]
 
  tmpfs          3.9G    0  3.9G  0% [[/sys/firmware]]
 +
 +
 +
[[kubectl attach]] ubuntu -c ubuntu -i -t
  
  

Revision as of 18:25, 22 October 2023

kubectl run -it ubuntu --image=ubuntu -- bash
root@ubuntu:/# df -kh
Filesystem      Size  Used Avail Use% Mounted on
overlay        59G   39G   17G  71% /
tmpfs            64M     0   64M   0% /dev
/dev/vda1        59G   39G   17G  71% /etc/hosts
shm              64M     0   64M   0% /dev/shm
tmpfs           7.7G   12K  7.7G   1% /run/secrets/kubernetes.io/serviceaccount
tmpfs           3.9G     0  3.9G   0% /sys/firmware


kubectl attach ubuntu -c ubuntu -i -t


See also

Advertising: