Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

235
Views
Interpolation on K8s deployment

How do I pass in a variable inside another string value in k8s deployments.

enter image description here

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Variable references are possible using the $(ENV_VAR) format. So, in this example, it would be:

containers:
 - env: 
     - name: DATA_SOURCE_PASS
       valueFrom:
         secretKeyRef:
           name: app-secrets
           key: DB_DOCKER_USER_PASSWORD
     - name: PG_EXPORTER_URL
       value: postgres://postgres:$(DATA_SOURCE_PASS)@localhost:5432/postgres
  • This question has already been answered here, which is where I got this answer from.
  • Kubernetes documentation on variable references, also linked from article above.
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!