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]
doc ansible_user=pollen doc ansible_user=pollen
[local] [cluster]
proxmox ansible_user=root node1 ansible_user=ansible
pihole ansible_user=pollen node2 ansible_user=ansible
bastion ansible_user=mango node3 ansible_user=ansible
debianV ansible_user=ansible node4 ansible_user=ansible
foreman ansible_user=ansible node5 ansible_user=ansible
foremanAlma ansible_user=ansible node6 ansible_user=ansible
[windows] [windows]
bane ansible_user=ansible ansible_connection=winrm ansible_winrm_transport=basic ansible_port=5985 ansible_winrm_server_cert_validation=ignore 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 - image: jellyfin/jellyfin:latest
name: jellyfin name: jellyfin
resources: {} resources: {}
volumeMounts:
- mountPath: /media
name: media-vol
volumes:
- name: media-vol
nfs:
server: 192.168.0.106
path: /exports/nfs_share/media1
status: {} status: {}

View File

@ -25,3 +25,13 @@
name: nfs-kernel-server name: nfs-kernel-server
state: started state: started
enabled: true 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)