Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

kubectl create aws eks ConfigMap

Edited

Hi! 

 

How i can run command in bitbucket pipeline for aws eks cluster?

 

 kubectl create configmap $API_CONFIG_MAP --from-literal VIRTUAL_HOST_API=$VIRTUAL_HOST_API --from-literal APP_KEY=$APP_KEY -n  $API_NAMeSPACE

Where API_CONFIG_MAP , VIRTUAL_HOST_API , APP_KEY it is test deployment variables?

Or it is possible just kubectl apply?

I read this documentation

https://bitbucket.org/atlassian/aws-eks-kubectl-run/src/master/

 

 

It is not wokring for me

            - pipe: atlassian/aws-eks-kubectl-run:1.4.1

              variables:

                AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}

                AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}

                AWS_DEFAULT_REGION: ${AWS_REGION}

                CLUSTER_NAME: ${CLUSTER_NAME}

                KUBECTL_COMMAND: "create"

                KUBECTL_ARGS: configmap $API_CONFIG_MAP --from-literal VIRTUAL_HOST_API=$VIRTUAL_HOST_API --from-literal APP_KEY=$APP_KEY -n  $API_NAMESPACE

                DEBUG: "true"

 

1 answer

            - pipe: atlassian/aws-eks-kubectl-run:1.4.1

              variables:

                AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}

                AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}

                AWS_DEFAULT_REGION: ${AWS_REGION}

                CLUSTER_NAME: ${CLUSTER_NAME}

                KUBECTL_COMMAND:  ' create configmap $API_CONFIG_MAP --from-literal VIRTUAL_HOST_API=$VIRTUAL_HOST_API --from-literal APP_KEY=$APP_KEY -n  $API_NAMESPACE'

                DEBUG: "true"

Suggest an answer

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

⭐ Calling all Bitbucket and DevOps experts: Special showcase opportunity ⭐

Hi, Bitbucket community! Are you a DevOps practitioner (or know one in your network)? Do you have DevOps tips, tricks, or learnings you'd like to share with the community? If so, we'd love to hea...

1,527 views 4 8
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