https://pulumi.com logo
Docs
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
  • f

    fast-dinner-32080

    10/27/2020, 7:54 PM
    Hey guys, we are deploying helm charts and trying to figure out a way to depend on underlying resources of the chart. In Python I see there is a get_resource method on a v3 chart but it returns a Output[CustomResource] and not a Resource so I am unable to add it as a depends_on resource. Do you know a way to do this or is it not possible right now? here is an example. I wanted to extract the deployment of the cert-manager chart but that variable is an Output[CustomResource] and not a Resource so I am unable to use it.
    cert_manager_deployment = cert_manager_chart.get_resource(group_version_kind="apps/v1/Deployment",
                                                              name="cert-manager",
                                                              namespace="cert-manager")
    Trying to use that ends up with this exception
    Exception: 'depends_on' was passed a value that was not a Resource.
    g
    b
    • 3
    • 11
  • w

    wet-noon-14291

    10/28/2020, 7:45 AM
    anyone that has a concrete example configuring a traefik ingress using version 2 of traefik?
    b
    b
    s
    • 4
    • 10
  • w

    wet-soccer-72485

    10/28/2020, 6:40 PM
    Cross posting: https://pulumi-community.slack.com/archives/C84L4E3N1/p1603909187255200?thread_ts=1603908998.255100&cid=C84L4E3N1
  • m

    miniature-scientist-54855

    10/29/2020, 11:36 AM
    Hi, I'm struggling with a k8s.yaml.ConfigFile (a certManager's ClusterIssuer) which won't get created but i don't see any errors in the provisioning. I already tried to refresh this resource but that din't helped. Any hints on how to troubleshoot this?
    • 1
    • 2
  • i

    icy-jordan-58549

    10/29/2020, 3:39 PM
    I think, I’ve asked this question already, and answer was to use dynamic provider, possibly after 2 months something changed, just trying to double check. For example I am deploying StatefulSet (elasticsearch operator) that manages resources in my cluster, what will be the easiest way to wait for
    export const elasticService = k8s.core.v1.Service.get(
      'elastic-lb',
      pulumi.interpolate`${namespace.metadata.name}/${elastic.metadata.name}-es-http`,
      { parent: namespace, dependsOn: elastic, provider: aks.k8s.provider }
    );
    elasticService
    - I need to wait for this resource to appear, instead of failing instantly on preview step? Thanks!
    g
    • 2
    • 6
  • q

    quaint-electrician-41503

    10/29/2020, 5:39 PM
    Is there a special process required to do something like
    helm upgrade
    via pulumi?
  • q

    quaint-electrician-41503

    10/29/2020, 5:42 PM
    I currently deploy a chart like
    Chart("some-name,config=LocalChartOpts(path=path/to/helm-chart,ns=...,values=custom_values))
    b
    • 2
    • 4
  • q

    quaint-electrician-41503

    10/29/2020, 5:43 PM
    Can I just update my path to helm chart to the latest version and pulumi will deploy an update?
  • q

    quaint-electrician-41503

    10/29/2020, 5:52 PM
    Seems like this would be good documentation. Maybe I will just export my values and upgrade via helm for now since I don't know if this will work otherwise
  • f

    fast-dinner-32080

    10/30/2020, 8:00 PM
    @billowy-army-68599 @gorgeous-egg-16927 Does the Pulumi Helm v3 support helm hooks “pre-install,pre-upgrade”? I am trying to render out a chart that includes jobs with those hook types but it doesn’t seem to be rendering them at all which breaks the deployment.
    b
    s
    • 3
    • 11
  • w

    wet-noon-14291

    11/01/2020, 11:07 PM
    Is there a way to timeout a deploy to kubernetes faster if sometehing isn't correct?
    b
    g
    • 3
    • 15
  • s

    some-doctor-15042

    11/02/2020, 11:05 PM
    Is there a way to leverage a helm chart from a git repo that isnt setup as a helm repo? For example, the istio gateways helmchart does not have an
    index.yaml
    so I cant simply place it in
    fetchOpts:{
      repo:"<https://github.com/istio/istio/tree/master/manifests/charts/gateways/istio-ingress>",
    },
    Ive been using path but I would prefer to source it remotely each time rather than have the chart local to my git repo.
    b
    • 2
    • 2
  • f

    famous-kite-69533

    11/03/2020, 10:39 PM
    Hi 🙂 Is it possible with Pulumi to update an existing config map? I have a chart (Nginx ingress) that creates a config map, and soo after I want to add keys to that configmap. I know how to create a cm with Pulumi but not this. Thanks!
    g
    • 2
    • 6
  • p

    proud-spoon-58287

    11/09/2020, 11:18 AM
    Hi All
  • p

    proud-spoon-58287

    11/09/2020, 11:18 AM
    dumb question
  • p

    proud-spoon-58287

    11/09/2020, 11:18 AM
    I am trying to create an EKS cluster
  • p

    proud-spoon-58287

    11/09/2020, 11:18 AM
    but it is not clear to me where one specifies the region I want to use
  • p

    proud-spoon-58287

    11/09/2020, 11:18 AM
    ValidZones: [
            "us-east-1a",
            "us-east-1b",
            "us-east-1c",
            "us-east-1d",
            "us-east-1f"
          ]
  • p

    proud-spoon-58287

    11/09/2020, 11:18 AM
    I want london region
    s
    • 2
    • 49
  • p

    proud-spoon-58287

    11/11/2020, 10:12 AM
    Hi all, how one specifies the namespace where to apply new k8s.yaml.ConfigFile?
    s
    • 2
    • 7
  • m

    miniature-leather-70472

    11/11/2020, 5:58 PM
    Has anyone experienced any issues with the Helm provider failing to create resources seemingly at random? I am trying to deploy the Nginx ingress helm chart and sometimes it works fine, other times it will fail to deploy the service account, or the role, or the PSP, always throwing a "System.NullReferenceException: Object reference not set to an instance of an object." error. Whenever I attach a debugger to try and get more info, it always works. Any ideas on how I can look into this?
  • p

    polite-rain-7632

    11/11/2020, 7:23 PM
    Hey all, is there a recommended approach for adding a label to an already existing namespace "default" (using Go), was looking quickly at the SDK and it seemed to be limited to newly created namespaces only, and testing it quickly confirmed it.
    _, err = k8s.NewNamespace(ctx, "default", &k8s.NamespaceArgs{
    		Metadata: &meta.ObjectMetaArgs{
    			Labels: pulumi.StringMap{"foo": pulumi.String("bar")},
    		},
    	}, pulumi.Provider(input.K8sProvider))
    	if err != nil {
    		return err
    	}
    b
    • 2
    • 4
  • p

    polite-rain-7632

    11/11/2020, 7:30 PM
    NAME               STATUS   AGE   LABELS
    default            Active   1d   <none>
    default-dbgmfhep   Active   55m   <http://app.kubernetes.io/managed-by=pulumi,foo=bar|app.kubernetes.io/managed-by=pulumi,foo=bar>
  • s

    sticky-translator-17495

    11/13/2020, 8:16 AM
    Is there any documentation available on what "verbs" (get, apply, patch, create etc) pulumi is using, and for what action, when applying changes to the cluster?
    g
    r
    • 3
    • 15
  • f

    fast-dinner-32080

    11/13/2020, 4:59 PM
    Hi, Is there a way to patch kubernetes system resources? My use case is to add labels and annotations to the kube-system namespace but I don’t want to take over the namespace as a full import?
    g
    • 2
    • 3
  • s

    sticky-translator-17495

    11/13/2020, 10:45 PM
    I'm every now and then getting this kind of issue during a stack refresh, and it ends up deleting these resources from the stack state. I'm not sure why this is happening, but I'm wondering if it is due to our OIDC cluster authentication setup with short lived access tokens & refresh tokens. 1. Could this error occur when my token for the cluster expires? 2. Should the refresh command really delete resources from state if fails connecting to the cluster? CLI wise it’s fine, I can just select no, but in some tools we use the automation api and then the refresh is performed anyway.
    configured Kubernetes cluster is unreachable: failed to parse kubeconfig data in `kubernetes:config:kubeconfig`- couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }
    g
    • 2
    • 5
  • w

    wet-soccer-72485

    11/14/2020, 6:50 PM
    Is there a way to use the
    Container
    type definition that
    PodBuilder
    uses? It doesn’t appear to be exported from
    @pulumi/kubernetesx
    .
  • h

    happy-soccer-64223

    11/15/2020, 9:09 PM
    Hi everyone, i'm a bit lost with the kubernetes-sdk in Go. I don't see how we can provide for our developers a simple way to use reusable libraries. My idea is to provide for example a library adding a volume and a volume mount to every deployment. Really a simple chain of modification like we would do with the go sdk.
    deployment, err := MyCustomGen(name)
    err = MyCustomDeploymentPatch(deployment)
    I might be missing something bu i don't see how it's feasible with the pulumi-sdk. My question basically is how can we do two-pass modification on any object.
    b
    • 2
    • 17
  • m

    mysterious-portugal-46322

    11/18/2020, 12:43 PM
    Hi, I’m installing the linkerd helm chart which requires one of the values to be a multiline string, but I can’t see how to do that using Pulumi. I’m using TypeScript. What is the proper way to do this?
    b
    a
    • 3
    • 9
  • g

    gifted-beach-2614

    11/19/2020, 7:20 PM
    hey all, was looking over some of the diff logic in the provider and noticed what seems like a bug to me - i think this call should be
    labelSelectorForceNewProperties(".spec.selector")
    instead, since `matchLabels`/`matchExpressions` are fields inside LabelSelector, not directly inside the PVC spec object
    g
    • 2
    • 10
