Managing Kubernetes CronJobs with Postman via ArgoCD and Kustomize

0
38
Asked By CuriousCactus42 On

Hey everyone! I'm looking for guidance on how to manage some Kubernetes CronJobs at work. We use ArgoCD and Kustomize for our Kubernetes management, and we have a bunch of CronJobs running. Management wants a way to control these jobs through Postman, specifically to see if they're active or suspended, adjust their schedules, or pause/resume them. The challenge is that since all our manifests are managed via ArgoCD, any direct changes made with kubectl would get reverted. I'm considering creating a small API that Postman could call to make changes to our kustomization files via a GitHub client. Has anyone encountered a similar situation or found a better way to handle this?

6 Answers

Answered By GitGuru88 On

Creating a service to push changes to Git sounds like a solid plan. It not only allows you to manage the changes but also gives you an audit trail since you can log who made each request. Sure, setting up Git apps and credentials can be tricky, but it’s similar to what you did for ArgoCD, so it should be manageable.

Answered By RealisticRaccoon On

I’m a bit puzzled why they’d want to manage Kubernetes jobs through Postman. I think it would be better to clarify the actual goals with management. There might be more effective solutions that can meet their needs without relying on Postman.

Answered By CodexCrafter73 On

Another option could be setting up Tekton pipelines. You could have Postman trigger an event listener that sends a JSON payload, and then your pipeline checks out the repo, makes the necessary changes to the YAMLs, and pushes them back to the repo. It could streamline your process pretty well!

Answered By TechSavvyTurtle On

Have you thought about using ArgoWorkflows? It might be a better fit since it allows you to manage jobs and parameters without needing to commit changes directly. You could also consider parameterized templates for more flexibility.

Answered By ObservantOtter On

Before diving into building APIs, have you considered using a Kubernetes dashboard like the K8s dashboard or Headlamp? It could simplify CronJob management for the team. However, you'd need to ensure proper authentication and permissions are set up. But given that you're fully committed to Argo, be cautious about potential conflicts with direct edits versus Argo's management.

Answered By DirectorOfChange On

It’s crucial to maintain a single source of truth with these systems. If management is okay with using Postman, why not get them accustomed to using the Git UI? If that’s not feasible, then building an API to help them make the necessary changes could work. Just be wary of directly modifying fields in Argo; it might lead to complications.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.