it-wiki:kubernetes:change_calico_ip_pool
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
it-wiki:kubernetes:change_calico_ip_pool [2023/08/29 10:01] – [Migrate from one IP pool to another] marko | it-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/ | We add a new **IPPool** with the CIDR range, **10.0.0.0/ | ||
- | < | + | < |
apiVersion: projectcalico.org/ | apiVersion: projectcalico.org/ | ||
kind: IPPool | kind: IPPool | ||
Zeile 107: | Zeile 107: | ||
</ | </ | ||
- | < | + | < |
apiVersion: projectcalico.org/ | apiVersion: projectcalico.org/ | ||
items: | items: | ||
Zeile 132: | Zeile 132: | ||
Disable this IP pool by setting: '' | Disable this IP pool by setting: '' | ||
- | < | + | < |
apiVersion: projectcalico.org/ | apiVersion: projectcalico.org/ | ||
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> |
- | - <code bash> | + | - Create an nginx pod. <code bash> |
- | - Create an nginx pod. | + | - Verify that the new pod gets an IP address from the new range. <code bash> |
- | - <code bash> | + | - Clean up the ippool-test namespace. <code bash> |
- | - Verify that the new pod gets an IP address from the new range. | + | |
- | - <code bash> | + | |
- | - Clean up the ippool-test namespace. | + | |
- | - <code bash> | + | |
==== 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