0

I have created a pod using RHEL9 ubi9-init image. I added envFrom term in the K8s yaml file for the pod that imports environment variables from the K8s configmap. The running pod /proc/1/environ has reflected the configmap KVs. However, I have noticed that systemd is not forwarding these environment variables to the SSH server it spawned, while the SSH server is not honoring those variables in the SSH connections it created.

Basically, I have a bunch of environment variables defined in the configmap, and I would like them to be set in the SSH connections to the pods. Is there a way I could easily use?

1
  • Could we see the Dockerfile and the kubernetes resources? Commented Apr 19 at 9:47

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.