Hi,

In jenkins-kubernetes-plugin, is there any syntax that support using *Secrets 
as environment variables* in *containerTemplate*?

I just saw something from here.
https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-environment-variables

So some syntax like "*secretKeyRef*" could be indicated in 
*containerTemplate?*

apiVersion: v1kind: Podmetadata:
  name: secret-env-podspec:
  containers:
    - name: mycontainer
      image: redis
      env:
        - name: SECRET_USERNAME
          valueFrom:
            secretKeyRef:
              name: mysecret
              key: username
        - name: SECRET_PASSWORD
          valueFrom:
            secretKeyRef:
              name: mysecret
              key: password
  restartPolicy: Never

Thanks.

Best regards,
Hong

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/a4be1cee-cfd4-48d8-a97e-fa5c30d95ce6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to