kubernetes liveness port from environment

10/1/2019

here there is my deployment

     ...
     envFrom:
     - configMapRef:
          name: myapp-cmap-l

     livenessProbe:
       httpGet:
         path: /
         port: ???
       initialDelaySeconds: 5
       periodSeconds: 5
     ...

myapp-cmap-l contains APP_PORT=5000.

How can I reference that value on readinessProbe? Tried ${APP_PORT} or $(APP_PORT)

Riccardo

-- Riccardo79
kubernetes

0 Answers