Difference between revisions of "Kubectl run -it ubuntu --image=ubuntu -- bash"
Jump to navigation
Jump to search
(4 intermediate revisions by the same user not shown) | |||
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 12: | Line 11: | ||
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]] | ||
+ | |||
+ | [[kubectl run ubuntu]] | ||
+ | [[docker run ubuntu]] | ||
+ | [[apt update]] | ||
== See also == | == See also == |
Latest revision as of 11:21, 22 October 2024
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
kubectl run ubuntu docker run ubuntu apt update
See also[edit]
Advertising: