Update longhorn deployment
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:
parent
bd4e8f628e
commit
32ae7edb41
1 changed files with 34 additions and 7 deletions
|
|
@ -39,13 +39,14 @@
|
|||
backupTarget: "nfs://longhorn-test-nfs-svc.default:/opt/backupstore"
|
||||
allowRecurringJobWhileVolumeDetached: true
|
||||
createDefaultDiskLabeledNodes: true
|
||||
# createDefaultDiskLabeledNodes: true
|
||||
replicaSoftAntiAffinity: false
|
||||
# defaultReplicaCount: 2
|
||||
defaultDataLocality: disabled
|
||||
defaultDataLocality: best-effort
|
||||
# defaultLonghornStaticStorageClass: longhorn
|
||||
# disableSchedulingOnCordonedNode: false
|
||||
replicaZoneSoftAntiAffinity: false
|
||||
guaranteed-engine-manager-cpu: 6
|
||||
guaranteed-replica-manager-cpu: 6
|
||||
ingress:
|
||||
enabled: true
|
||||
host: "longhorn.{{ cluster_domain }}"
|
||||
|
|
@ -61,18 +62,44 @@
|
|||
#{% if basic_auth is defined %}
|
||||
# traefik.ingress.kubernetes.io/router.middlewares: {{ traefik_namespace }}-traefik-dashboard-basicauth@kubernetescrd
|
||||
# traefik.ingress.kubernetes.io/router.middlewares: basic-auth@file
|
||||
# #traefik.ingress.kubernetes.io/router.middlewares: tools-traefik-ipwhitelist@kubernetescrd,tools-basic-auth@kubernetescrd
|
||||
#{% endif %}
|
||||
# enablePSP: true
|
||||
|
||||
- name: Install longhorn UI Ingress
|
||||
- name: Configure Longhorn
|
||||
kubernetes.core.k8s:
|
||||
state: present
|
||||
context: "{{ my_context }}"
|
||||
apply: true
|
||||
namespace: "{{ storage_longhorn.namespace }}"
|
||||
resource_definition: "{{ lookup('template', 'longhorn/' + item) | from_yaml }}"
|
||||
definition:
|
||||
kind: Setting
|
||||
apiVersion: longhorn.io/v1beta1
|
||||
metadata:
|
||||
name: "{{ item.name }}"
|
||||
namespace: "{{ storage_longhorn_namespace }}"
|
||||
value: "{{ item.value }}"
|
||||
with_items:
|
||||
- "longhorn_ingressroute.yaml.j2"
|
||||
- {
|
||||
name: "guaranteed-engine-manager-cpu",
|
||||
value: "6"
|
||||
}
|
||||
- {
|
||||
name: "guaranteed-replica-manager-cpu",
|
||||
value: "6"
|
||||
}
|
||||
- {
|
||||
name: "default-data-locality",
|
||||
value: "best-effort"
|
||||
}
|
||||
|
||||
# - name: Install longhorn UI Ingress
|
||||
# kubernetes.core.k8s:
|
||||
# state: present
|
||||
# context: "{{ my_context }}"
|
||||
# apply: true
|
||||
# namespace: "{{ storage_longhorn.namespace }}"
|
||||
# resource_definition: "{{ lookup('template', 'longhorn/' + item) | from_yaml }}"
|
||||
# with_items:
|
||||
# - "longhorn_ingressroute.yaml.j2"
|
||||
when:
|
||||
- storage_longhorn.enabled
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue