Increase volumes;Move template
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2023-01-23 14:56:19 +01:00
parent 2531a4fb5d
commit a4e243e882
4 changed files with 15 additions and 2 deletions

View File

@ -2,8 +2,8 @@
- import_tasks: k3s.yml
- import_tasks: assets.yml
- import_tasks: kube-vip.yml
- import_tasks: ingress.yml
- import_tasks: storage.yml
- import_tasks: ingress.yml
- import_tasks: certauthority.yml
- import_tasks: registry.yml
- import_tasks: git.yml

View File

@ -3,7 +3,7 @@
- import_tasks: k3s.yml
- import_tasks: assets.yml
# - import_tasks: ingress.yml
# - import_tasks: storage.yml
- import_tasks: storage.yml
# - import_tasks: certauthority.yml
# - import_tasks: git.yml
# - import_tasks: gitops.yml

View File

@ -0,0 +1,13 @@
- name: Increase replicas for each volume
kubernetes.core.k8s:
api_version: longhorn.io/v1beta2
kind: volume
name: "{{ item.metadata.name }}"
namespace: longhorn-system
state: patched
definition: |
spec:
numberOfReplicas: {{ lookup('kubernetes.core.k8s', kind='node') | length | int }}
loop: "{{ lookup('kubernetes.core.k8s', api_version='longhorn.io/v1beta2', kind='volume', namespace='longhorn-system') }}"
loop_control:
label: "{{ item.metadata.name }}"