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