Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

pipe google-gke-kubectl-run; support kustomize (apply -k) Edited


I'm trying to use the google gke kubectl pipe to deploy to a kubernetes cluster ( How can I use pipe to apply using a kustomization directory, like:

kubectl apply -k kustomize/stage


If i set KUBECTL_COMMAND to apply, then the pipeline fails as the RESOURCE_PATH variable is mandatory.. Setting this to a dummy variable will result in a corrupt command:

kubectl apply -f dummy.yml -k kustomize/stage

which fails as kubectl apply doesn't accept both -f and -k flags to be set





1 answer

1 accepted

0 votes
Answer accepted

@abraham_bah thanks for reporting!

We will consider this as possible update for the next releases of kubectl pipe.

Cheers, Galyna.

Thanks :)

For now, I've managed to work around the problem by putting the arguments in KUBECTL_COMMAND and the actual command in KUBECTL_ARGS:

KUBECTL_ARGS  =  'apply'

KUBECTL_COMMAND  = '-k=kustomize/stage'

@abraham_bah cool, smart solution :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you