From 26fe2c5bff446e9a13a43d20f539d45430579be1 Mon Sep 17 00:00:00 2001 From: outductor Date: Thu, 14 Sep 2023 14:12:12 +0900 Subject: [PATCH 1/5] wip --- .metals/metals.log | 37 ++++++++++++++++++ .metals/metals.mv.db | Bin 0 -> 45056 bytes .vscode/settings.json | 5 +++ .../scripts/nodes/k8s-node-setup.sh | 29 +++++++++++--- 4 files changed, 65 insertions(+), 6 deletions(-) create mode 100644 .metals/metals.log create mode 100644 .metals/metals.mv.db create mode 100644 .vscode/settings.json diff --git a/.metals/metals.log b/.metals/metals.log new file mode 100644 index 000000000..64bfb8fb8 --- /dev/null +++ b/.metals/metals.log @@ -0,0 +1,37 @@ +2023.09.13 12:01:58 INFO Started: Metals version 1.0.1 in folders '/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra' for client Visual Studio Code 1.81.1. +9月 13, 2023 12:01:58 午後 org.flywaydb.core.internal.license.VersionPrinter printVersionOnly +情報: Flyway Community Edition 9.21.2 by Redgate +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.license.VersionPrinter printVersion +情報: See release notes here: https://rd.gt/416ObMi +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.license.VersionPrinter printVersion +情報: +9月 13, 2023 12:01:59 午後 org.flywaydb.core.FlywayExecutor execute +情報: Database: jdbc:h2:file:/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra/.metals/metals (H2 2.1) +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory allAppliedMigrations +情報: Schema history table "PUBLIC"."flyway_schema_history" does not exist yet +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbValidate validate +情報: Successfully validated 4 migrations (execution time 00:00.006s) +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory create +情報: Creating Schema History table "PUBLIC"."flyway_schema_history" ... +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate migrateGroup +情報: Current version of schema "PUBLIC": << Empty Schema >> +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup +情報: Migrating schema "PUBLIC" to version "1 - Create tables" +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup +情報: Migrating schema "PUBLIC" to version "2 - Server discovery" +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup +情報: Migrating schema "PUBLIC" to version "3 - Jar symbols" +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup +情報: Migrating schema "PUBLIC" to version "4 - Fingerprints" +9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate logSummary +情報: Successfully applied 4 migrations to schema "PUBLIC", now at version v4 (execution time 00:00.010s) +2023.09.13 12:01:59 INFO time: initialize in 0.32s +2023.09.13 12:02:00 WARN Build server is not auto-connectable. +2023.09.13 12:02:00 WARN no build tool detected in workspace '/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra'. The most common cause for this problem is that the editor was opened in the wrong working directory, for example if you use sbt then the workspace directory should contain build.sbt.  +9月 13, 2023 12:02:59 午後 org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify +情報: Unsupported notification method: $/setTrace +9月 13, 2023 12:02:59 午後 org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify +情報: Unsupported notification method: $/setTrace +2023.09.13 12:40:27 INFO Shutting down server +2023.09.13 12:40:27 INFO shutting down Metals +2023.09.13 12:40:27 INFO Exiting server diff --git a/.metals/metals.mv.db b/.metals/metals.mv.db new file mode 100644 index 0000000000000000000000000000000000000000..fd9b908dbdc6e23b4a9ab995de426b3c31d691d3 GIT binary patch literal 45056 zcmeG_TWlQHbu-H)O_Npaft{J%`#5vXx%ZxP?|Cei#iFyh?cOch_}bq1s#g|xo-ewu?`_>J zYejd{v$x7Z(cSgzf!8eyx~;ofm)E^+vA4Z@&mKS<_r2Zz#`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 37 ------------------------------------- .metals/metals.mv.db | Bin 45056 -> 0 bytes .vscode/settings.json | 5 ----- 3 files changed, 42 deletions(-) delete mode 100644 .metals/metals.log delete mode 100644 .metals/metals.mv.db delete mode 100644 .vscode/settings.json diff --git a/.metals/metals.log b/.metals/metals.log deleted file mode 100644 index 64bfb8fb8..000000000 --- a/.metals/metals.log +++ /dev/null @@ -1,37 +0,0 @@ -2023.09.13 12:01:58 INFO Started: Metals version 1.0.1 in folders '/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra' for client Visual Studio Code 1.81.1. -9月 13, 2023 12:01:58 午後 org.flywaydb.core.internal.license.VersionPrinter printVersionOnly -情報: Flyway Community Edition 9.21.2 by Redgate -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.license.VersionPrinter printVersion -情報: See release notes here: https://rd.gt/416ObMi -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.license.VersionPrinter printVersion -情報: -9月 13, 2023 12:01:59 午後 org.flywaydb.core.FlywayExecutor execute -情報: Database: jdbc:h2:file:/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra/.metals/metals (H2 2.1) -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory allAppliedMigrations -情報: Schema history table "PUBLIC"."flyway_schema_history" does not exist yet -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbValidate validate -情報: Successfully validated 4 migrations (execution time 00:00.006s) -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory create -情報: Creating Schema History table "PUBLIC"."flyway_schema_history" ... -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate migrateGroup -情報: Current version of schema "PUBLIC": << Empty Schema >> -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup -情報: Migrating schema "PUBLIC" to version "1 - Create tables" -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup -情報: Migrating schema "PUBLIC" to version "2 - Server discovery" -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup -情報: Migrating schema "PUBLIC" to version "3 - Jar symbols" -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup -情報: Migrating schema "PUBLIC" to version "4 - Fingerprints" -9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate logSummary -情報: Successfully applied 4 migrations to schema "PUBLIC", now at version v4 (execution time 00:00.010s) -2023.09.13 12:01:59 INFO time: initialize in 0.32s -2023.09.13 12:02:00 WARN Build server is not auto-connectable. -2023.09.13 12:02:00 WARN no build tool detected in workspace '/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra'. The most common cause for this problem is that the editor was opened in the wrong working directory, for example if you use sbt then the workspace directory should contain build.sbt.  -9月 13, 2023 12:02:59 午後 org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify -情報: Unsupported notification method: $/setTrace -9月 13, 2023 12:02:59 午後 org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify -情報: Unsupported notification method: $/setTrace -2023.09.13 12:40:27 INFO Shutting down server -2023.09.13 12:40:27 INFO shutting down Metals -2023.09.13 12:40:27 INFO Exiting server diff --git a/.metals/metals.mv.db b/.metals/metals.mv.db deleted file mode 100644 index fd9b908dbdc6e23b4a9ab995de426b3c31d691d3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 45056 zcmeG_TWlQHbu-H)O_Npaft{J%`#5vXx%ZxP?|Cei#iFyh?cOch_}bq1s#g|xo-ewu?`_>J zYejd{v$x7Z(cSgzf!8eyx~;ofm)E^+vA4Z@&mKS<_r2Zz#`YEz?`?Vm_jPZ#tn<36 zxtct~&_9X+iUEoNiUEoNiUEoNiUEoNiUEoNiUEoNih)OpfkmqSKT`bD&M5{c1}Fw7 z1}Fw71}Fw71}Fw71}Fw71}Fx878t;X{1UMN5R03hf7E}^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Zx0D_T!8WBkBP_JpiZ&z)^0n)B_;!-_B_HOg#Xo z2f)y|9Gl)#4}dV%L17;thJHhdU1EE?Fc_xl9GAUZidofN`| zlMVzB9>&9zqNkRA)N%x(77vJ-7QB2sTwyr#2w1!xi#IuoPeXap5ma&y5ho3g+^c$5 z4(~n1^wu>L)bzBtpc;{{x@@56|C&^M84G{_k|* z{J(dq=l=>h|JO(3|9i>!|KNxRf1)A@FlWODBE)577#N9}3I^ zoB{w$Wf}Q7JdQs2Q7i?(+cX70Ifzp|HdOjZK;&2`{}G3Ql$hQm=3=ZKO#zUaQh}xb zNT!+~q5NqI0F)tsrU2+eytu%5Et-%ah@=|zUHKWM0Jug|06@ZnkAk05lsO({3V__r z*^3j*lYwK?P%XobPVzC-vv(8fnUM&$A60!u)w81lHj^{}52u#}SqcKZEXW!aWCBP5 z?HIYF2xuafDwE0?WE~+{3R0D`-a7Ri`D?P^ehD!ysW0K<6#;azeY4h0WuWK zVyPL_L|u9al@UbUmwz3EUn26tmHhyFf92X|W8qH^3wlQ*07fEKW;%?e5ddifz<3D4 zla2t0_5Y#%9n5aZQ2+1BUEY&URsUCs{*M=#SpGkW56u4sV*XDutT;wQ|96L*d5~%b zvd2iaa4PzL?tgM$W|*1rD=c1Vl@GDfCKKDFEN798P`c74d`BMXO8Yih{)Yn!C$tQJ zI%LZ@^F~*4`GD#Q63AJ^!cY|K5H{;?JN|_ry3xj6G5PpX&c`HnDLZvXAbUQ&tOl zD#6q9|IkrCC4(N$Zb~x%`kM*#{695)ZkWuEW&kV|V#)H53;*@gIsYH(-+}(GMf86- P>GSg Date: Sat, 16 Sep 2023 01:04:57 +0900 Subject: [PATCH 3/5] update --- .../cluster-boot-up/scripts/nodes/k8s-node-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh index 13877f4ff..5c208fd83 100644 --- a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh +++ b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh @@ -118,7 +118,7 @@ sysctl --system curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list apt-get update -apt-get install -y kubeadm kubelet=1.27.5-00 kubectl=1.27.5-00 +apt-get install -y kubeadm kubelet=1.27.6-00 kubectl=1.27.6-00 apt-mark hold kubelet kubectl # Disable swap @@ -291,7 +291,7 @@ kind: ClusterConfiguration networking: serviceSubnet: "10.96.0.0/16" podSubnet: "10.128.0.0/16" -kubernetesVersion: "v1.27.5" +kubernetesVersion: "v1.27.6" controlPlaneEndpoint: "${KUBE_API_SERVER_VIP}:8443" apiServer: certSANs: From eddddf1e1b3c1277b59cdea0d99125c7a142c1a9 Mon Sep 17 00:00:00 2001 From: outductor Date: Sat, 16 Sep 2023 08:55:36 +0900 Subject: [PATCH 4/5] fix --- .github/workflows/pluto.yaml | 4 ++-- seichi-onp-k8s/cluster-boot-up/README.md | 2 +- .../cluster-boot-up/scripts/nodes/k8s-node-setup.sh | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/pluto.yaml b/.github/workflows/pluto.yaml index 152bb558b..216bf5242 100644 --- a/.github/workflows/pluto.yaml +++ b/.github/workflows/pluto.yaml @@ -18,8 +18,8 @@ jobs: - name: Use pluto run: | - pluto detect-files -d seichi-onp-k8s/manifests/seichi-kubernetes/apps --target-versions k8s=v1.27.5 + pluto detect-files -d seichi-onp-k8s/manifests/seichi-kubernetes/apps --target-versions k8s=v1.27.6 - name: Use pluto run: | - pluto detect-files -d seichi-onp-k8s/manifests/seichi-kubernetes/app-templates --target-versions k8s=v1.27.5 + pluto detect-files -d seichi-onp-k8s/manifests/seichi-kubernetes/app-templates --target-versions k8s=v1.27.6 diff --git a/seichi-onp-k8s/cluster-boot-up/README.md b/seichi-onp-k8s/cluster-boot-up/README.md index 2dfb2b886..a3cbfb24c 100644 --- a/seichi-onp-k8s/cluster-boot-up/README.md +++ b/seichi-onp-k8s/cluster-boot-up/README.md @@ -64,7 +64,7 @@ KubernetesノードのVMは cloudinit イメージで作成されています。 2022/05/23現在、クラスタは (3 control plane nodes + 3 worker nodes) の構成で[作成されています](https://github.com/GiganticMinecraft/seichi_infra/blob/9b6a9346371b8f2add3a786b6badbe4e13d4464c/seichi-onp-k8s/cluster-boot-scripts/deploy-vm.sh#L14-L19)。 クラスタの作成は以下のツール群で行っています。 - - kubeadm, kubectl, kubelet v1.27.5 + - kubeadm, kubectl, kubelet v1.27.6 CNI には Cilium を利用しています。 diff --git a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh index 5c208fd83..0295f4bed 100644 --- a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh +++ b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh @@ -279,10 +279,10 @@ nodeRegistration: criSocket: "unix:///var/run/containerd/containerd.sock" kubeletExtraArgs: node-ip: "$KUBEADM_LOCAL_ENDPOINT" - imagePullPolicy: "IfNotPresent" + imagePullPolicy: "IfNotPresent" localAPIEndpoint: - advertiseAddress: "$KUBEADM_LOCAL_ENDPOINT" - bindPort: 6443 + advertiseAddress: "$KUBEADM_LOCAL_ENDPOINT" + bindPort: 6443 skipPhases: - addon/kube-proxy --- @@ -357,8 +357,8 @@ nodeRegistration: kubeletExtraArgs: node-ip: "$KUBEADM_LOCAL_ENDPOINT" //FIXME localAPIEndpoint: - advertiseAddress: "$KUBEADM_LOCAL_ENDPOINT" //FIXME - bindPort: 6443 + advertiseAddress: "$KUBEADM_LOCAL_ENDPOINT" //FIXME + bindPort: 6443 discovery: bootstrapToken: apiServerEndpoint: "${KUBE_API_SERVER_VIP}:8443" From 1d183b04426d1726cc031949f9fef1fa6b9a88cb Mon Sep 17 00:00:00 2001 From: unchama <11990197+unchama@users.noreply.github.com> Date: Sun, 3 Dec 2023 21:08:26 +0900 Subject: [PATCH 5/5] =?UTF-8?q?kubeadm=20join=E3=81=AB=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E3=81=AAconfig=E3=82=92ansible=E3=81=AB=E4=BD=9C=E3=82=89?= =?UTF-8?q?=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hosts/k8s-servers/group_vars/all.yaml | 5 ++ .../ansible/hosts/k8s-servers/inventory | 72 ++++++++++++------- .../roles/11-kubeadm-join-cp/tasks/main.yaml | 7 +- .../templates/join_kubeadm_cp.yaml | 21 ++++++ .../roles/12-kubeadm-join-wk/tasks/main.yaml | 6 +- .../tasks/templates/join_kubeadm_wk.yaml | 16 +++++ .../scripts/nodes/k8s-node-setup.sh | 47 +----------- 7 files changed, 96 insertions(+), 78 deletions(-) create mode 100644 seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/group_vars/all.yaml create mode 100644 seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/templates/join_kubeadm_cp.yaml create mode 100644 seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/templates/join_kubeadm_wk.yaml diff --git a/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/group_vars/all.yaml b/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/group_vars/all.yaml new file mode 100644 index 000000000..03e870245 --- /dev/null +++ b/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/group_vars/all.yaml @@ -0,0 +1,5 @@ +--- +ansible_python_interpreter: /usr/bin/python3 +ansible_port: 22 +ansible_user: cloudinit +kube_api_server_vip: 192.168.18.100 diff --git a/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/inventory b/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/inventory index ce812b376..0fc0ad0f8 100644 --- a/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/inventory +++ b/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/inventory @@ -1,56 +1,74 @@ -[k8s-servers] -seichi-onp-k8s-cp-1 ansible_host=192.168.8.11 -seichi-onp-k8s-cp-2 ansible_host=192.168.8.12 -seichi-onp-k8s-cp-3 ansible_host=192.168.8.13 -seichi-onp-k8s-wk-1 ansible_host=192.168.8.21 -seichi-onp-k8s-wk-2 ansible_host=192.168.8.22 -seichi-onp-k8s-wk-3 ansible_host=192.168.8.23 +[seichi-onp-k8s-cp-1] +cp-1 ansible_host=192.168.0.11 host_addr_srv=192.168.0.11 host_addr_san=192.168.18.11 host_addr_cls=192.168.32.11 + +[seichi-onp-k8s-cp-2] +cp-2 ansible_host=192.168.0.12 host_addr_srv=192.168.0.12 host_addr_san=192.168.18.12 host_addr_cls=192.168.32.12 + +[seichi-onp-k8s-cp-3] +cp-3 ansible_host=192.168.0.13 host_addr_srv=192.168.0.13 host_addr_san=192.168.18.13 host_addr_cls=192.168.32.13 + +[seichi-onp-k8s-wk-1] +wk-1 ansible_host=192.168.0.21 host_addr_srv=192.168.0.21 host_addr_san=192.168.18.21 host_addr_cls=192.168.32.21 + +[seichi-onp-k8s-wk-2] +wk-2 ansible_host=192.168.0.22 host_addr_srv=192.168.0.22 host_addr_san=192.168.18.22 host_addr_cls=192.168.32.22 + +[seichi-onp-k8s-wk-3] +wk-3 ansible_host=192.168.0.23 host_addr_srv=192.168.0.23 host_addr_san=192.168.18.23 host_addr_cls=192.168.32.23 + + +[k8s-servers:children] +seichi-onp-k8s-cp-1 +seichi-onp-k8s-cp-2 +seichi-onp-k8s-cp-3 +seichi-onp-k8s-wk-1 +seichi-onp-k8s-wk-2 +seichi-onp-k8s-wk-3 [k8s-servers:vars] ansible_ssh_pass=zaq12wsx [k8s-servers-with-ssh:children] -k8s-servers +seichi-onp-k8s-cp-1 +seichi-onp-k8s-cp-2 +seichi-onp-k8s-cp-3 +seichi-onp-k8s-wk-1 +seichi-onp-k8s-wk-2 +seichi-onp-k8s-wk-3 [k8s-servers-with-ssh:vars] ansible_ssh_private_key_file=/root/.ssh/id_ed25519 -[k8s-servers-cp-with-ssh] -seichi-onp-k8s-cp-1 ansible_host=192.168.8.11 -seichi-onp-k8s-cp-2 ansible_host=192.168.8.12 -seichi-onp-k8s-cp-3 ansible_host=192.168.8.13 +[k8s-servers-cp-with-ssh:children] +seichi-onp-k8s-cp-1 +seichi-onp-k8s-cp-2 +seichi-onp-k8s-cp-3 [k8s-servers-cp-with-ssh:vars] ansible_ssh_private_key_file=/root/.ssh/id_ed25519 -[k8s-servers-cp-leader-with-ssh] -seichi-onp-k8s-cp-1 ansible_host=192.168.8.11 +[k8s-servers-cp-leader-with-ssh:children] +seichi-onp-k8s-cp-1 [k8s-servers-cp-leader-with-ssh:vars] ansible_ssh_private_key_file=/root/.ssh/id_ed25519 -[k8s-servers-cp-follower-with-ssh] -seichi-onp-k8s-cp-2 ansible_host=192.168.8.12 -seichi-onp-k8s-cp-3 ansible_host=192.168.8.13 +[k8s-servers-cp-follower-with-ssh:children] +seichi-onp-k8s-cp-2 +seichi-onp-k8s-cp-3 [k8s-servers-cp-follower-with-ssh:vars] ansible_ssh_private_key_file=/root/.ssh/id_ed25519 -[k8s-servers-wk-with-ssh] -seichi-onp-k8s-wk-1 ansible_host=192.168.8.21 -seichi-onp-k8s-wk-2 ansible_host=192.168.8.22 -seichi-onp-k8s-wk-3 ansible_host=192.168.8.23 +[k8s-servers-wk-with-ssh:children] +seichi-onp-k8s-wk-1 +seichi-onp-k8s-wk-2 +seichi-onp-k8s-wk-3 [k8s-servers-wk-with-ssh:vars] ansible_ssh_private_key_file=/root/.ssh/id_ed25519 - - -[all:vars] -ansible_python_interpreter=/usr/bin/python3 -ansible_port=22 -ansible_user=cloudinit \ No newline at end of file diff --git a/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/tasks/main.yaml b/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/tasks/main.yaml index 121469655..dd8af67c0 100644 --- a/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/tasks/main.yaml +++ b/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/tasks/main.yaml @@ -1,10 +1,9 @@ -- name: Copy file +- name: Deploy kubeadm join config file become: yes - ansible.builtin.copy: - src: /root/join_kubeadm_cp.yaml + template: + src: /home/cloudinit/seichi_infra/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/templates/join_kubeadm_cp.yaml dest: /root/join_kubeadm_cp.yaml - name: Execute kubeadm join command become: yes shell: "kubeadm join --config /root/join_kubeadm_cp.yaml" - \ No newline at end of file diff --git a/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/templates/join_kubeadm_cp.yaml b/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/templates/join_kubeadm_cp.yaml new file mode 100644 index 000000000..331655b2d --- /dev/null +++ b/seichi-onp-k8s/cluster-boot-up/ansible/roles/11-kubeadm-join-cp/templates/join_kubeadm_cp.yaml @@ -0,0 +1,21 @@ +apiVersion: kubelet.config.k8s.io/v1beta1 +kind: KubeletConfiguration +cgroupDriver: "systemd" +protectKernelDefaults: true +--- +apiVersion: kubeadm.k8s.io/v1beta4 +kind: JoinConfiguration +nodeRegistration: + criSocket: "unix:///var/run/containerd/containerd.sock" + kubeletExtraArgs: + node-ip: "{{ host_addr_cls }}" +localAPIEndpoint: + advertiseAddress: "{{ host_addr_cls }}" + bindPort: 6443 +discovery: + bootstrapToken: + apiServerEndpoint: "{{ kube_api_server_vip }}:8443" + token: "{{ kubeadm_bootstrap_token }}" + unsafeSkipCAVerification: true +controlPlane: + certificateKey: "{{ kubeadm_uploaded_certs }}" diff --git a/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/main.yaml b/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/main.yaml index 06da29d94..99a8841ed 100644 --- a/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/main.yaml +++ b/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/main.yaml @@ -1,7 +1,7 @@ -- name: Copy file +- name: Deploy kubeadm join config file become: yes - ansible.builtin.copy: - src: /root/join_kubeadm_wk.yaml + template: + src: /home/cloudinit/seichi_infra/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/templates/join_kubeadm_wk.yaml dest: /root/join_kubeadm_wk.yaml - name: Execute kubeadm join command diff --git a/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/templates/join_kubeadm_wk.yaml b/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/templates/join_kubeadm_wk.yaml new file mode 100644 index 000000000..1db412aa0 --- /dev/null +++ b/seichi-onp-k8s/cluster-boot-up/ansible/roles/12-kubeadm-join-wk/tasks/templates/join_kubeadm_wk.yaml @@ -0,0 +1,16 @@ +apiVersion: kubelet.config.k8s.io/v1beta1 +kind: KubeletConfiguration +cgroupDriver: "systemd" +protectKernelDefaults: true +--- +apiVersion: kubeadm.k8s.io/v1beta4 +kind: JoinConfiguration +nodeRegistration: + criSocket: "unix:///var/run/containerd/containerd.sock" + kubeletExtraArgs: + node-ip: "{{ host_addr_cls }}" +discovery: + bootstrapToken: + apiServerEndpoint: "{{ kube_api_server_vip }}:8443" + token: "{{ kubeadm_bootstrap_token }}" + unsafeSkipCAVerification: true diff --git a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh index 0295f4bed..c4b89518c 100644 --- a/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh +++ b/seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh @@ -343,50 +343,9 @@ helm install cilium cilium/cilium \ # Generate control plane certificate KUBEADM_UPLOADED_CERTS=$(kubeadm init phase upload-certs --upload-certs | tail -n 1) -# Set join configuration for other control plane nodes -cat > "$HOME"/join_kubeadm_cp.yaml < "$HOME"/join_kubeadm_wk.yaml <> "$HOME"/seichi_infra/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/group_vars/all.yaml +echo "kubeadm_uploaded_certs: $KUBEADM_UPLOADED_CERTS" >> "$HOME"/seichi_infra/seichi-onp-k8s/cluster-boot-up/ansible/hosts/k8s-servers/group_vars/all.yaml # install ansible sudo apt-get install -y ansible git sshpass