Because the KUBERNETES_XXX environment variables are automatically generated when the pod is started, you can append these variables to a file in the startup shell, and then read this file in the user's .bashrc and append it to the environment variables.