Kubernetes: Difference between revisions

Line 113: Line 113:


==kubectl==
==kubectl==
In general you will want to create a <code>.yaml</code> manifest and use <code>apply</code>, <code>create</code>, or <code>delete</code> to manage your resources.
===nodes===
===nodes===
<pre>
<pre>
Line 127: Line 129:
<pre>
<pre>
kubectl get deployments
kubectl get deployments
kubectl logs $POD_NAME
kubectl exec -it $POD_NAME -- bash


# For one-off deployments of an image.
# For one-off deployments of an image.
Line 135: Line 139:
<pre>
<pre>
kubectl proxy
kubectl proxy
</pre>
===containers===
<pre>
kubectl logs $POD_NAME
kubectl exec -it $POD_NAME -- bash
</pre>
</pre>