You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
The use case is to run the pipeline, use kubectl kustomize command to create a K8s deployment file and push the changes back to repo.
I looked into the different existing pipeline like kubectl-run and aws-eks-kubectl-run but those required the k8s cluster should be defined/running and not working just to create a deployment file using kustomize.
May be I don't know how to use these existing pipeline for implementing my use case, if so please guide us or please suggest some alternative solution for the use case
@Yogesh . Thanks for your question.
There is no pipe to cover your case. You can try something like this:
Create and use your own docker image with kubectl command
Then run in the pipelines configuration yml what commands you need:
image:
name: <your docker image with kubectl>
test: &test
step:
name: test
script:
- kubectl apply ...<what you need>
Alternative way is to use some default image and install kubectl in pipeline:
image:
name: atlassian/default-image:3
test: &test
step:
name: test
script:
- <install kubectl via guide above>
- kubectl apply ...<what you need>
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.