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 17:13] – [Autres] 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 ===== | ===== Autres ===== | ||
* [[http:// | * [[http:// | ||
Ligne 15: | Ligne 22: | ||
* [[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 51: | Ligne 75: | ||
[[http:// | [[http:// | ||
< | < | ||
- | kubectl api-versions | + | $ kubectl api-versions |
autoscaling/ | autoscaling/ | ||
batch/v1 | batch/v1 | ||
Ligne 412: | 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.1478970820.txt.gz · Dernière modification : 2016/11/12 17:13 de root