Kubernetes: Difference between revisions

imported>Vater
mNo edit summary
imported>Vater
mNo edit summary
Line 148: Line 148:
drake      Ready    <none>  102m  v1.16.6-beta.0
drake      Ready    <none>  102m  v1.16.6-beta.0
</syntaxhighlight>
</syntaxhighlight>


== N Masters (HA) ==
== N Masters (HA) ==
Line 159: Line 158:
systemctl status kubelet
systemctl status kubelet
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lanh="bash">
<syntaxhighlight lang="bash">
systemctl status kube-apiserver
systemctl status kube-apiserver
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lanh="bash">
<syntaxhighlight lang="bash">
kubectl get nodes
kubectl get nodes
</syntaxhighlight>
</syntaxhighlight>
Line 203: Line 202:
Run a pod to check with <code>kubectl run curl --restart=Never --image=radial/busyboxplus:curl -i --tty</code>:
Run a pod to check with <code>kubectl run curl --restart=Never --image=radial/busyboxplus:curl -i --tty</code>:


If you don't see a command prompt, try pressing enter.
<syntaxhighlight lang=shell>
[ root@curl:/ ]$
</syntaxhighlight>
<syntaxhighlight lang=bash>
nslookup google.com
</syntaxhighlight>
<syntaxhighlight lang=shell>
<syntaxhighlight lang=shell>
If you don't see a command prompt, try pressing enter.
[ root@curl:/ ]$ nslookup google.com
Server:    10.0.0.254
Server:    10.0.0.254
Address 1: 10.0.0.254 kube-dns.kube-system.svc.cluster.local
Address 1: 10.0.0.254 kube-dns.kube-system.svc.cluster.local
Line 274: Line 278:
- mountPath: /dev/shm
- mountPath: /dev/shm
   name: dshm
   name: dshm
</syntaxhighlight>
<syntaxhighlight lang=bash></syntaxhighlight>
<syntaxhighlight lang=bash></syntaxhighlight>