Table of Contents
- We need to create a deployment command
- We use the Cube CTL
1.We need to create a deployment command
here we have an instance already launched with the mini cube installed. What we will be doing is we will be deploying a container using the mini cube tool so first of all what we need to do is we need to create a deployment for and for that we use the cube CTL create deployment command
now we can check the status of the deployments using the cube CTL jet deployments command.
So as you can see the deployment is ready now if you want to check about the pods we can simply use the command cube CTL get pods so as you can see the hello node has been running for the past 32 seconds and if we want to check the status of the events then we can also use the command cube CTL get events.
- Now these are the events that have happened until now in the sequence
- Now what we need to do is we need to expose the poor to the public internet using the cube CTL expose command so what we are doing right here is we are using the cube CTL expose command to expose this deployment that we had done right now and it will be exposed to port number 80 80 so we will use this command so the service hello node has been exposed now if again use the command cube CTLget services.
Now here we have two services running one is the Kubernetes master cluster and the other one is the hello node which is a load balancer as you can see here which we created right now and it will be an allocated and external IP on which we can access that load balancer.
- Now, what load balancer does it that load balancer type makes the service accessible through the mini cube service command so to make the load balancer accessible to the external IP what we need to do is we need to use this mini cube service hello node command now as you can see the mini what mini cube is doing is that it is opening the Kubernetes service that is default hello node in the default browser now if you want to check the list the currently supported add-ons with the mini cube tool we can simply use the command mini cube add-ons list.
- now these are the additional features offered by the mini cube which we can active enable or disable according to one needs so let us say if we want to enable the hipster then we can use the command mini cube add-ons enable hipster and the hipster service will be enabled now if you want to check the status of all the services running in the pods then we can use the command CTL get pod and here you can see that all the services running right now which contains the API server controllers and proxy schedulers storage provisional along with that of all the service which are running right now including hipsters and rest of the service now we as we have successfully launched a service and we have run a container in we have run a load balancer service in the container the mini cube tool if we want to delete that or clean up the resources in the cluster we can simply use the command Q CTL delete service hello node
- Now that does is it will delete the service which we just launched in the container so here you can see the hello node service has been deeply deleted and if we need to delete the deployment of the hello node which we have done we can simply use the command cube CTL delete deployment hello load so as you can see the deployment dot extensions hello node has been deleted so just to verify that the services are deleted we can simply again use the command cube CTL get services so as you can see the hello node service has been successfully deleted from our cluster.