nfs server wird nicht im k3s laufen, labeling entfernt
This commit is contained in:
parent
aff06a396f
commit
2138870520
5 changed files with 4 additions and 19 deletions
|
@ -1,3 +1,2 @@
|
|||
---
|
||||
mac: "12:D8:CD:E4:69:2A"
|
||||
nfs_host_storage_device: "/dev/sdb"
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
# Defaults for k3s-nfs-host
|
||||
---
|
||||
nfs_host_mount_point: /srv/nfs
|
||||
nfs_host_kubeconfig_path: "$HOME/.kube/config-k3s-netz39-tunnel"
|
4
roles/nfs-host/defaults/main.yml
Normal file
4
roles/nfs-host/defaults/main.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Defaults for nfs-host
|
||||
---
|
||||
nfs_host_mount_point: "/srv/nfs"
|
||||
nfs_host_storage_device: "/dev/sdb"
|
|
@ -1,5 +1,4 @@
|
|||
---
|
||||
|
||||
# - name: Create a new ext4 primary partition
|
||||
# community.general.parted:
|
||||
# device: "{{ nfs_host_storage_device }}"
|
||||
|
@ -28,16 +27,3 @@
|
|||
src: templates/exports.j2
|
||||
dest: "/etc/exports"
|
||||
# restart nfs server
|
||||
|
||||
# apply node label
|
||||
- name: Apply labels to storage worker node
|
||||
kubernetes.core.k8s:
|
||||
kubeconfig: "{{ nfs_host_kubeconfig_path }}"
|
||||
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