Skip to Content
Guide d'étude de l'administrateur Kubernetes certifié (CKA) (French Edition), 2nd Edition
book

Guide d'étude de l'administrateur Kubernetes certifié (CKA) (French Edition), 2nd Edition

by Benjamin Muschko
January 2026
Intermediate to advanced
392 pages
9h 33m
French
O'Reilly Media, Inc.
Content preview from Guide d'étude de l'administrateur Kubernetes certifié (CKA) (French Edition), 2nd Edition

Annexe A. Réponses aux questions de révision

Chapitre 4, Installation et mise à niveau du cluster

  1. Fais la liste des nœuds du cluster avec la commande suivante. Tu devrais voir :

    $ kubectl get nodes
    NAME           STATUS   ROLES           AGE     VERSION
    minikube       Ready    control-plane   2m20s   v1.32.2
    minikube-m02   Ready    <none>          2m10s   v1.32.2
    minikube-m03   Ready    <none>          2m3s    v1.32.2
    minikube-m04   Ready    <none>          116s    v1.32.2
    

    Planifiez le pod avec la commande impérative suivante :

    $ kubectl run nginx --image=nginx:1.27.4-alpine
    

    Tu peux identifier le nœud sur lequel le pod est en cours d'exécution, comme indiqué. Le pod est en cours d'exécution sur le nœud nommé minikube-m02:

    $ kubectl get pod nginx -o jsonpath='{.spec.nodeName}'
    minikube-m02
    

    Utilise la commande kubectl drain pour expulser tous les pods d'un nœud. Ici, le nom du nœud est minikube-m02. Tu devras utiliser le drapeau --ignore-daemonsets pour supprimer uniquement les pods qui ne sont pas gérés par un DaemonSet, et le drapeau --force pour supprimer les pods sans contrôleur :

    $ kubectl drain minikube-m02 --ignore-daemonsets --force
    evicting pod default/nginx
    pod/nginx evicted
    node/minikube-m02 drained
    
  2. La solution à cet exercice nécessite beaucoup d'étapes manuelles. Les commandes suivantes n'affichent pas leur résultat.

    Ouvre un shell interactif vers le nœud du plan de contrôle à l'aide de Vagrant :

    $ vagrant ssh kube-control-plane
    

    Mettez à niveau kubeadm vers la version 1.32.2 et appliquez-la :

    $ sudo apt-mark unhold kubeadm && sudo apt-get ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Android® Fully Loaded, Second Edition

Android® Fully Loaded, Second Edition

Rob Huddleston

Publisher Resources

ISBN: 0642572314668