add calicoctl

This commit is contained in:
root
2025-07-30 20:22:13 +00:00
parent 7452507fe1
commit 68b889c591
4 changed files with 555 additions and 63 deletions

View File

@@ -14,6 +14,26 @@ storage:
mode: 0644
contents:
inline: "control-plane1"
# --- hosts
- path: /etc/hosts
overwrite: true
mode: 0644
contents:
inline: |
127.0.0.1 localhost
::1 localhost
10.0.2.91 control-plane1.undercloud.local control-plane1
fd00:0:0:2::91 control-plane1.undercloud.local control-plane1
10.0.2.92 control-plane2.undercloud.local control-plane2
fd00:0:0:2::92 control-plane2.undercloud.local control-plane2
10.0.2.93 control-plane3.undercloud.local control-plane3
fd00:0:0:2::93 control-plane3.undercloud.local control-plane3
10.0.2.101 worker1.undercloud.local worker1
fd00:0:0:2::101 worker1.undercloud.local worker1
10.0.2.102 worker2.undercloud.local worker2
fd00:0:0:2::102 worker2.undercloud.local worker2
10.0.2.103 worker3.undercloud.local worker3
fd00:0:0:2::103 worker3.undercloud.local worker3
# --- Kubernetes sysctl tweaks ---
- path: /etc/sysctl.d/99-kubernetes-cri.conf
mode: 0644
@@ -38,6 +58,27 @@ storage:
Gateway=fd00:0:0:2::3
DNS=10.0.3.1
DNS=fd00:0:0:3::1
Domains=undercloud.local.
# --- Message of the day ---
- path: /etc/motd
overwrite: true
mode: 0644
contents:
inline: |
=========== Welcome to control-plane1 ============
--------------------------------------------------
this is a System of Undercloud!
--------------------------------------------------
--------------------------------------------------
kubernetes control-plane node
manage via:
kubectl (kubectl)
calico (calicoctl)
argocd (https...)
--------------------------------------------------
# --- Kubernetes Binaries (aus deinem Gitea) ---
- path: /opt/bin/kubelet
@@ -69,6 +110,25 @@ storage:
systemd:
units:
# --- timezone
- name: set-timezone.service
enabled: true
contents: |
[Unit]
Description=Set Timezone
After=network-online.target
Wants=network-online.target
[Service]
StandardOutput=journal+console
StandardError=journal+console
Type=oneshot
Restart=on-failure
ExecStart=/usr/bin/timedatectl set-timezone Europe/Berlin
ExecStart=/usr/bin/timedatectl set-ntp true
[Install]
WantedBy=multi-user.target
# --- containerd service aktivieren ---
- name: containerd.service
enabled: true