kube: coral
This commit is contained in:
@@ -60,6 +60,10 @@ 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:
|
||||
kubelets:
|
||||
children:
|
||||
masters:
|
||||
hosts:
|
||||
@@ -69,12 +73,6 @@ all:
|
||||
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
|
||||
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
|
||||
|
@@ -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/
|
||||
|
Reference in New Issue
Block a user