Update lognhorn 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
addf1b1fa0
commit
d5e57c2fac
1 changed files with 30 additions and 31 deletions
|
|
@ -10,41 +10,13 @@
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
name: longhorn
|
name: longhorn
|
||||||
chart_ref: longhorn/longhorn
|
chart_ref: longhorn/longhorn
|
||||||
# chart_version: 1.1.0
|
# chart_version: 1.2.0
|
||||||
create_namespace: yes
|
create_namespace: yes
|
||||||
release_namespace: "{{ storage_longhorn_namespace }}"
|
release_namespace: "{{ storage_longhorn_namespace }}"
|
||||||
values:
|
values:
|
||||||
defaultSettings:
|
|
||||||
defaultDataPath: "/var/lib/longhorn/"
|
|
||||||
- name: Install longhorn UI Ingress
|
|
||||||
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|bool
|
|
||||||
tags:
|
|
||||||
- longhorn
|
|
||||||
- storage
|
|
||||||
|
|
||||||
- name: longhorn need to be absent
|
|
||||||
block:
|
|
||||||
- name: Deploy latest version of longhorn
|
|
||||||
kubernetes.core.helm:
|
|
||||||
context: "{{ my_context }}"
|
|
||||||
name: longhorn
|
|
||||||
chart_ref: longhorn/longhorn
|
|
||||||
# chart_version: 1.1.1
|
|
||||||
release_state: absent
|
|
||||||
release_namespace: "{{ storage_longhorn_namespace }}"
|
|
||||||
create_namespace: true
|
|
||||||
values:
|
|
||||||
# persistence:
|
# persistence:
|
||||||
# defaultClass: true
|
# defaultClass: true
|
||||||
|
# defaultClassReplicaCount: 3
|
||||||
# reclaimPolicy: Delete
|
# reclaimPolicy: Delete
|
||||||
# recurringJobs:
|
# recurringJobs:
|
||||||
# enable: true
|
# enable: true
|
||||||
|
|
@ -74,7 +46,6 @@
|
||||||
# defaultLonghornStaticStorageClass: longhorn
|
# defaultLonghornStaticStorageClass: longhorn
|
||||||
# disableSchedulingOnCordonedNode: false
|
# disableSchedulingOnCordonedNode: false
|
||||||
replicaZoneSoftAntiAffinity: false
|
replicaZoneSoftAntiAffinity: false
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
host: "longhorn.{{ cluster_domain }}"
|
host: "longhorn.{{ cluster_domain }}"
|
||||||
|
|
@ -82,6 +53,7 @@
|
||||||
# tlsSecret: longhorn.local-tls
|
# tlsSecret: longhorn.local-tls
|
||||||
annotations:
|
annotations:
|
||||||
kubernetes.io/ingress.class: traefik
|
kubernetes.io/ingress.class: traefik
|
||||||
|
# cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||||
#{% if ingress_whitelist is defined %}
|
#{% if ingress_whitelist is defined %}
|
||||||
# ingress.kubernetes.io/whitelist-source-range: "{% for acl_whitelist in ingress_whitelist %}{{ acl_whitelist }}{% if not loop.last %}, {% endif %}{% endfor %}"
|
# ingress.kubernetes.io/whitelist-source-range: "{% for acl_whitelist in ingress_whitelist %}{{ acl_whitelist }}{% if not loop.last %}, {% endif %}{% endfor %}"
|
||||||
#{% endif %}
|
#{% endif %}
|
||||||
|
|
@ -92,6 +64,33 @@
|
||||||
#{% endif %}
|
#{% endif %}
|
||||||
enablePSP: true
|
enablePSP: true
|
||||||
|
|
||||||
|
- name: Install longhorn UI Ingress
|
||||||
|
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|bool
|
||||||
|
tags:
|
||||||
|
- longhorn
|
||||||
|
- storage
|
||||||
|
|
||||||
|
- name: longhorn need to be absent
|
||||||
|
block:
|
||||||
|
- name: Deploy latest version of longhorn
|
||||||
|
kubernetes.core.helm:
|
||||||
|
context: "{{ my_context }}"
|
||||||
|
name: longhorn
|
||||||
|
chart_ref: longhorn/longhorn
|
||||||
|
# chart_version: 1.2.0
|
||||||
|
release_state: absent
|
||||||
|
release_namespace: "{{ storage_longhorn_namespace }}"
|
||||||
|
create_namespace: true
|
||||||
|
|
||||||
- name: Remove Ingress for longhorn UI
|
- name: Remove Ingress for longhorn UI
|
||||||
k8s:
|
k8s:
|
||||||
state: absent
|
state: absent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue