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,21 +60,19 @@ all:
# Kubernetes cluster setup documented at
# https://git.k-space.ee/k-space/kube
kubernetes:
external.kube.k-space.ee:
ansible_host: 172.21.3.101
children:
masters:
hosts:
master1.kube.k-space.ee:
ansible_host: 172.21.3.51
master2.kube.k-space.ee:
ansible_host: 172.21.3.52
master3.kube.k-space.ee:
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
masters:
hosts:
master1.kube.k-space.ee:
ansible_host: 172.21.3.51
master2.kube.k-space.ee:
ansible_host: 172.21.3.52
master3.kube.k-space.ee:
ansible_host: 172.21.3.53
workers:
hosts:
worker1.kube.k-space.ee:
@@ -85,6 +83,11 @@ all:
ansible_host: 172.21.3.83
worker4.kube.k-space.ee:
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.
# worker9.kube.k-space.ee:
# ansible_host: 172.21.3.89

View File

@@ -1,10 +1,36 @@
# 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
hosts:
- workers
- nvr.kube.k-space.ee
tasks:
- name: Configure grub defaults
copy:
@@ -24,9 +50,9 @@
when: grub_defaults.changed
- name: Reconfigure Kubernetes nodes
hosts: kubernetes
hosts: kubelets
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
CALICOCTL_VERSION: v3.29.3 # https://github.com/projectcalico/calico/releases
CRICTL_VERSION: v1.32.5 # https://github.com/kubernetes-sigs/cri-tools/releases/