Hello,
Pump pod doesn’t get extraEnvs definitions defined in values.yaml file.
I tried the both syntax below:
pump:
enabled: true
replicaCount: 1
image:
repository: docker.tyk.io/tyk-pump/tyk-pump
tag: v1.4.0
pullPolicy: IfNotPresent
annotations: {}
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
extraEnvs:
- name: TYK_PMP_PUMPS_PROMETHEUS_TYPE
value: prometheus
- name: TYK_PMP_PUMPS_PROMETHEUS_META_ADDR
value: "prometheus-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090"
- name: TYK_PMP_PUMPS_PROMETHEUS_META_PATH
value: "/metrics"
mounts: []
also that one
pump:
enabled: true
replicaCount: 1
image:
repository: docker.tyk.io/tyk-pump/tyk-pump
tag: v1.4.0
pullPolicy: IfNotPresent
annotations: {}
resources: {}
nodeSelector: {}
tolerations: []
affinity: {}
extraEnvs:
- name: TYK_PMP_PUMPS_PROMETHEUS_TYPE
value: prometheus
- name: TYK_PMP_PUMPS_PROMETHEUS_META_ADDR
value: "prometheus-kube-prometheus-prometheus.monitoring.svc.cluster.local:9090"
- name: TYK_PMP_PUMPS_PROMETHEUS_META_PATH
value: "/metrics"
mounts: []
~$ k exec -n tyk pump-tyk-ce-tyk-headless-6799f5d555-k22rm -it -- bash
I have no name!@pump-tyk-ce-tyk-headless-6799f5d555-k22rm:/opt/tyk-pump$ env -0 | sort -z | tr '\0' '\n'
GATEWAY_SVC_TYK_CE_TYK_HEADLESS_PORT=tcp://10.100.89.172:80
GATEWAY_SVC_TYK_CE_TYK_HEADLESS_PORT_80_TCP=tcp://10.100.89.172:80
GATEWAY_SVC_TYK_CE_TYK_HEADLESS_PORT_80_TCP_ADDR=10.100.89.172
GATEWAY_SVC_TYK_CE_TYK_HEADLESS_PORT_80_TCP_PORT=80
GATEWAY_SVC_TYK_CE_TYK_HEADLESS_PORT_80_TCP_PROTO=tcp
GATEWAY_SVC_TYK_CE_TYK_HEADLESS_SERVICE_HOST=10.100.89.172
GATEWAY_SVC_TYK_CE_TYK_HEADLESS_SERVICE_PORT=80
HOME=/
HOSTNAME=pump-tyk-ce-tyk-headless-6799f5d555-k22rm
KUBERNETES_PORT=tcp://10.100.0.1:443
KUBERNETES_PORT_443_TCP=tcp://10.100.0.1:443
KUBERNETES_PORT_443_TCP_ADDR=10.100.0.1
KUBERNETES_PORT_443_TCP_PORT=443
KUBERNETES_PORT_443_TCP_PROTO=tcp
KUBERNETES_SERVICE_HOST=10.100.0.1
KUBERNETES_SERVICE_PORT=443
KUBERNETES_SERVICE_PORT_HTTPS=443
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/opt/tyk-pump
REDIGOCLUSTER_SHARDCOUNT=128
SHLVL=1
TERM=xterm
TYK_PMP_ANALYTICSSTORAGECONFIG_ADDRS=tyk-redis-master.tyk.svc.cluster.local:6379
TYK_PMP_ANALYTICSSTORAGECONFIG_ENABLECLUSTER=false
TYK_PMP_ANALYTICSSTORAGECONFIG_PASSWORD=superhiddenpw
TYK_PMP_ANALYTICSSTORAGECONFIG_REDISUSESSL=false
TYK_REDIS_MASTER_PORT=tcp://10.100.158.167:6379
TYK_REDIS_MASTER_PORT_6379_TCP=tcp://10.100.158.167:6379
TYK_REDIS_MASTER_PORT_6379_TCP_ADDR=10.100.158.167
TYK_REDIS_MASTER_PORT_6379_TCP_PORT=6379
TYK_REDIS_MASTER_PORT_6379_TCP_PROTO=tcp
TYK_REDIS_MASTER_SERVICE_HOST=10.100.158.167
TYK_REDIS_MASTER_SERVICE_PORT=6379
TYK_REDIS_MASTER_SERVICE_PORT_TCP_REDIS=6379
TYK_REDIS_REPLICAS_PORT=tcp://10.100.167.157:6379
TYK_REDIS_REPLICAS_PORT_6379_TCP=tcp://10.100.167.157:6379
TYK_REDIS_REPLICAS_PORT_6379_TCP_ADDR=10.100.167.157
TYK_REDIS_REPLICAS_PORT_6379_TCP_PORT=6379
TYK_REDIS_REPLICAS_PORT_6379_TCP_PROTO=tcp
TYK_REDIS_REPLICAS_SERVICE_HOST=10.100.167.157
TYK_REDIS_REPLICAS_SERVICE_PORT=6379
TYK_REDIS_REPLICAS_SERVICE_PORT_TCP_REDIS=6379
_=/usr/bin/env
I have no name!
Could you please advise what I am missing?
Thanks & Regards