Projects:Kubernetes: verschil tussen versies

Naar navigatie springen Naar zoeken springen
Regel 146: Regel 146:


<pre>
<pre>
$ kubectl run -ti --image=ubuntu:bionic bash
$ kubectl run --restart=Never -ti --image=ubuntu:bionic bash
root@bash-58654c7f4b-dhsbh:/# apt-get update && apt-get -y install lsb-release
If you don't see a command prompt, try pressing enter.
root@bash:/# apt-get update && apt-get -y install lsb-release
[....]
[....]
root@bash-58654c7f4b-dhsbh:/# lsb_release -a
root@bash:/# lsb_release -a
No LSB modules are available.
No LSB modules are available.
Distributor ID: Ubuntu
Distributor ID: Ubuntu
Regel 161: Regel 162:
<pre>
<pre>
$ kubectl get pods
$ kubectl get pods
NAME                   READY  STATUS    RESTARTS  AGE
NAME   READY  STATUS    RESTARTS  AGE
bash-58654c7f4b-dhsbh   1/1    Running  0          112s
bash  1/1    Running  0          56s
</pre>
</pre>

Navigatiemenu