Powered by Linen
Title
g

gifted-beach-2614

11/19/2020, 7:20 PM
hey all, was looking over some of the diff logic in the provider and noticed what seems like a bug to me - i think this call should be
labelSelectorForceNewProperties(".spec.selector")
instead, since `matchLabels`/`matchExpressions` are fields inside LabelSelector, not directly inside the PVC spec object
just a typo or am i reading this wrong and it’s actually correct?
g

gorgeous-egg-16927

11/19/2020, 9:52 PM
You’re right, that is a bug. Would you mind filing an issue or contributing a PR?
g

gifted-beach-2614

11/19/2020, 10:28 PM
i can open a PR, sure - the label selector fields need to be added to the workload resources as well
🙏 1
https://github.com/pulumi/pulumi-kubernetes/pull/1387
as a followup, any chance we could get a new provider release cut with this commit?
g

gorgeous-egg-16927

12/01/2020, 7:54 PM
Yes, I’m expecting to cut a release in the next day or two.
We also publish dev builds, so you could use that in the meantime if you’re blocked
g

gifted-beach-2614

12/01/2020, 8:11 PM
👍 sounds great, thanks!
g

gorgeous-egg-16927

12/03/2020, 11:51 PM
https://github.com/pulumi/pulumi-kubernetes/releases/tag/v2.7.3 is out now with that fix
g

gifted-beach-2614

12/04/2020, 3:25 PM
🎉 thank you!
View count: 5