menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Devops News

>

Implementi...
source image

Dev

1d

read

225

img
dot

Image Credit: Dev

Implementing Kubernetes Jobs with NestJS and nest-commander: A Practical Guide (Ex. implementation with Ticketmaster)

  • The nest-commander package allows for crafting CLI applications with NestJS structure and flair.
  • The nestjs-job-commander repository demonstrates setting up a job processing system in Kubernetes using NestJS and nest-commander.
  • The repository includes apps, shared libraries, Kubernetes configuration files, Dockerfile, and environment variables configuration.
  • The CLI Enricher is built using NestJS and nest-commander, defining AppModule, main command, and subCommands.
  • The TicketMasterEventRefreshCommand within CLI Enricher fetches events from Ticket Master API and stores them.
  • Running the job outside Kubernetes involves using 'nest start' command with appropriate setup.
  • To run the job inside Kubernetes, steps include building a Docker image, setting environment variables, and creating Kubernetes config maps.
  • A cronjob.yaml file helps create a job inside Kubernetes, with scheduled execution of commands.
  • With NestJS Commander and Kubernetes, CLI applications can be efficiently built and deployed for job management.
  • By utilizing subCommands, Docker, and Kubernetes CronJobs, task automation and batch processing can be streamlined.

Read Full Article

like

13 Likes

For uninterrupted reading, download the app