diff --git a/tasks/longhorn.yml b/tasks/longhorn.yml index d6c8b04..2daa169 100644 --- a/tasks/longhorn.yml +++ b/tasks/longhorn.yml @@ -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