You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
763 B
18 lines
763 B
---
|
|
- name: Create the custom resources CSINodeInfo and CSIDriver
|
|
command: "kubectl apply -f {{ item }}"
|
|
loop:
|
|
- https://raw.githubusercontent.com/kubernetes/csi-api/master/pkg/crd/manifests/csidriver.yaml
|
|
- https://raw.githubusercontent.com/kubernetes/csi-api/master/pkg/crd/manifests/csinodeinfo.yaml
|
|
- name: Deploy api secret yml from template
|
|
template:
|
|
src: api_secret.yml
|
|
dest: /root/hcloud_api_secret.yml
|
|
- name: Create api secret
|
|
command: kubectl apply -f /root/hcloud_api_secret.yml
|
|
- name: Delete api secret file
|
|
file:
|
|
state: absent
|
|
path: /root/hcloud_api_secret.yml
|
|
- name: Deploy CSI driver
|
|
command: kubectl apply -f https://raw.githubusercontent.com/hetznercloud/csi-driver/master/deploy/kubernetes/hcloud-csi.yml
|
|
|