This message was deleted.
# kubernetes
s
This message was deleted.
d
KUBECONFIG
should be set to the path of the config, ie
KUBECONFIG=~/.kube/config
If your
.kube/config
is setup already, then pulumi will use that https://www.pulumi.com/registry/packages/kubernetes/installation-configuration/#setup
f
I knew what you mean. If we're running pulumi up in local environment, that's work. However, we deploy the codes by CI/CD pipeline (pulumi deployment feature), the initial contianer doesn't have ~/.kube/config there, you've pass it into container in some way. That's what block me a long time.
KUBECONFIG
support path and also content as the docs stated:
d
hmm, from the
--help
, looks like you can set a value through stdin. so this might work for you?
Copy code
cat my/kubeconfig | config set --secret kubernetes:kubeconfig
👍 1
1
💯 1
f
Brilliant! It works. Thank you for saving my time.
Configuration values can be accessed when a stack is being deployed and used to configure behavior.
If a value is not present on the command line, pulumi will prompt for the value. Multi-line values
may be set by piping a file to standard in.
My bad, I'm not go through the instruction carefully. 😂