Hey guys! I am having an issue with deploying my ...
# kubernetes
s
Hey guys! I am having an issue with deploying my first stack in kubernetes via the operator. I am using Python as runtime and also the official
pulumi/pulumi:3.143.0-nonroot
docker image. Inside my repository i reference fluxSource and inside it -> Pulumi.yaml contains:
Copy code
name: msk
runtime:
  name: python
config:
  aws:region: ap-northeast-1
  msk:environment: dev
I know i can build my own docker image with the packages but i was wondering what is the best practice here? Not sure why the error refers to
Copy code
ModuleNotFoundError: No module named 'pulumi'
and
Copy code
It looks like the Pulumi SDK has not been installed. Have you run pip install?\n\nIf you are running in a virtualenv, you must run pip install -r requirements.txt from inside the virtualenv.
I tried setting
runtime.options.virtualenv: venv
but no luck. Locally everything works fine. Any ideas? Thanks
I have fixed it via creating a requirements.txt file. Just wasn't sure that would work.
Copy code
runtime:
  name: python
  options:
    toolchain: pip
    virtualenv: venv
h
Copy code
runtime:
  name: python
this isn’t right, you want
Copy code
runtime: python
s
@hallowed-photographer-31251 why
Copy code
runtime: python
at least in the documentation it's like that:
Copy code
runtime:
  name: python
  options:
    toolchain: pip
    virtualenv: venv
h
ah interesting i wasn’t even aware we supported that form! maybe still give that syntax a try just in case
s
in fact it works perfectly like that. never seen the other approach. Thanks anyway^^
h
hm this could either be a bug or maybe on outdated dependency on our part…