Fix kubernetes persistent volumes with specific file ownership.
This commit is contained in:
parent
759fece687
commit
625babddc4
@ -27,15 +27,15 @@
|
||||
name: zdata/k8spersistent
|
||||
state: present
|
||||
extra_zfs_properties:
|
||||
sharenfs: "-network 10.215.1.0/24,-alldirs,-mapall=nobody"
|
||||
sharenfs: "-network 10.215.1.0/24,-alldirs,-maproot=root:root"
|
||||
mountpoint: /k8spersistent
|
||||
|
||||
- name: Update ownership
|
||||
file:
|
||||
name: "{{ item }}"
|
||||
state: directory
|
||||
mode: 0755
|
||||
owner: nobody
|
||||
group: nobody
|
||||
mode: 0777
|
||||
owner: root
|
||||
group: wheel
|
||||
loop:
|
||||
- /k8spersistent
|
||||
|
Loading…
x
Reference in New Issue
Block a user