Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

envsub file

# pipe into less
envsubst < config.txt | less

# pipe a deployment "deploy.yml" into kubectl apply
envsubst < deploy.yml | kubectl apply -f -
Source by skofgar.ch #
 
PREVIOUS NEXT
Tagged: #envsub #file
ADD COMMENT
Topic
Name
2+5 =