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.4.2. デフォルト DNS の表示
すべての新規 OpenShift Container Platform インストールには、default
という名前の dns.operator
があります。これは、カスタマイズしたり、置き換えたり、または追加の dnses
で補足したりすることができません。
手順
oc describe
コマンドを使用してデフォルトのdns
を表示します。oc describe dns.operator/default
$ oc describe dns.operator/default Name: default Namespace: Labels: <none> Annotations: <none> API Version: operator.openshift.io/v1 Kind: DNS ... Status: Cluster Domain: cluster.local
1 Cluster IP: 172.30.0.10
2 ...
Copy to Clipboard Copied! クラスターのサービス CIDR を見つけるには、
oc get
コマンドを使用します。oc get networks.config/cluster -o jsonpath='{$.status.serviceNetwork}'
$ oc get networks.config/cluster -o jsonpath='{$.status.serviceNetwork}' [172.30.0.0/16]
Copy to Clipboard Copied!
注記
CoreDNS Corefile または Kubernetes プラグインの設定はサポートされていません。