initial plan for storage host role
This commit is contained in:
parent
e524e06abd
commit
760f2d7137
1 changed files with 25 additions and 0 deletions
25
roles/k3s-nfs-host/tasks/main.yml
Normal file
25
roles/k3s-nfs-host/tasks/main.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# nfs server einrichten
|
||||||
|
# apt install nfs-kernel-server
|
||||||
|
|
||||||
|
# mountpoint anlegen
|
||||||
|
# /srv/nfs
|
||||||
|
# sudo chown nobody:nogroup /srv/nfs
|
||||||
|
# sudo chmod 0777 /srv/nfs
|
||||||
|
|
||||||
|
# modify /etc/exports#
|
||||||
|
# echo '/srv/nfs 10.0.0.0/24(rw,sync,no_subtree_check)'
|
||||||
|
|
||||||
|
# restart nfs server
|
||||||
|
|
||||||
|
# apply node label
|
||||||
|
- name: Apply labels to each worker nodes
|
||||||
|
k8s:
|
||||||
|
kubeconfig: "{{ ocp_ignition_file_path }}/auth/kubeconfig"
|
||||||
|
state: present
|
||||||
|
definition:
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Node
|
||||||
|
metadata:
|
||||||
|
name: {{ ansible_hostname }}
|
||||||
|
labels:
|
||||||
|
node-role.kubernetes.n39.eu/nfs-host: true
|
Loading…
Reference in a new issue