What can you use to dynamically make Kubernetes resources discoverable topublic DNS servers?

By | December 3, 2022

What can you use to dynamically make Kubernetes resources discoverable topublic DNS servers?

Correct Answer: A
Explanation
Setting up ExternalDNS for Oracle Cloud Infrastructure (OCI):
Inspired by Kubernetes DNS, Kubernetes’ cluster-internal DNS server, ExternalDNS makes Kubernetes resources discoverable via public DNS servers. Like KubeDNS, it retrieves a list of resources (Services, Ingresses, etc.) from the Kubernetes API to determine a desired listof DNS records.
In a broader sense, ExternalDNS allows you to control DNS records dynamically via Kubernetes resources in a DNS provider-agnostic way Deploy ExternalDNS Connect your kubectl client to the cluster you want to test ExternalDNS with. We first need to create a config file containing the information needed to connect with the OCI API.
Create a new file (oci.yaml) and modify the contents to match the example below. Be sure to adjust the values to match your own credentials:
auth:
region:us-phoenix-1
tenancy: ocid1.tenancy.oc1…
user: ocid1.user.oc1…
key: |
—–BEGIN RSA PRIVATE KEY—–
—–END RSA PRIVATE KEY—–
fingerprint: af:81:71:8e…
compartment: ocid1.compartment.oc1…
References:
https://github.com/kubernetes-sigs/external-dns/blob/master/README.md
https://github.com/kubernetes-sigs/external-dns/blob/master/docs/tutorials/oracle.md