Increase volumes;Move template
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 }}" | ||||
		Reference in New Issue
	
	Block a user