https://pulumi.com logo
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
kubernetes
  • b

    brainy-nest-61978

    04/09/2020, 2:08 PM
    Hello. new to slack and pulumi. maybe wrong channel. Hoping someone can help. Running into issues getting started with csharp example on https://www.pulumi.com/docs/get-started/kubernetes/create-project/ its hanging forever after running pulumi up. have tried a few times. going to try with logging enabled now and see if I get some error info. From powershell I just see 'update failed' error: 4 errors occured: but the error info never shows powershell is just left spinning....
  • e

    eager-pillow-75917

    04/09/2020, 6:52 PM
    does pulumi has anything similar to terraform Data Source: helm_repository? https://www.terraform.io/docs/providers/helm/d/repository.html
    f
    g
    • 3
    • 3
  • c

    cool-egg-852

    04/09/2020, 7:23 PM
    Anyone know how to solve
    kubernetes:apps:StatefulSet    vault/vault    updating.    [1/3] Waiting for StatefulSet update to roll out (2/2 Pods ready)
    sticking around forever?
    • 1
    • 3
  • f

    fast-dinner-32080

    04/10/2020, 4:20 PM
    Will kubernetesx be supposed across the other languages soon? We are using .NET and hoping to use Kubernetesx instead of the verbose standard provider.
    g
    • 2
    • 3
  • h

    hundreds-portugal-17080

    04/12/2020, 4:17 PM
    Hello, Good morning. Is there a way to specify number of masters & workers? all I see is min/max/desired. How does pulumi internally figure out number of k8 masters?
  • h

    hundreds-portugal-17080

    04/12/2020, 5:27 PM
    Hello again, We already have set of ec2 key pairs in the aws env and have correponding .pem files in my laptop. I am trying to spin up with eks using node groups and provided "keyName" as one the ec2 pair names(String) for nodeGroup. I am not able to ssh into worker nodes using root or ec2-user. Command: ssh -I <pem file> ec2-user@<ip of the node> (root@ip of the node>. It says connect to host <host name>. Port 22: Operation time out. I am definitely missing something and unable to debug this. Please advise.
  • a

    ancient-megabyte-79588

    04/13/2020, 9:35 PM
    Hey guys... I'm looking mostly for kubernetes advice/help, but of course I'd prefer the advice to support using pulumi. I have a asp.net core web application that is trying to send SMTP but it is failing. I think that my app can't talk using SMTP out of the container/pod and so it can't connect to the external email provider (ProofPoint). Any ideas on Kubernetes configuration that will be executed in Pulumi? My google-foo is failing, so I'm hoping I can find some guidance here.
    b
    • 2
    • 10
  • g

    gorgeous-elephant-23271

    04/14/2020, 8:06 PM
    I'm trying to setup pulumi to pull an image from a private registry (Azure ACR), so I've created a secret called
    acr
    with
    kubectl
    and referenced it in my
    PodBuilder
    using pulumi/kuberentesx:
    imagePullSecrets: [{
            name: "acr",
        }]
    but then I'm still getting
    unauthorized: authentication required
    when k8s is trying to pull the image
    g
    • 2
    • 20
  • g

    gorgeous-elephant-23271

    04/14/2020, 8:06 PM
    Any ideas of where I might be going wrong?
  • g

    gorgeous-elephant-23271

    04/14/2020, 8:07 PM
    I've tested the creds locally and they work
  • e

    eager-pillow-75917

    04/22/2020, 12:46 PM
    hi, I want to deploy a chart from a repo, not local, but I want to use a values.yaml file to replace some values. How do I do that?
    q
    • 2
    • 5
  • b

    bland-lamp-16797

    04/24/2020, 2:45 PM
    I've notice that pulumi does not recreate missing manifest... like, if I create namespace and namespace is gone, it will not recreate
    b
    • 2
    • 2
  • b

    bland-lamp-16797

    04/24/2020, 2:46 PM
    is it same for other k8s resources?
  • b

    busy-account-42432

    04/26/2020, 10:03 AM
    Is there a PR for renderyamltodirectory option in the kubernetes provider for golang? I'm new to pulumi and this would be required for our GitOps workflow
    w
    • 2
    • 2
  • g

    gorgeous-animal-95046

    04/27/2020, 7:36 PM
    is it not possible to
    import
    a
    CustomResource
    ? The diff is always different because the
    spec
    doesn't match up to what's in my program (the program has the same
    spec
    as what's currently in k8s). The diff when running
    pulumi up
    has a complete
    spec
    inside of it, like the remote was empty. I'm using dry run for importing.
    • 1
    • 1
  • b

    bland-lamp-16797

    04/29/2020, 3:15 PM
    did anyone install nginx-ingress in pulumi ? I'm looking at examples but it might be someone did already this before me
    b
    b
    • 3
    • 19
  • c

    cool-family-11574

    05/01/2020, 8:30 AM
    Is there a way to convert yamlto Pulumi?
  • b

    better-rainbow-14549

    05/01/2020, 8:31 AM
    not that i know of, but you can convert yaml to json and then use that as the majority of your spec block
  • b

    billowy-army-68599

    05/01/2020, 3:42 PM
    @cool-family-11574 sorry for the delay! You can't convert yaml to pulumi per se, but we do have ConfigFile https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/kubernetes/yaml/#ConfigFile This'll create a set of resources from a YAML config (remote or local) and you can also do transformations on it, it's just an object/dict. Here's an example
    const crds = new k8s.yaml.ConfigFile("crds", {
        file: "<https://github.com/jetstack/cert-manager/releases/download/v0.14.1/cert-manager.crds.yaml>",
    }, { provider: provider })
  • c

    cool-family-11574

    05/01/2020, 3:57 PM
    Is this only available in Node JS or other languages
    g
    b
    • 3
    • 3
  • c

    creamy-potato-29402

    05/01/2020, 4:03 PM
    https://github.com/itowlson/vscode-pulumi-kubernetes
    b
    • 2
    • 1
  • c

    creamy-potato-29402

    05/01/2020, 4:04 PM
    kind of. it's a vscode extension though.
  • h

    hundreds-portugal-17080

    05/05/2020, 2:23 AM
    Hello, Is there a way to restart a container inside pod from pulumi code. I am using postStart hook to install some libraries but need a container restart to make that into effect. I could have precompiled the docker image with set of liraries but those are too many and so, they are passed as pulumi config parameters to pulumi codebase.
  • b

    busy-umbrella-36067

    05/05/2020, 11:11 PM
    how hard would it be to build caching into
    k8s.yaml.ConfigFile
    if the
    args.file
    is a URL? I’m using one in a module and its making 16 concurrent requests to Github releases which gets ratelimited for obvious reasons.
    g
    • 2
    • 3
  • h

    hundreds-portugal-17080

    05/06/2020, 4:34 AM
    Hello, I am trying to override a multiline value(filebeatConfig) from https://github.com/elastic/helm-charts/blob/master/filebeat/values.yaml through pulumi code and it just doesn't work. I get "Error: template: filebeat/templates/daemonset.yaml:29:27: executing "filebeat/templates/daemonset.yaml" at include (print .Template.BasePath "/configmap.yaml") .: error calling include: template: filebeat/templates/configmap.yaml:13:35: executing "filebeat/templates/configmap.yaml" at .Values.filebeatConfig: range can't iterate over" Attached chart code as an example. Not sure if I am doing something wrong. I have very basic knowledge on helm. Any help is appreciated.
    Untitled
  • h

    hundreds-receptionist-31352

    05/06/2020, 5:10 PM
    Hi could anyone get working this -> https://www.pulumi.com/docs/guides/adopting/from_kubernetes/
  • h

    hundreds-receptionist-31352

    05/06/2020, 5:11 PM
    import * as k8s from "@pulumi/kubernetes";
    // Deploy the latest version of the stable/wordpress chart.
    const wordpress = new k8s.helm.v2.Chart("wpdev", {
        repo: "stable",
        chart: "wordpress",
        version: "2.1.3",
    });
    // Export the public IP for WordPress.
    const frontend = wordpress.getResource("v1/Service", "wpdev-wordpress");
    export const frontendIp = frontend.status.loadBalancer.ingress[0].ip;
    b
    • 2
    • 14
  • h

    hundreds-receptionist-31352

    05/06/2020, 5:12 PM
    just following the same steps It never up , a lot of pods are waiting for some extra variables to run properly
  • p

    polite-motherboard-78438

    05/07/2020, 6:20 PM
    hello. I want to use the Postgres provider to manage databases on a Postgres instance deployed on Kubernetes. The issue is that the service is not exposed to the outside so Pulumi can´t reach it. What is the best way to handle this? Should I use a VPN/kubectl port-forwarding? I need a way that can be use in CI envrionment and also for new/existing clusters. (A new cluster will create the K8s cluster, deploy the postgres StatefulSet and setup default databases).
    b
    a
    f
    • 4
    • 11
  • a

    abundant-airplane-93796

    05/08/2020, 12:51 PM
    is there any way to enforce that a provider MUST be specifically sent for any/all kubernetes resources? on a couple of occasions I've inadvertantly created resources on whatever cluster my local kubectl context is set to instead of one of those my Pulumi code is managing - basically by forgetting to add the 'provider' setting appropriately
    g
    • 2
    • 2
Powered by Linen
Title
a

abundant-airplane-93796

05/08/2020, 12:51 PM
is there any way to enforce that a provider MUST be specifically sent for any/all kubernetes resources? on a couple of occasions I've inadvertantly created resources on whatever cluster my local kubectl context is set to instead of one of those my Pulumi code is managing - basically by forgetting to add the 'provider' setting appropriately
g

gorgeous-egg-16927

05/08/2020, 3:03 PM
This is tracked in https://github.com/pulumi/pulumi/issues/3383 You can work around this by setting an invalid 
kubeconfig
 as part of the stack config.
pulumi config set kubernetes:config:kubeconfig "dummy"
a

abundant-airplane-93796

05/08/2020, 3:03 PM
👍 perfect thanks!
👍 2
View count: 5