Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 3b6412da authored by Marc Beninca's avatar Marc Beninca
Browse files

kube/ctl,ctx,ns

parent c420721e
No related branches found
No related tags found
No related merge requests found
......@@ -618,3 +618,47 @@ Commands
matchExpressions:
- {key: version, operator: In, values: ["1.0","1.1","1.2"]}
kubectl
=======
* kubectl version = api-server version ± 0.1
.. code:: shell
kubectl \
get namespace \
-o 'custom-columns="NAME":".metadata.name"' \
--no-headers
.. code:: shell
kubectl \
-n my-namespace \
get pod \
--sort-by '.status.phase'
.. code:: shell
kubectl \
-n my-namespace \
get pod \
--watch
.. code:: shell
kubectl \
-n my-namespace \
exec my-pod \
-it -- \
ls
.. code:: shell
kubectl config use-context my-cluster
kubectx my-cluster
.. code:: shell
kubectl config set-context --current --namespace my-namespace
kubens my-namespace
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment