sigs.k8s.io/external-dns@v0.14.1/docs/tutorials/kong.md (about)

     1  # Configuring ExternalDNS to use the Kong TCPIngress Source
     2  This tutorial describes how to configure ExternalDNS to use the Kong TCPIngress source.
     3  It is meant to supplement the other provider-specific setup tutorials.
     4  
     5  ### Manifest (for clusters without RBAC enabled)
     6  ```yaml
     7  apiVersion: apps/v1
     8  kind: Deployment
     9  metadata:
    10    name: external-dns
    11  spec:
    12    strategy:
    13      type: Recreate
    14    selector:
    15      matchLabels:
    16        app: external-dns
    17    template:
    18      metadata:
    19        labels:
    20          app: external-dns
    21      spec:
    22        containers:
    23        - name: external-dns
    24          # update this to the desired external-dns version
    25          image: registry.k8s.io/external-dns/external-dns:v0.14.0
    26          args:
    27          - --source=kong-tcpingress
    28          - --provider=aws
    29          - --registry=txt
    30          - --txt-owner-id=my-identifier
    31  ```
    32  
    33  ### Manifest (for clusters with RBAC enabled)
    34  Could be changed if you have mulitple sources
    35  
    36  ```yaml
    37  apiVersion: v1
    38  kind: ServiceAccount
    39  metadata:
    40    name: external-dns
    41  ---
    42  apiVersion: rbac.authorization.k8s.io/v1
    43  kind: ClusterRole
    44  metadata:
    45    name: external-dns
    46  rules:
    47  - apiGroups: [""]
    48    resources: ["services","endpoints","pods"]
    49    verbs: ["get","watch","list"]
    50  - apiGroups: [""]
    51    resources: ["nodes"]
    52    verbs: ["list","watch"]
    53  - apiGroups: ["configuration.konghq.com"]
    54    resources: ["tcpingresses"]
    55    verbs: ["get","watch","list"]
    56  ---
    57  apiVersion: rbac.authorization.k8s.io/v1
    58  kind: ClusterRoleBinding
    59  metadata:
    60    name: external-dns-viewer
    61  roleRef:
    62    apiGroup: rbac.authorization.k8s.io
    63    kind: ClusterRole
    64    name: external-dns
    65  subjects:
    66  - kind: ServiceAccount
    67    name: external-dns
    68    namespace: default
    69  ---
    70  apiVersion: apps/v1
    71  kind: Deployment
    72  metadata:
    73    name: external-dns
    74  spec:
    75    strategy:
    76      type: Recreate
    77    selector:
    78      matchLabels:
    79        app: external-dns
    80    template:
    81      metadata:
    82        labels:
    83          app: external-dns
    84      spec:
    85        serviceAccountName: external-dns
    86        containers:
    87        - name: external-dns
    88          # update this to the desired external-dns version
    89          image: registry.k8s.io/external-dns/external-dns:v0.14.0
    90          args:
    91          - --source=kong-tcpingress
    92          - --provider=aws
    93          - --registry=txt
    94          - --txt-owner-id=my-identifier
    95  ```