Manage Kubernetes Cluster
Create Kubernetes Cluster
Open the Kubernetes page from the Kubernetes >> Autopilot menu. Click Create button on the top right of the Kubernetes page to open Create Kubernetes page. You can create a cluster in a few steps:
- Select Kubernetes distro and version
- Select available plan
- Set cluster name
- Set tags to locate clusters quickly (optional)
- Option to enable public endpoints.
Click Create button to start creating a cluster.
The new cluster will be displayed in the list with Starting status. Your cluster is ready to use when the status is changed to Running. You can click on the cluster name to see the details.
Update cluster
To update cluster, perform these actions:
- Go to Kubernetes page by clicking Kubernetes >> Autopilot menu
- Go to details page by clicking cluster name
- Update data (for example, upgrade the cluster version)
- Click Update button
Setup Ingress Controller in Kubernetes Cluster
In order to make Ingress controller works properly, you need to reserved an external IP. The external IP will works as endpoint from external request before the http request reach the pod with in in the cluster.
To reserve an external IP in Awanio Platform, go to Network menu then click Reserved IPs. Click “Create” button on the right top corner. In the new Reserved IP form page, you can use all or kubernetes option to get the IP.
Once you get the IP, use following command to install Nginx Ingress Controller via helm. In this example the external IP is 180.222.219.122, use your own IP value to make it works:
helm --kubeconfig my-cluster-kubeconfig.yaml upgrade \
--install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace \
--set controller.service.loadBalancerIP=180.222.219.122