This commit is contained in:
VR 2024-08-29 21:50:57 +01:00
parent a83635f4bf
commit f4d22c4f04
6 changed files with 22 additions and 38 deletions

View File

@ -1,18 +0,0 @@
## nextcloud.persistentvolume.yml
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: "nextcloud-seagate"
labels:
type: "local"
spec:
storageClassName: "manual"
capacity:
storage: "50Gi"
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/seagate/_NEXTCLOUD"
---

View File

@ -1,15 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: "nextcloud"
name: "nextcloud-seagate"
spec:
storageClassName: "manual"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: "50Gi"
---

View File

@ -5,6 +5,7 @@ all:
192.168.0.51:
192.168.0.52:
192.168.0.53:
192.168.0.54:
kube_masters:
hosts:
192.168.0.51:
@ -12,12 +13,14 @@ all:
hosts:
192.168.0.52:
192.168.0.53:
192.168.0.54:
docker:
hosts:
192.168.0.50:
zero:
hosts:
192.168.0.54:
192.168.0.49:
192.168.0.55:
vars:
ansible_ssh_private_key_file = /home/vraducanu/.ssh/id_rsa
192.168.0.48:
vars:
ansible_ssh_private_key_file = /home/vraducanu/.ssh/id_rsa

View File

@ -1,6 +1,6 @@
---
- name: Reboot the Raspberries
hosts: all
hosts: kubernetes
gather_facts: no
roles:
- common

View File

@ -0,0 +1,14 @@
---
- name: Update hosts files on k3s nodes
hosts: kubernetes
roles:
- common
become: yes
gather_facts: no
tasks:
- name: Replace the local A records for local services in k3s
ansible.builtin.lineinfile:
path: /etc/hosts
line: 192.168.0.56 services.ze.internet.local

View File

@ -1,6 +1,6 @@
---
- name: Shutdown the Raspberries
hosts: all
hosts: kubernetes
gather_facts: no
roles:
- common