kube: coral
This commit is contained in:
@@ -60,21 +60,19 @@ 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:
|
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:
|
kubelets:
|
||||||
hosts:
|
|
||||||
nvr.kube.k-space.ee:
|
|
||||||
ansible_host: 172.21.3.100
|
|
||||||
children:
|
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:
|
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
|
||||||
|
@@ -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/
|
||||||
|
Reference in New Issue
Block a user