-
Notifications
You must be signed in to change notification settings - Fork 16
Expose Cluster
Sometimes you want to use a remote server instead of a laptop to host VelaD cluster. You need to expose your cluster to the cluster so that you can access it from your computer. This document show you how to access a remote VelaD cluster.
Note: If you are using a VM provided by cloud vendor (such as ECS in AliYun, EC2 in aws) , remember to expose 6443 port from your security group.
The simplest way to expose your cluster when you set-up a single-node cluster.
Just add --bind-ip
argument when velad install
like:
velad install --bind-ip=<IP_OF_SERVER>
VelaD will generate kubeconfig which can access this cluster for you. Then print the generated kubeconfig for remote access.
velad kubeconfig --external
This will print a kubeconfig path. Copy that file to your local computer (or other server). Set it to KUBECONFIG
var as
other kubeconfig. Then you can access this VelaD cluster from remote.
To summary:
velad install --bind-ip
velad kubeconfig --external
- Copy external kubeconfig file to other computer.
- export
KUBECONFIG
variable.
Please follow this high availability document to expose multi-node cluster.