kube: coral

This commit is contained in:
2025-08-02 14:41:36 +03:00
parent 057d602db4
commit 0ed97f0263
2 changed files with 44 additions and 15 deletions

View File

@@ -60,6 +60,10 @@ all:
# Kubernetes cluster setup documented at # Kubernetes cluster setup documented at
# https://git.k-space.ee/k-space/kube # https://git.k-space.ee/k-space/kube
kubernetes: kubernetes:
external.kube.k-space.ee:
ansible_host: 172.21.3.101
children:
kubelets:
children: children:
masters: masters:
hosts: hosts:
@@ -69,12 +73,6 @@ all:
ansible_host: 172.21.3.52 ansible_host: 172.21.3.52
master3.kube.k-space.ee: master3.kube.k-space.ee:
ansible_host: 172.21.3.53 ansible_host: 172.21.3.53
kubelets:
hosts:
nvr.kube.k-space.ee:
ansible_host: 172.21.3.100
children:
# Workers run bulk of the applications
workers: workers:
hosts: hosts:
worker1.kube.k-space.ee: worker1.kube.k-space.ee:
@@ -85,6 +83,11 @@ all:
ansible_host: 172.21.3.83 ansible_host: 172.21.3.83
worker4.kube.k-space.ee: worker4.kube.k-space.ee:
ansible_host: 172.21.3.84 ansible_host: 172.21.3.84
children:
coralworkers:
hosts:
worker91.kube.k-space.ee:
snaible_host: 172.21.8.91
# This is Raspberry Pi 400 arm64 worker, it died and has been removed from cluster. # This is Raspberry Pi 400 arm64 worker, it died and has been removed from cluster.
# worker9.kube.k-space.ee: # worker9.kube.k-space.ee:
# ansible_host: 172.21.3.89 # ansible_host: 172.21.3.89

View File

@@ -1,10 +1,36 @@
# This playbook sets up dependencies for the Kubernetes cluster nodes # This playbook sets up dependencies for the Kubernetes cluster nodes
--- ---
- name: coral drivers
hosts: coralworkers
tasks:
- name: install generic kernel
apt:
state: latest
pkg: linux-image-amd64
- name: remove cloud kernel
apt:
state: absent
force: true
pkg: linux-image-cloud-amd64
- name: apt signing key
get_url:
url: https://packages.cloud.google.com/apt/doc/apt-key.gpg
dest: /usr/share/keyrings/coral.asc
mode: ugo+rw
- name: apt repo
ansible.builtin.apt_repository:
repo: "deb [signed-by=/usr/share/keyrings/coral.asc] https://packages.cloud.google.com/apt coral-edgetpu-stable main"
state: present
filename: coral
- name: install generic kernel
apt:
state: latest
pkg: libedgetpu1-std
- name: Reconfigure Kubernetes worker nodes - name: Reconfigure Kubernetes worker nodes
hosts: hosts:
- workers - workers
- nvr.kube.k-space.ee
tasks: tasks:
- name: Configure grub defaults - name: Configure grub defaults
copy: copy:
@@ -24,9 +50,9 @@
when: grub_defaults.changed when: grub_defaults.changed
- name: Reconfigure Kubernetes nodes - name: Reconfigure Kubernetes nodes
hosts: kubernetes hosts: kubelets
vars: vars:
KUBERNETES_VERSION: v1.33.2 KUBERNETES_VERSION: v1.33.3 # https://kubernetes.io/releases/patch-releases/
CRIO_VERSION: v1.33 # https://github.com/cri-o/cri-o/releases CRIO_VERSION: v1.33 # https://github.com/cri-o/cri-o/releases
CALICOCTL_VERSION: v3.29.3 # https://github.com/projectcalico/calico/releases CALICOCTL_VERSION: v3.29.3 # https://github.com/projectcalico/calico/releases
CRICTL_VERSION: v1.32.5 # https://github.com/kubernetes-sigs/cri-tools/releases/ CRICTL_VERSION: v1.32.5 # https://github.com/kubernetes-sigs/cri-tools/releases/