https://pulumi.com logo
#general
Title
# general
h

handsome-cat-98152

11/28/2019, 9:46 AM
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

stocky-island-3676

11/28/2019, 10:10 AM
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

handsome-cat-98152

11/28/2019, 4:16 PM
Thank you Dominik!