add nfs-common tools to cluster + fixes

This commit is contained in:
Ibrahim Mkusa 2024-11-17 12:33:11 -05:00
parent b470d74da0
commit 0bb9d0534b
4 changed files with 26 additions and 8 deletions

View File

@ -24,13 +24,13 @@ nodex
[doc]
doc ansible_user=pollen
[local]
proxmox ansible_user=root
pihole ansible_user=pollen
bastion ansible_user=mango
debianV ansible_user=ansible
foreman ansible_user=ansible
foremanAlma ansible_user=ansible
[cluster]
node1 ansible_user=ansible
node2 ansible_user=ansible
node3 ansible_user=ansible
node4 ansible_user=ansible
node5 ansible_user=ansible
node6 ansible_user=ansible
[windows]
bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5985 ansible_winrm_server_cert_validation=ignore

View File

@ -31,5 +31,13 @@ spec:
- image: jellyfin/jellyfin:latest
name: jellyfin
resources: {}
volumeMounts:
- mountPath: /media
name: media-vol
volumes:
- name: media-vol
nfs:
server: 192.168.0.106
path: /exports/nfs_share/media1
status: {}

View File

@ -25,3 +25,13 @@
name: nfs-kernel-server
state: started
enabled: true
- name: install nfs-common on all k8s nodes
hosts: cluster
become: true
tasks:
- name: install nfs-common(debian based)
ansible.builtin.apt:
name: nfs-common
state: present

View File

@ -1 +1 @@
{{nfs_dir}} {{nfs_server_ip}}(rw,sync,no_root_squash,no_subtree_check)
{{nfs_dir}} *(rw,sync,no_root_squash,no_subtree_check)