Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

How to set dynamic values with Kubernetes yaml file

$
0
0

For example, a deployment yaml file:

apiVersion: extensions/v1beta1kind: Deploymentmetadata:  name: guestbookspec:  replicas: 2  template:    metadata:      labels:        app: guestbook      spec:        container:          - name: guestbook            image: {{Here want to read value from config file outside}}

There is a ConfigMap feature with Kubernetes, but that's also write the key/value to the yaml file. Is there a way to set the key to environment variables?


Viewing all articles
Browse latest Browse all 5049

Trending Articles