Hey :slightly_smiling_face: Does the stack in K8s ...
# kubernetes
q
Hey 🙂 Does the stack in K8s should be in the same namespace as the pulumi-operator itself?
m
nope, with the v2 operator at least stack/workspace/program lives in the "user" namespace.
q
Great. How to handle
PULUMI_ACCESS_TOKEN
in that case? Since stack cannot reference to secrets in different namespace. Create same secrets in all namespaces?
m
yeah, you have to create secrets in the same namespace as the stack (same for git source, etc..). At the end it depends how you manage things, you could also throw all stacks into the same namespace.
q
Thanks for response. One namespace it is then. I'm need to enable developers to create stacks themselves, so I guess I'll need to create a CRD for that or prepare a stack YAML template with those tokens predefined 😄