0

I want to declare for my pod environment variables that are based on other environment variables like here but for kubernetes on windows.

So with default kubernetes (on linux) it is possible like that:

- name: MY_NAME
  value: "$(POD_NAME)"

But this doesn't work if you deploy your pod on kubernetes for windows.

Is there any possibility to use the windows environment variables inside the k8s deployment?

feitzi
  • 98
  • 7

1 Answers1

0

It is not the proper answer to my question, but it solved the intended problem:

        - name: CLUSTER_IP
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
feitzi
  • 98
  • 7