WIP lognhorn
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Adrien Reslinger 2021-02-21 16:50:17 +01:00
parent f0baecfec6
commit 9734c9afc6
Signed by: adrien
GPG key ID: DA7B27055C66D6DE

View file

@ -16,11 +16,14 @@
values:
defaultSettings:
defaultDataPath: "/var/lib/longhorn/"
tags:
- longhorn
- storage
- name: Install longhorn UI Ingress
k8s:
state: present
context: "{{ my_context }}"
merge_type: merge
apply: true
namespace: "{{ storage_longhorn_namespace }}"
resource_definition: "{{ lookup('template', 'longhorn/' + item) | from_yaml }}"
with_items:
@ -44,6 +47,25 @@
values:
defaultSettings:
defaultDataPath: "/var/lib/longhorn/"
backupTarget: "nfs://longhorn-test-nfs-svc.default:/opt/backupstore"
# ingress:
# enabled: false
# host: xip.io
# tls: false
# tlsSecret: longhorn.local-tls
# annotations:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: true
#{% 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 %}
# traefik.frontend.priority: "10"
# traefik.frontend.redirect.entryPoint: https
#{% if basic_auth is defined %}
# traefik.ingress.kubernetes.io/auth-secret: basic-auth
# traefik.ingress.kubernetes.io/auth-type: basic
#{% endif %}
- name: Remove Ingress for longhorn UI
k8s:
state: absent