How to Apply multiple files using Kubectl

Table of Contents

  1. How can we create deployment service on individual level?
  2. How can we edit our application?
  3. How can we update our application?
  4. How we delete the deployment of app?
  5. Video Tutorial

There could be multiple application which required multiple resources to be created such as:

  1. Deployment
  2. Service

1. How can we create deployment service on individual level?

By using command cube CTL we can create deployment and service at the same time so here we are using command cube CTL along with the link to deployment file which is containing the Ingenix app.

Figure-1

Here both the deployment and service are created.

2. How can we edit our application?

If we want to perform a bulk operation using the cube CTL like cube CTL edit we can use the command cube CTL edit deployment. /my nginx it will open the deployment file and in the deployment file we can simply edit the configuration of the file so we don’t need to open them separately or the application file separately they can both be configured at the same place.

Figure-2

3. How can we update our application?

If there are some disruptive updates in our application and our application is not able to run then we can update the resource fields that cannot be updated once initialized and this can be done by using the cube CTL tool or if we want we can just make a recursive change immediately we use command cube CTL replace it will replace application which we downloaded.

Figure-3

4. How we delete the deployment of app?

If we want to extract the resource names from configuration files in order to perform other operation of which in particular could be to delete the same resources which we created we can use the command cube CTL delete. This command delete the application which we just downloaded yet. Using this command we can delete both deployment and service and both the along with that the application at the same time.

The cube CTL is an important tool in the kubernetes cluster and we can use this tool for doing bulk operation like editing or forcibly updates the disruptive application and replace them with a newer application and also we can delete several services and application at the same time.

Video Tutorial

Leave a Reply

Your email address will not be published. Required fields are marked *