diff --git a/tasks/main.yml b/tasks/main.yml index 66d07a0..74e957e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,14 +6,14 @@ name: external-dns repo_url: "https://kubernetes-sigs.github.io/external-dns" - - name: Install DNSEndpoint CRD - kubernetes.core.k8s: - state: "present" - context: "{{ my_context }}" - namespace: '{{ externaldns_namespace }}' -# merge_type: merge - apply: true - resource_definition: "{{ lookup('url', 'https://github.com/kubernetes-sigs/external-dns/raw/master/docs/contributing/crd-source/crd-manifest.yaml', split_lines=False) | from_yaml_all }}" +# - name: Install DNSEndpoint CRD +# kubernetes.core.k8s: +# state: "present" +# context: "{{ my_context }}" +# namespace: '{{ externaldns_namespace }}' +## merge_type: merge +# apply: true +# resource_definition: "{{ lookup('url', 'https://github.com/kubernetes-sigs/external-dns/raw/master/docs/contributing/crd-source/crd-manifest.yaml', split_lines=False) | from_yaml_all }}" - name: Deploy latest version of Kubernetes External DNS kubernetes.core.helm: diff --git a/templates/helm-values.yaml.j2 b/templates/helm-values.yaml.j2 index a11ee2d..0a3d2a1 100644 --- a/templates/helm-values.yaml.j2 +++ b/templates/helm-values.yaml.j2 @@ -17,7 +17,7 @@ env: provider: {{ externaldns_provider }} txtOwnerId: "{{ my_context }}" serviceMonitor: - enabled: false + enabled: true sources: - traefik-proxy - service @@ -27,5 +27,6 @@ sources: # policy: upsert-only # default # policy: sync extraArgs: - - --crd-source-apiversion="externaldns.k8s.io/v1alpha1" - - --crd-source-kind="DNSEndpoint" + - --traefik-disable-legacy +# - --crd-source-apiversion="externaldns.k8s.io/v1alpha1" +# - --crd-source-kind="DNSEndpoint"