This commit is contained in:
parent
e5908fde1c
commit
0c44f1fd54
@ -10,6 +10,7 @@
|
|||||||
definition: |
|
definition: |
|
||||||
spec:
|
spec:
|
||||||
numberOfReplicas: {{ lookup('kubernetes.core.k8s', kind='node', kubeconfig=(kubeconfig.path)) | length | int }}
|
numberOfReplicas: {{ lookup('kubernetes.core.k8s', kind='node', kubeconfig=(kubeconfig.path)) | length | int }}
|
||||||
|
kubeconfig: "{{ kubeconfig.path }}"
|
||||||
loop: "{{ lookup('kubernetes.core.k8s', api_version='longhorn.io/v1beta2', kind='volume', namespace='longhorn-system', kubeconfig=(kubeconfig.path)) }}"
|
loop: "{{ lookup('kubernetes.core.k8s', api_version='longhorn.io/v1beta2', kind='volume', namespace='longhorn-system', kubeconfig=(kubeconfig.path)) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.metadata.name }}"
|
label: "{{ item.metadata.name }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user