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

deployment variables inside aws eks

Hi, i'v tried create configmap in aws eks using deployment variables , but it's working for me, does it possible?

file front_config.yaml

apiVersion: v1
kind: ConfigMap
metadata:
  name: frontend-testsubscriptions
  namespace : testsubscriptions
data:  # property-like keys; each key maps to a simple value
  VIRTUAL_HOST: "$VIRTUAL_HOST"

 

But after apply


            - 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: "apply" 
               
RESOURCE_PATH: "front_config.yaml" 
               
DEBUG: "true"   

i got 

image.png

But $VIRTUAL_HOST it is Deplyment variable - and it is should be as value 

1 answer

It is easy

            - envsubst < frontend.tpl.yaml > frontend.yaml
            - 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: "apply" 
               
RESOURCE_PATH: "front.yaml" 
               
DEBUG: "true"    

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Service Management

Security Advisory for Jira Service Management

On October 20, 2021, Atlassian published a security advisory for Jira Service Management. The full advisory is available at this link.  We've seen a number of questions already asking for...

72 views 0 1
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