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
general
  • c

    creamy-potato-29402

    08/20/2018, 4:10 PM
    Now I just have to find a Windows machine to test on :)
    d
    • 2
    • 1
  • c

    creamy-potato-29402

    08/20/2018, 4:10 PM
    I had to give mine back when I left MSFT
  • g

    gray-city-50684

    08/20/2018, 4:11 PM
    πŸ™‚
  • c

    creamy-potato-29402

    08/20/2018, 4:11 PM
    It shouldn't be too hard, I think we can put a fix together today...
  • g

    gray-city-50684

    08/20/2018, 4:12 PM
    If you have a fix in mind, I can test it locally (not a big TS coder, but maybe this much I can manage πŸ™‚ )
  • c

    creamy-potato-29402

    08/20/2018, 4:14 PM
    I think Matt or Cyrus has a Windows machine, I want to make sure there aren't other issues too
  • c

    creamy-potato-29402

    08/20/2018, 4:14 PM
    Should be pretty quick to fix I've they're in
  • g

    gray-city-50684

    08/20/2018, 4:18 PM
    πŸ‘
  • t

    tall-librarian-49374

    08/20/2018, 9:00 PM
    Hi! I've been thinking of a scenario when a piece of cloud stuff is provisioned per tenant on signup... Can pulumi help in such use case? Seems like CLI doesn't really fit then.
  • h

    helpful-vegetable-35581

    08/20/2018, 9:05 PM
    A stack per tenant? pulumi stack new <tenant>; pulumi update; ?
    πŸ‘ 1
  • w

    white-balloon-205

    08/20/2018, 9:06 PM
    Indeed - this is possible today by invoking
    pulumi
    CLI commands on this user signup event, and managing these as separate Pulumi stacks.
  • h

    helpful-vegetable-35581

    08/20/2018, 9:06 PM
    Or even one stack, and make part of the config a list of all tenants and just wrap the whole program in a loop through that
  • w

    white-balloon-205

    08/20/2018, 9:07 PM
    We have actually considered a Pulumi Pulumi provider, which would allow managing the deployment of Pulumi stacks using another Pulumi program, which might provide a slightly more first-class approach to this.
  • w

    white-balloon-205

    08/20/2018, 9:08 PM
    All of these are for fairly coarse-grained multi-tenancy. For finer grained multitenancy, it may make sense not to provision the resources using Pulumi, and instead to manage the granular tenants using code at runtime.
  • t

    tall-librarian-49374

    08/20/2018, 9:09 PM
    what is a granular tenant?
  • w

    white-balloon-205

    08/20/2018, 9:10 PM
    I just mean it depends how granularly you are alloacting resources to tenants - like will you share a database across tenants and isolate via some key per tenant?
  • t

    tall-librarian-49374

    08/20/2018, 9:11 PM
    I might want a mix like a global Azure SQL elastic pool + a DB per tenant
  • t

    tall-librarian-49374

    08/20/2018, 9:12 PM
    Sharing a database is old and well-understood but there is an opinion that it's time to leave this job to cloud providers
  • t

    tall-librarian-49374

    08/20/2018, 9:12 PM
    I'm just flirting with this idea in my head
  • s

    stocky-spoon-28903

    08/20/2018, 10:04 PM
    Probably not that interesting given that the Kubernetes provider for Pulumi already does this, but I just ran into this which is interesting: https://github.com/dikhan/terraform-provider-openapi
  • o

    orange-airplane-70350

    08/21/2018, 7:13 AM
    How often do you update terraform providers? I'm interested in the recent fixes of the azurerm provider (https://github.com/terraform-providers/terraform-provider-azurerm/pull/1769).
    • 1
    • 1
  • t

    tall-librarian-49374

    08/21/2018, 8:20 AM
    I upgraded to 0.15 + all package versions too, and now when I run
    pulumi refresh
    I get
    error: could not find plugin for provider 'urn:pulumi:myproject::myproject::pulumi:providers:aws::default'
    . What have I broken?
    m
    • 2
    • 8
  • g

    gray-city-50684

    08/21/2018, 10:37 AM
    Because of the bug I found yesterday with using Helm charts with Pulumi on Windows 10, I thought I'll turn those charts into Kubernetes manifests with "helm template ..." and use them directly. I make my K8S cluster with pulumi/azure like this (and this part works great): export const k8sCluster = new azure.containerservice.KubernetesCluster("MyCluster", { ... }); export const k8sProvider = new k8s.Provider("MyCluster-Provider", { kubeconfig: k8sCluster.kubeConfigRaw, }); And then I try to apply the manifest yaml's like this: const certManagerCG = new k8s.yaml.ConfigGroup("cert-manager", { files: "yaml/cert-manager/*.yaml" }, { provider: k8sProvider } ); And I get the error: Diagnostics: pulumiπŸ˜›ulumi:Stack: beyondzen-dev info: error: [runtime] Explicit providers may not be used with component resources
  • g

    gray-city-50684

    08/21/2018, 10:38 AM
    Could somebody please tell me, how to do it correctly?
  • h

    helpful-vegetable-35581

    08/21/2018, 10:50 AM
    I think you want providers: {"k8s": k8sProvider}
  • h

    helpful-vegetable-35581

    08/21/2018, 10:50 AM
    See "providers" on the ComponentResourceOptions interface
  • g

    gray-city-50684

    08/21/2018, 10:57 AM
    I tried that, but ConfigGroup wants CustomResourceOptions
  • g

    gray-city-50684

    08/21/2018, 10:57 AM
    and in the example for using Pods, it was like this:
  • g

    gray-city-50684

    08/21/2018, 10:57 AM
    const nginxcontainer = new k8s.core.v1.Pod("nginx", { spec: { containers: [{ image: "nginx:1.7.9", name: "nginx", ports: [{ containerPort: 80 }], }], }, }, { provider: myk8s });
  • g

    gray-city-50684

    08/21/2018, 10:59 AM
    and Pod also uses CustomResourceOptions, that is why I thought it will work with ConfigGroup as well
Powered by Linen
Title
g

gray-city-50684

08/21/2018, 10:59 AM
and Pod also uses CustomResourceOptions, that is why I thought it will work with ConfigGroup as well
View count: 1