Hello Peers, I've got a beginner question: How can...
# general
h
Hello Peers, I've got a beginner question: How can I create
Deplyments
,
Services
etc. in a specific
namespace
? Hope this isn't to basic of a question
s
There are multiple places where you can set it: 1. In the
metadata.namespace
of each object. 2. In the
kubernetes.Provider
which you then set in each resource’s
options
. 3. In the
kubectl
context
which you add to the
Provider
. Soon it’s working: https://github.com/pulumi/pulumi-kubernetes/pull/862 2.) is a best-practice as this makes sure you apply to the correct K8s context. Without it, Pulumi uses the
current-context
set in your
kubectl
.
h
Thank you Dominik!