systeme:kubernetes
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
systeme:kubernetes [2016/11/12 16:23] – [kubectl annotate] root | systeme:kubernetes [2021/07/01 22:19] (Version actuelle) – [kubectl api-versions] root | ||
---|---|---|---|
Ligne 2: | Ligne 2: | ||
* [[http:// | * [[http:// | ||
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
* [[systeme: | * [[systeme: | ||
+ | * [[https:// | ||
+ | |||
+ | * [[https:// | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | ===== Autres ===== | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== Affichage ===== | ||
+ | Repérer le champ à afficher en yaml, puis isoler le pour l' | ||
+ | < | ||
+ | $ kubectl get pod wordpress-2713623249-d46ky -o yaml | ||
+ | $ kubectl get -o template pod wordpress-2713623249-d46ky --template={{.status.podIP}} | ||
+ | </ | ||
===== Commandes ===== | ===== Commandes ===== | ||
==== kubectl ==== | ==== kubectl ==== | ||
Ligne 39: | Ligne 75: | ||
[[http:// | [[http:// | ||
< | < | ||
- | kubectl api-versions | + | $ kubectl api-versions |
autoscaling/ | autoscaling/ | ||
batch/v1 | batch/v1 | ||
Ligne 80: | Ligne 116: | ||
$ kubectl autoscale rc foo --max=5 --cpu-percent=80 | $ kubectl autoscale rc foo --max=5 --cpu-percent=80 | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | * http:// | ||
+ | </ | ||
==== kubectl cluster-info ==== | ==== kubectl cluster-info ==== | ||
Ligne 147: | Ligne 187: | ||
$ cat pod.json | kubectl create -f - | $ cat pod.json | kubectl create -f - | ||
</ | </ | ||
+ | |||
+ | < | ||
+ | * http:// | ||
+ | </ | ||
=== kubectl create configmap === | === kubectl create configmap === | ||
Ligne 392: | Ligne 436: | ||
# Create a service for an nginx deployment, which serves on port 80 and connects to the containers on port 8000. | # Create a service for an nginx deployment, which serves on port 80 and connects to the containers on port 8000. | ||
$ kubectl expose deployment nginx --port=80 --target-port=8000 | $ kubectl expose deployment nginx --port=80 --target-port=8000 | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | $ kubectl expose deployment my-nginx --port=80 --type=LoadBalancer | ||
</ | </ | ||
systeme/kubernetes.1478967837.txt.gz · Dernière modification : 2016/11/12 16:23 de root