This commit is contained in:
parent
59de075a0a
commit
8ddacfec51
28 changed files with 610 additions and 21 deletions
|
|
@ -2,6 +2,9 @@
|
|||
# https://github.com/kubernetes-incubator/external-storage/blob/master/nfs/docs/deployment.md
|
||||
# Ne pas oublier de "sudo chcon -Rt svirt_sandbox_file_t /srv" pour le stockage
|
||||
# ou alors tourner le container en privileged
|
||||
- name: Include file list
|
||||
include_vars: "nfs.yaml"
|
||||
|
||||
- name: Defined nfs-provisioner state to present
|
||||
set_fact:
|
||||
storage_nfs_state: present
|
||||
|
|
@ -19,14 +22,6 @@
|
|||
state: "{{ storage_nfs_state }}"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
resource_definition: "{{ lookup('file', item) | from_yaml }}"
|
||||
resource_definition: "{{ lookup('file', 'nfs/' + item) | from_yaml }}"
|
||||
with_items:
|
||||
- "nfs/nfs-provisioner-PodSecurityPolicy.yaml"
|
||||
- "nfs/nfs-provisioner-runner-ClusterRole.yaml"
|
||||
- "nfs/run-nfs-provisioner-ClusterRoleBinding.yaml"
|
||||
- "nfs/leader-locking-nfs-provisioner-Role.yaml"
|
||||
- "nfs/leader-locking-nfs-provisioner-RoleBinding.yaml"
|
||||
- "nfs/nfs-provisioner-ServiceAccount.yaml"
|
||||
- "nfs/nfs-provisioner-Service.yaml"
|
||||
- "nfs/nfs-provisioner-Deployment.yaml"
|
||||
- "nfs/example-nfs-StorageClass.yaml"
|
||||
- "{{ store_nfs_files }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue