This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.16.7. 在 Infoblox 上创建 DNS 记录
您可以使用 Red Hat External DNS Operator 在 Infoblox 上创建 DNS 记录。
16.7.1. 在 Infoblox 上的公共 DNS 区域中创建 DNS 记录 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
您可以使用 Red Hat External DNS Operator 在 Infoblox 上的公共 DNS 区域中创建 DNS 记录。
先决条件
-
您可以访问 OpenShift CLI(
oc
)。 - 您可以访问 Infoblox UI。
流程
运行以下命令,使用 Infoblox 凭证创建
secret
对象:oc -n external-dns-operator create secret generic infoblox-credentials --from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_USERNAME=<infoblox_username> --from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_PASSWORD=<infoblox_password>
$ oc -n external-dns-operator create secret generic infoblox-credentials --from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_USERNAME=<infoblox_username> --from-literal=EXTERNAL_DNS_INFOBLOX_WAPI_PASSWORD=<infoblox_password>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 运行以下命令,获取路由对象以检查集群域:
oc get routes --all-namespaces | grep console
$ oc get routes --all-namespaces | grep console
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 输出示例
openshift-console console console-openshift-console.apps.test.example.com console https reencrypt/Redirect None openshift-console downloads downloads-openshift-console.apps.test.example.com downloads http edge/Redirect None
openshift-console console console-openshift-console.apps.test.example.com console https reencrypt/Redirect None openshift-console downloads downloads-openshift-console.apps.test.example.com downloads http edge/Redirect None
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 创建一个
ExternalDNS
资源 YAML 文件,如 sample-infoblox.yaml,如下所示:Copy to Clipboard Copied! Toggle word wrap Toggle overflow 运行以下命令,在 Infoblox 上创建
ExternalDNS
资源:oc create -f sample-infoblox.yaml
$ oc create -f sample-infoblox.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 通过 Infoblox UI,检查为
console
路由创建的 DNS 记录:-
点 Data Management
DNS Zones。 - 选择区域名称。
-
点 Data Management