Benutzer-Werkzeuge

Webseiten-Werkzeuge


it-wiki:kubernetes:change_calico_ip_pool

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
it-wiki:kubernetes:change_calico_ip_pool [2023/08/29 10:01] – [Migrate from one IP pool to another] markoit-wiki:kubernetes:change_calico_ip_pool [2024/03/13 12:09] (aktuell) marko
Zeile 79: Zeile 79:
 ==== Step 1: Add a new IP pool ==== ==== Step 1: Add a new IP pool ====
 We add a new **IPPool** with the CIDR range, **10.0.0.0/16**. We add a new **IPPool** with the CIDR range, **10.0.0.0/16**.
-<code bash>+<code yaml>
     apiVersion: projectcalico.org/v3     apiVersion: projectcalico.org/v3
     kind: IPPool     kind: IPPool
Zeile 107: Zeile 107:
 </code> </code>
  
-<code bash>+<code yaml>
     apiVersion: projectcalico.org/v3     apiVersion: projectcalico.org/v3
     items:     items:
Zeile 132: Zeile 132:
 Disable this IP pool by setting: ''disabled: true'' Disable this IP pool by setting: ''disabled: true''
  
-<code bash>+<code yaml>
     apiVersion: projectcalico.org/v3     apiVersion: projectcalico.org/v3
     kind: IPPool     kind: IPPool
Zeile 167: Zeile 167:
  
 ==== Step 4: Verify that new pods get an address from the new IP pool ==== ==== Step 4: Verify that new pods get an address from the new IP pool ====
-  - Create a test namespace and nginx pod. +  - Create a test namespace and nginx pod. <code bash>kubectl create ns ippool-test</code> 
-    - <code bash>kubectl create ns ippool-test</code> +  - Create an nginx pod. <code bash>kubectl -n ippool-test create deployment nginx --image nginx</code> 
-  - Create an nginx pod. +  - Verify that the new pod gets an IP address from the new range. <code bash>kubectl -n ippool-test get pods -l app=nginx -o wide</code> 
-    - <code bash>kubectl -n ippool-test create deployment nginx --image nginx</code> +  - Clean up the ippool-test namespace. <code bash>kubectl delete ns ippool-test</code>
-  - Verify that the new pod gets an IP address from the new range. +
-    - <code bash>kubectl -n ippool-test get pods -l app=nginx -o wide</code> +
-  - Clean up the ippool-test namespace. +
-    - <code bash>kubectl delete ns ippool-test</code>+
  
 ==== Step 5: Delete the old IP pool ==== ==== Step 5: Delete the old IP pool ====
it-wiki/kubernetes/change_calico_ip_pool.1693303269.txt.gz · Zuletzt geändert: 2023/08/29 10:01 von marko