Skip to content

Manipulation dans Kubernetes #13

Description

@JeromeMSD

Bonjour messieurs, j'ai pu voir dans le cluster les ressources suivantes dans les namespaces bidet-toigo et default

┌────────────────────────────────────────────────────────────────────────────────────────────────────── Pods(all)[90] ───────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ NAMESPACE↑        NAME                                                            PF READY RESTARTS STATUS            CPU MEM %CPU/R %CPU/L %MEM/R %MEM/L IP         NODE                                                  │
│ bidet-toigo       fakeworks-frontend-rs-8nn6c                                     ●  1/1          0 Running             0   2      0      0      9      9 10.1.1.15  gke-k8s-polytech-dij-k8s-polytech-dij-6a10d90e-7slp   │
│ bidet-toigo       fakeworks-frontend-rs-p59j7                                     ●  1/1          0 Running             0   2      0      0      9      9 10.1.1.13  gke-k8s-polytech-dij-k8s-polytech-dij-6a10d90e-7slp   │
│ bidet-toigo       fakeworks-frontend-rs-ztzz9                                     ●  1/1          0 Running             0   2      0      0      9      9 10.1.0.6   gke-k8s-polytech-dij-k8s-polytech-dij-6a10d90e-r4lb   │
│ default           fakeworks-frontend-rs-6ff8bdb67c-fnrxq                          ●  1/1          0 Running             0   2      0      0      9      9 10.1.1.14  gke-k8s-polytech-dij-k8s-polytech-dij-6a10d90e-7slp   │
│ default           fakeworks-frontend-rs-6ff8bdb67c-g82nl                          ●  1/1          0 Running             0   2      0      0      9      9 10.1.1.12  gke-k8s-polytech-dij-k8s-polytech-dij-6a10d90e-7slp   │

Pour créer des resources uniquement dans votre namespace, pensez à utiliser -n bidet-toigo 😉

Tip

Pour ne plus avoir à le preciser, vous pouvez le configurer comme namespace par défaut via la commande:

kubectl config set-context --current --namespace=bidet-toigo 

Ainsi vous n'aurez plus besoin de préciser l'option -n à chaque commande kubectl. (cf. TD Kubernetes )

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

documentationImprovements or additions to documentationinvalidThis doesn't seem right

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions