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.5.4. デフォルト DNS の表示
すべての新規 OpenShift Container Platform インストールには、default
という名前の dns.operator
があります。
手順
oc describe
コマンドを使用してデフォルトのdns
を表示します。Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc describe dns.operator/default
$ oc describe dns.operator/default
出力例
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Name: default Namespace: Labels: <none> Annotations: <none> API Version: operator.openshift.io/v1 Kind: DNS ... Status: Cluster Domain: cluster.local Cluster IP: 172.30.0.10 ...
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 ...
クラスターのサービス CIDR を見つけるには、
oc get
コマンドを使用します。Copy to Clipboard Copied! Toggle word wrap Toggle overflow oc get networks.config/cluster -o jsonpath='{$.status.serviceNetwork}'
$ oc get networks.config/cluster -o jsonpath='{$.status.serviceNetwork}'
出力例
[172.30.0.0/16]
[172.30.0.0/16]