k8sクラスタをインストールしたばかりですが、URLはすべてlocalhostを使用しており、ホスト名またはIPアドレスを使用するように変更します。このため、クラスタにはマスターノードからのみアクセスできます。この変更を行うための適切な場所を見つけることができません。どんな助けでも本当に感謝しています。ローカルホストの代わりにホスト名/ IPアドレスを使用するようにk8sクラスタを設定する
(kube-apiserver
の
--insecure-port
のデフォルト値である
8080
、)ポート番号に基づいて
OS: Redhat 7.1
Kubernetes version: 1.2
[[email protected] kubernetes]$ kubectl cluster-info
Kubernetes master is running at http://localhost:8080
Elasticsearch is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/elasticsearch-logging
Heapster is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/heapster
Kibana is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kibana-logging
KubeDNS is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubedash is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kubedash
kubernetes-dashboard is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
Grafana is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/monitoring-grafana
InfluxDB is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/monitoring-influxdb
どのクラスタ作成ガイドに従っていますか? –
[貢献/無能なスクリプト](https://github.com/kubernetes/contrib)。 Red Hat 7.1でkubernetes 1.2を実行しています。 – rks
インベントリファイルには何を入れましたか?あなたはマスターのマシン名/ IPアドレスを入れましたか、あるいは "localhost"を入れましたか? –