https://pulumi.com logo
#python
Title
# python
a

alert-monitor-28534

09/18/2019, 5:20 AM
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

gorgeous-egg-16927

09/18/2019, 3:03 PM
Can you share the code that you’re trying to run? I can’t tell what’s wrong from the logs
a

alert-monitor-28534

09/19/2019, 6:52 AM
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

gorgeous-egg-16927

09/19/2019, 2:39 PM
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

white-balloon-205

09/19/2019, 3:33 PM
@alert-monitor-28534 could you open an issue in pulumi/Pulumi with the details above? This certainly shouldn’t happen.
a

alert-monitor-28534

09/20/2019, 2:32 PM
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
3 Views