1

I've used kompose to transform a docker-compose file to a kubernetes yaml. However, I run into a problem for the environment parameters with a dot. Kompose translates this in the same name, but kubernetes isn't accepting a dot. Any suggestion? It looks to me as an array notation, but I can't figure out if and how this is supported for a kubernetes YAML.

The original part of the docker-compose file.

ui:
   image: reportportal/service-ui:3.2.4
   environment:
      - RP_SERVER.PORT=8080
      - RP_CONSUL.TAGS=urlprefix-/ui opts strip=/ui
      - RP_CONSUL.ADDRESS=registry:8500
   restart: always
0

1 Answer 1

2

Support for dots in env variable names was added just a few weeks ago and is only available in k8s v1.8.0-alpha.2 and newer: https://github.com/kubernetes/kubernetes/pull/48986

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.