dazzling-machine-85665
01/16/2024, 11:35 AMapiVersion: apps/v1
kind: Deployment
metadata:
name: integration-agent
spec:
selector:
matchLabels:
app: integration-agent
strategy:
type: Recreate # Because we are exposing ports
template:
metadata:
labels:
app: integration-agent
spec:
containers:
- name: integration-agent
image: {{ integration_agent_image }}
resources:
limits:
env:
- name: KUBE_HOST_IP
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: TEST_VAR
value: test1
envFrom:
- secretRef:
name: integration-agent-env-secret
Vars that are loaded using the envFrom using a secret generated with kustomizer secretgenerator are visible both when I exec and ssh into it but vars loaded directly with env are only visible when I exec into the container. Why is this the case?