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 }}"
|
||||
name: longhorn
|
||||
chart_ref: longhorn/longhorn
|
||||
# chart_version: 1.1.0
|
||||
# chart_version: 1.2.0
|
||||
create_namespace: yes
|
||||
release_namespace: "{{ storage_longhorn_namespace }}"
|
||||
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:
|
||||
# defaultClass: true
|
||||
# defaultClassReplicaCount: 3
|
||||
# reclaimPolicy: Delete
|
||||
# recurringJobs:
|
||||
# enable: true
|
||||
|
|
@ -74,7 +46,6 @@
|
|||
# defaultLonghornStaticStorageClass: longhorn
|
||||
# disableSchedulingOnCordonedNode: false
|
||||
replicaZoneSoftAntiAffinity: false
|
||||
|
||||
ingress:
|
||||
enabled: true
|
||||
host: "longhorn.{{ cluster_domain }}"
|
||||
|
|
@ -82,6 +53,7 @@
|
|||
# tlsSecret: longhorn.local-tls
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: traefik
|
||||
# cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
#{% 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 %}"
|
||||
#{% endif %}
|
||||
|
|
@ -92,6 +64,33 @@
|
|||
#{% endif %}
|
||||
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
|
||||
k8s:
|
||||
state: absent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue