Deckhouse Platform on VMware vSphere
Access cluster Kubernetes API
Deckhouse have just finished installation process of your cluster. Now you can connect to master via ssh. To do, so you need to get master IP either from dhctl logs or from cloud provider web interface/cli tool.
You can run kubectl on master node from the root
user. This is not secure way and we recommend to configure external access to Kubernetes API later.
Access cluster using NGINX Ingress
IngressNginxController was created during the installation process of the cluster. The only thing left is to configure access to web interfaces of components that are already installed in the cluster (Grafana, Prometheus, Dashboard, etc.).
Point a DNS domain you specified in the “Cluster Installation” step to Deckhouse web interfaces in one of the following ways:
- If you have the DNS server and you can add a DNS records:
- If your cluster DNS name template is a wildcard
DNS (e.g.,
%s.kube.my
), then add a corresponding wildcard A record containing the IP of the master node, you've discovered previously. - If your cluster DNS name template is NOT a wildcard DNS (e.g.,
%s-kube.company.my
), then add A or CNAME records containing the IP of the master node, you've discovered previously, for the following Deckhouse service DNS names:dashboard.example.com deckhouse.example.com dex.example.com grafana.example.com kubeconfig.example.com status.example.com upmeter.example.com
- If your cluster DNS name template is a wildcard
DNS (e.g.,
If you don't have a DNS server, then on the computer from which you need access to Deckhouse services add static records to the file
/etc/hosts
(for Linux, or%SystemRoot%\system32\drivers\etc\hosts
for Windows).To add records to the
/etc/hosts
file locally, follow these steps:Export the
BALANCER_IP
variable by specifying the IP address of the master node you've got:Add DNS records for the Deckhouse services:
sudo -E bash -c "cat <<EOF >> /etc/hosts $BALANCER_IP dashboard.example.com $BALANCER_IP deckhouse.example.com $BALANCER_IP dex.example.com $BALANCER_IP grafana.example.com $BALANCER_IP kubeconfig.example.com $BALANCER_IP status.example.com $BALANCER_IP upmeter.example.com EOF "
sudo -E bash -c "cat <<EOF >> /etc/hosts $BALANCER_IP dashboard.example.com $BALANCER_IP deckhouse.example.com $BALANCER_IP dex.example.com $BALANCER_IP grafana.example.com $BALANCER_IP kubeconfig.example.com $BALANCER_IP status.example.com $BALANCER_IP upmeter.example.com EOF "