You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the environment variables in the user-container, I found that there are many environment variables in the container that do not know where they came from. These variables start with the name of the current Revision, and each container contains all Revision-related environment variables under the same Knative Service.
Here is some environmental information:
kubectl get ksvc -n fc-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-default
NAME URL LATESTCREATED LATESTREADY READY REASON
test-python3 http://test-python3.fc-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-default.svc.cluster.local test-python3-nhmbc test-python3-bjs4b False RevisionFailed
root@knative:~# kubectl get pod -n fc-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-default
NAME READY STATUS RESTARTS AGE
test-python3-bjs4b-deployment-cd95444f4-49xwb 2/2 Running 0 10h
How did you determine that they are useless?
Those are injected by kubernetes.
I'm just guessing that they are useless, I mainly want to know what they are used for, and if deleting these environment variables in the user-container will have an effect.
When using the environment variables in the
user-container
, I found that there are many environment variables in the container that do not know where they came from. These variables start with the name of the currentRevision
, and each container contains all Revision-related environment variables under the sameKnative Service
.Here is some environmental information:
These useless and unknown environment variables all begin with the name of Revison and contain all Revison.
I want to know where they came from, does it have any effect? If it doesn't work, why do you need to increase so many environment variables?
The text was updated successfully, but these errors were encountered: