From 569c78a3e68403ea502cd45f065676f36237d944 Mon Sep 17 00:00:00 2001 From: Mikael Frykholm Date: Fri, 11 Apr 2025 14:21:59 +0200 Subject: [PATCH] These need to change order. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index df6cac0..9edb81b 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,9 @@ region = sto4]! * Add all other _Controller_ nodes with `microk8s join 89.46.21.119:25000/12345678987654345678976543/1234565` * Add all other _Worker_ nodes with `microk8s join 89.46.21.119:25000/12345678987654345678976543/1234565 --worker` * Taint controller nodes so they wont get workload:` microk8s.kubectl taint nodes --selector=node.kubernetes.io/microk8s-controlplane=microk8s-controlplane cp-node=true:NoExecute` +* `kubectl label node internal-sto4-test-k8spg-0.rut.sunet.se sunet.se/role=cnpg` +* `kubectl label node internal-sto4-test-k8spg-1.rut.sunet.se sunet.se/role=cnpg` +* `kubectl label node internal-sto4-test-k8spg-2.rut.sunet.se sunet.se/role=cnpg` * Taint Postgres nodes so they wont get workload:` microk8s.kubectl taint nodes --selector=sunet.se/role=cnpg pg-node=true:NoExecute` * `kubectl get nodes` should show something like: @@ -67,9 +70,6 @@ internal-sto4-test-k8sc-1.rut.sunet.se Ready 16d v1.28.7 ``` * Enable needed addons for rut: `microk8s enable ingress` `microk8s enable cert-manager` `microk8s enable community` `microk8s enable cloudnative-pg` `microk8s enable metrics-server` * `kubectl create namespace sunet-cnpg` -* `kubectl label node internal-sto4-test-k8spg-0.rut.sunet.se sunet.se/role=cnpg` -* `kubectl label node internal-sto4-test-k8spg-1.rut.sunet.se sunet.se/role=cnpg` -* `kubectl label node internal-sto4-test-k8spg-2.rut.sunet.se sunet.se/role=cnpg` * Setup storage class: `rsync -a k8s internal-sto4-test-k8sc-0.rut.sunet.se: && ssh internal-sto4-test-k8sc-0.rut.sunet.se kubectl apply -f k8s` * **Profit**