Hi, just got a bare-metal cluster up with Rancher'...
# python
a
Hi, just got a bare-metal cluster up with Rancher's RKE, and I'm now following the Python intro @ https://www.pulumi.com/docs/intro/languages/python/, but Pulumi fails to connect to the cluster even though
kubectl
works:
g
Can you share the code that you’re trying to run? I can’t tell what’s wrong from the logs
a
I think the code is autogenerated by the intro:
Copy code
import pulumi
from pulumi_kubernetes.apps.v1 import Deployment

app_labels = { "app": "nginx" }

deployment = Deployment(
    "nginx",
    spec={
        "selector": { "match_labels": app_labels },
        "replicas": 1,
        "template": {
            "metadata": { "labels": app_labels },
            "spec": { "containers": [{ "name": "nginx", "image": "nginx" }] }
        }
    })

pulumi.export("name", deployment.metadata["name"])
g
Hmm, the code looks fine, so it must be something related to the installation. Maybe @microscopic-florist-22719 or @white-balloon-205 would know more?
w
@alert-monitor-28534 could you open an issue in pulumi/Pulumi with the details above? This certainly shouldn’t happen.
a
Sure, I'll do that next week if I still face the same problems.
I was finally creating the ticket and found out that if I unset my proxies Pulumi works. So ended up creating a ticket for that case: https://github.com/pulumi/pulumi/issues/3274