kubeasz/roles/cluster-storage/tasks/alicloud-nas.yml

19 lines
792 B
YAML
Raw Normal View History

2018-08-05 22:52:24 +08:00
- name: 准备alicloud-nas配置目录
2018-11-06 17:44:17 +08:00
file: name=/opt/kube/kube-system/storage/alicloud-nas state=directory
2018-08-05 22:52:24 +08:00
- name: 生成alicloud-nas动态存储配置
template:
src: alicloud-nas/alicloud-nas.yaml.j2
2018-11-06 17:44:17 +08:00
dest: "/opt/kube/kube-system/storage/alicloud-nas/{{ storage.aliyun_nas.controller_name }}.yaml"
2018-08-05 22:52:24 +08:00
2018-11-06 17:44:17 +08:00
#- name: 复制alicloud-disk配置
# copy:
# src: alicloud-disk.yaml
# dest: "{{ base_dir }}/manifests/storage/alicloud-nas/alicloud-disk.yaml"
2018-08-05 22:52:24 +08:00
2018-11-06 17:44:17 +08:00
#- name: 开始部署alicloud-disk存储
# shell: "{{ bin_dir }}/kubectl apply -f {{ base_dir }}/manifests/storage/alicloud-nas/alicloud-disk.yaml"
2018-08-05 22:52:24 +08:00
- name: 开始部署alicloud-nas动态存储
2018-11-06 17:44:17 +08:00
shell: "{{ bin_dir }}/kubectl apply -f /opt/kube/kube-system/storage/alicloud-nas/{{ storage.aliyun_nas.controller_name }}.yaml"