19.7. Création d'enregistrements DNS sur Infoblox
Vous pouvez créer des enregistrements DNS sur Infoblox à l'aide de l'opérateur DNS externe de Red Hat.
19.7.1. Création d'enregistrements DNS sur une zone DNS publique sur Infoblox Copier lienLien copié sur presse-papiers!
Vous pouvez créer des enregistrements DNS sur une zone DNS publique sur Infoblox en utilisant l'opérateur DNS externe de Red Hat.
Conditions préalables
-
Vous avez accès au CLI OpenShift (
oc
). - Vous avez accès à l'interface utilisateur d'Infoblox.
Procédure
Créez un objet
secret
avec les informations d'identification Infoblox en exécutant la commande suivante :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 Obtenez les objets routes pour vérifier votre domaine de cluster en exécutant la commande suivante :
oc get routes --all-namespaces | grep console
$ oc get routes --all-namespaces | grep console
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example Output
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 Créez un fichier YAML de ressource
ExternalDNS
, par exemple, sample-infoblox.yaml, comme suit :Copy to Clipboard Copied! Toggle word wrap Toggle overflow Créez une ressource
ExternalDNS
sur Infoblox en exécutant la commande suivante :oc create -f sample-infoblox.yaml
$ oc create -f sample-infoblox.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Depuis l'interface Infoblox, vérifiez les enregistrements DNS créés pour les itinéraires
console
:-
Cliquez sur Data Management
DNS Zones. - Sélectionnez le nom de la zone.
-
Cliquez sur Data Management