Kubernetes is an open-source container-orchestration system for automating deployment, scaling, and management of containerized applications. It has a large, rapidly growing ecosystem and the services, support, and tools are widely available. Kubernetes provides you with a framework to run distributed systems resiliently.
With the E2E Myaccount portal, You can quickly launch the Kubernetes master, worker nodes and get started working with your Kubernetes cluster in a minute.
How to Launch Kubernetes Service from Myaccount portal¶
Login into MyAccount¶
Create Kubernetes Service¶
On the top right section of the kubernetes service dashboard, You need to click on the “Create kubernetes” Button which will prompt you to the cluster page where you will be selecting the configuration and entering the details of your database.
Kubernetes Configuration and Setting¶
After click on Create Kubernetes, you have to click on Add Plan and You need to select the required configuration and setting for your kubernetes which are mentioned below.
Add kubernetes plan
Use VPC - In the List Type, you can select the VPC.
After filling all the details successfully, click on the Create Cluster button. It will take a few minutes to set up the scale group and you will take to the ‘Kubernetes Service’ page.
You will be able to check all the basic details of your kubernetes. You can Check the kubernetes name and kubernetes version details.
How To Download Kubeconfig.yaml File¶
After Downloading the Kube config
Please make sure kubectl is installed on your system
To install kubectl follow this doc: https://kubernetes.io/docs/tasks/tools/
kubectl --kubeconfig="download_file_name" proxy
Open the below URL in the browser
Copy the kubeconfig token in below option
And paste Kubeconfig Token to access Kubernetes dashboard
Node Pool Details¶
The Node Pool Details tab provides information about the Worker nodes. Users also Add and delete the worker node.
Resize Worker Node Pool¶
Users can also resize the worker nodes pool. Click on resize button.
Click on Plus button.
Click on resize pool button to update the worker node pool.
To check PVC run below command
Create Persistent Volume :- On the top right section of the manage persistent volume, You need to click on the “Add persistent volume” Button which will prompt you to the Add persistent volume page where you will click the create button.
Delete Persistent Volume:- To delete your persistent volume, click on delete option. Please note that once you have deleted your persistent volume you will not be able to recover your data.
LB IP Pool¶
You will be able to get the private information on the network tab.
Public IPv4 Address¶
A public IP address is an IPv4 address that’s reachable from the Internet. You can use public addresses for communication between your Kubernetes and the Internet. You can reserve the default assigned public IP for your account until you do not release it. If you want to allocate public IP addresses for your Kubernets, this can be used by using type load-balancer.
Private IPv4 Address¶
A private IPv4 address is an IP address that’s not reachable over the Internet. You can use private IPv4 addresses for communication between instances in the same VPC. When you launch an E2E Kubernetes, we allocate a private IPv4 address for your Kubernetes.
We have a native integration of the bare-metal Load Balancer MetalLB in our Kubernetes Appliance.
MetalLB hooks into our Kubernetes cluster and provides a network load-balancer implementation. It has two features that work together to provide this service: address allocation, and external announcement.
With Metallb you can expose the service on a load-balanced IP (External/Service IP) which will float across the Kubernetes nodes in case some node fails and this is where it differs from a simple External IP assignment.
As long as you ensure that the network traffic is routed to one of the Kubernetes nodes on this load-balanced IP, your service should be accessible from the outside.
We have to provide pools of IP addresses that MetalLB will use for allocation and for that part, we allow users the option of Service IP.
With Service IP, customers can reserve IPs which will be used to configure pools of IP addresses automatically in the Kubernetes cluster. MetalLB will take care of assigning and unassigning individual addresses as services come and go, but it will only ever hand out IPs that are part of its configured pools.
Monitoring of server health is a free service that provides insights into resource usage across your infrastructure. There are several different display metrics to help you track the operational health of your infrastructure. Select the worker node for which you want to check the metrics.
Click on the ‘Monitoring’ tab to check the CPU Performance, Disk Read/ Write operation, and Network Traffic Statistics.
Setup Monitoring Alert for Worker Node¶
Go to the ‘Alerts’ tab and click on Create Alert button and if you want configure email then you have to click on Configure Email button.
You can perform the following actions available for the respective cluster
Add Node Pool¶
You can add your Kubernetes current plan to a higher plan, for this, you need to click on the Add node pool button.
Click on the Delete button to delete your node. Termination of a node will delete all the data on it.
Create a Secret For Container Registery¶
A Secret is an object that contains a small amount of sensitive data such as a password, a token, or a key. Such information might otherwise be put in a Pod specification or in a container image. Using a Secret means that you don’t need to include confidential data in your application code.
kubectl create secret docker-registry name-secrets \ --docker-username=username \ --docker-password=pass1234 \ --docker-server=registry.e2enetworks.net
Create a Pod that uses container registry Secret¶
cat > private-reg-pod-example.yaml << EOF apiVersion: v1 kind: Pod metadata: name: node-hello spec: containers: - name: node-hello-container image: registry.e2enetworks.net/vipin-repo/node-hello@sha256:bd333665069e66b11dbb76444ac114a1e0a65ace459684a5616c0429aa4bf519 imagePullSecrets: - name: name-secrets EOF