WORKLOAD AUTOMATION COMMUNITY
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new

Automate Container-Orchestration with the new Kubernetes plugin in Workload Automation

8/2/2023

0 Comments

 
Picture

Industries are moving towards cloud native and microservice architectures, which scale and distribute apps using containers. However, containers have their own challenges and make infrastructure maintenance more complex, particularly in large dynamic environments (if you are unfamiliar with containers and Kubernetes, don't worry catch up with our latest post). Containers and Workload Automation 101).  
Picture
Do you use containers—microservices packaged with their dependencies and configurations—to build your applications? Are you also seeking a way to deploy and manage these containers effectively?
What if you need to orchestrate Kubernetes jobs in a logical order, with jobs depending on other jobs, and you're having trouble finding a solution to this problem? Should the operations team have Kubernetes experience?
No need to worry; Workload Automation's "Kubernetes plugin" provides the whole solution.
Design your workload to take maximum advantage of the elastic scaling offered out-of-the-box by Kubernetes' new grid computing, which is now available in Workload Automation to submit, monitor, retrieve the logs of the k8's job, and clean the resources used in the cluster to run a job, as shown by the following image:
Picture
​To Begin with:
​
Open the Workload Designer after logging into the Dynamic Workload Console. Select "Kubernetes" as the job type when creating a new job in the Cloud section.
Picture
​Establishing connection to the Kubernetes cluster: 
Select the "Connection" tab in the job definition interface and provide the connection details to connect to your Kubernetes cluster.
Picture
For connecting to the cluster, the plugin provides two options:
  1. Default cluster configuration: Choosing this option will allow you to connect to the Kubernetes cluster if the agent is set up or deployed there as a service. The "Default cluster configuration" option enables the user to pre-configure the agent with cluster information.
  
  1. Cluster Config file information: To connect to a cluster of K8s located remotely, select this option. In this scenario, the user must provide the agent with the cluster information in JSON or YAML format, along with the location to the configuration file.
  
When the Random deployment over cluster option is enabled, the user can randomly deploy the job to any of the available contexts in the configuration file, with each context having an equal probability of success. This will make it easier for the user to avoid constantly changing the current context in the configuration file and enable various contexts to equally distribute the load.
 
Before even saving the job, you have the option to use the "Test Connection" button to ensure that the connection is successful.
Picture
​You might see an option to specify the "Namespace" in the k8 cluster where the job must be submitted in addition to connecting to the cluster.
Surprisingly, this field is not mandatory. Therefore, if the user doesn't enter a value for "Namespace", the plugin will try and fetch the namespace that has been configured in the following order:
In case you selected the default cluster configuration:
1.$KUBECONFIG
  1. $HOME/.kube/config
3./var/run/secrets/kubernetes.io/serviceaccount/namespace
  1. default namespace
In case you selected the cluster config file information:
  1. Namespace defined in the Config file specified in the path field on the Dynamic Workload Console
  2. default namespace
 
Therefore, if the user does not provide any value in the UI, the plugin appearance for the already configured namespace will be used. The plugin submits the k8's work to the "Default" namespace if the namespace has not been defined before.
By using this method, the complexity brought on by the K8s cluster's security configuration is concealed. From the standpoint of Workload Automation, it only requires using Workload Automation Security to grant access to use this job plugin and to monitor jobs status, if the security configuration for the namespace granted to be used is correctly performed.

Run Kubernetes Job:
The Kubernetes plugin in Workload Automation can now be used to submit a K8 job to the cluster and see its progress without having to move to the cluster environment or be familiar with all the Kubernetes commands once the connection to the cluster has been established.
Your job is now hassle-free because to Workload Automation. Now, you only need a few actions to submit a job to the k8 cluster.
Picture
Picture
​The plugin provides two simple ways to post a job:
  1. If the job content for the K8 is already saved in a file on the agent. Then the job content path on the agent only must be specified at that point. Json or YAML are the two possible file types.
 
Dynamic Parameters is an added option that enables variable substitution, where we can specify variables in the job content and provide their value as required.
 
  1. If you have job content but do not want to save it to a file on the agent, just select the "Job file content" option and paste the content into the UI's text area.
 
In any case, after the connection has been established, plugin examines the job content and sends the job to the k8 cluster.
You have now successfully sent a job through Workload Automation to the Kubernetes cluster.


Track/Monitor the Kubernetes Job:

You can also easily monitor the submitted k8’s job in Workload Automation through navigating to “Monitor Workload” page.
Picture
Select the job and click on Job log option to view the logs of the Kubernetes job.
You can view that the Kubernetes plugin has been submitted the job to the cluster, monitored the job and cleans up the environment (Deleted the job and all the pods associated with the job). 
Picture
​Extra Information:
​
You can see that the plug-in provides a few "Extra properties" that you can utilize as variables for the next job submission.
Picture
Picture
Picture
​Thus, Kubernetes plugin in Workload Automation is a best fit for those who are looking for complete automation of the jobs connecting with remote cluster or the agent which is deployed on the cluster.
Are you curious to try out the Kubernetes plugin?

Author
​Mayank Gupta – Technical Lead for HCL Software

In the Workload Automation Bangalore team, Mayank serves as the technical lead. He completed both his undergraduate and graduate degrees at the National Institute of Technology, Warangal. He is self-driven and passionate about learning, developing, and using cutting-edge technologies. Java, Docker, Spring, MongoDB, and REST API are all skills he is adept in. He enjoys playing video games and watching TV shows in his free time.
Picture
​Chirag Govinda Swamy – Senior Software Engineer at HCL

Working for the Workload Automation Bangalore team as a backend developer. He completed his studies at PES University and spent time as a software engineer at Capgemini before working for HCL. He is always researching new technology and coming up with innovative solutions. worked with platforms including Java, Rest API, Spring, and MongoDB. He enjoys viewing films and performing sports in his free time.
Picture
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    Archives

    March 2025
    February 2025
    January 2025
    December 2024
    November 2024
    October 2024
    September 2024
    August 2024
    July 2024
    June 2024
    May 2024
    April 2024
    March 2024
    February 2024
    January 2024
    October 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    June 2020
    May 2020
    April 2020
    March 2020
    January 2020
    December 2019
    November 2019
    October 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    June 2017
    May 2017

    Categories

    All
    Analytics
    Azure
    Business Applications
    Cloud
    Data Storage
    DevOps
    Monitoring & Reporting

    RSS Feed

www.hcltechsw.com
About HCL Software 
HCL Software is a division of HCL Technologies (HCL) that operates its primary software business. It develops, markets, sells, and supports over 20 product families in the areas of DevSecOps, Automation, Digital Solutions, Data Management, Marketing and Commerce, and Mainframes. HCL Software has offices and labs around the world to serve thousands of customers. Its mission is to drive ultimate customer success with their IT investments through relentless innovation of its products. For more information, To know more  please visit www.hcltechsw.com.  Copyright © 2024 HCL Technologies Limited
  • Home
  • Blogs
  • Forum
  • Resources
  • Events
  • About
  • Contact
  • What's new