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
python
  • i

    incalculable-sundown-82514

    02/05/2019, 7:46 PM
    https://github.com/pulumi/pulumi-kubernetes/blob/master/examples/python/guestbook/__main__.py
  • l

    little-river-49422

    02/05/2019, 7:46 PM
    oh, ok
  • l

    little-river-49422

    02/05/2019, 7:46 PM
    helm provisioner as well?
  • i

    incalculable-sundown-82514

    02/05/2019, 7:46 PM
    that’s a no, that part is node only for now.
  • i

    incalculable-sundown-82514

    02/05/2019, 7:47 PM
    https://github.com/pulumi/pulumi-kubernetes/issues/325
  • l

    little-river-49422

    02/05/2019, 7:48 PM
    I guess I dont really need helm, pulumi kinda replaces that
  • l

    little-river-49422

    02/05/2019, 7:52 PM
    just a quick question, how do I create k8s provider when I dont have kube config on the disk? so I create AKS and use output to "init" the k8s provider? does that work or ... ?
  • i

    incalculable-sundown-82514

    02/05/2019, 7:53 PM
    Yep, that does work. You do need to construct a
    kubeconfig
    string based on the output of AKS, but you can do this to create a provider from that kubeconfig: https://github.com/pulumi/pulumi-kubernetes/blob/master/examples/python/provider/__main__.py
  • i

    incalculable-sundown-82514

    02/05/2019, 7:54 PM
    You can get it from AKS here: https://pulumi.io/reference/pkg/python/pulumi_azure/containerservice/#pulumi_azure.containerservice.KubernetesCluster.kube_config_raw
  • l

    little-river-49422

    02/05/2019, 7:54 PM
    I assume I can use this property in output? https://pulumi.io/reference/pkg/python/pulumi_azure/containerservice/#pulumi_azure.containerservice.KubernetesCluster.kube_config_raw
  • i

    incalculable-sundown-82514

    02/05/2019, 7:54 PM
    yep!
  • l

    little-river-49422

    02/05/2019, 7:54 PM
    ok 😉
  • l

    little-river-49422

    02/05/2019, 7:54 PM
    😛artypus:
  • l

    little-river-49422

    02/05/2019, 7:54 PM
    not sure why you only have partypus, not parrot, but kinda works 😉
  • i

    incalculable-sundown-82514

    02/05/2019, 7:55 PM
    oh no, we don’t have party parrot in here?
  • i

    incalculable-sundown-82514

    02/05/2019, 7:55 PM
    this must be fixed
  • l

    little-river-49422

    02/05/2019, 8:00 PM
    the more i think about the more I tend to agree that I dont need helm at all, lol. python can do anything helm can and even more. and I wont have to use yet another HCL
  • l

    little-river-49422

    02/05/2019, 8:06 PM
  • i

    incalculable-sundown-82514

    02/05/2019, 8:06 PM
    yeah, we feel the same! We have the helm stuff in node since it’s sometimes useful to have an easy way to deploy existing helm charts to your cluster
  • l

    little-river-49422

    02/05/2019, 8:06 PM
    okay. we're getting there
    🎉 1
  • l

    little-river-49422

    02/05/2019, 9:14 PM
    ok, thats a fair point. but I suppose I cant really mix 2 types of languages in the same project?
  • i

    incalculable-sundown-82514

    02/05/2019, 9:16 PM
    that’s a great question and today the answer is no, you can’t mix two languages in the same project. In the next few weeks we’ll be pursuing a prototype to investigate if it is possible to do that, though.
  • i

    incalculable-sundown-82514

    02/05/2019, 9:17 PM
    Since it would be awesome to use Pulumi libraries written in TypeScript from Python without having to re-write everything.
  • l

    little-river-49422

    02/05/2019, 9:17 PM
    yeah, for instance I dont think rewriting helm chart for prometheus operator in python makes a lot of sense... 🙂
  • l

    little-river-49422

    02/05/2019, 9:18 PM
    but I can just have a separate pulumi configuration for initial cluster configuration. no biggie
  • i

    incalculable-sundown-82514

    02/05/2019, 9:19 PM
    cool. we’ve found it’s pretty common for people to have different tiers of their architecture with different Pulumi programs. You can use the
    StackReference
    resource to reference different stacks: https://pulumi.io/reference/organizing-stacks-projects.html
  • l

    little-river-49422

    02/05/2019, 9:20 PM
    ok, this basically means there is no point in multi language configuration, if you can just reference it
  • i

    incalculable-sundown-82514

    02/05/2019, 9:20 PM
    that’s not really true, there is a point to it - you may not want to split up your configuration, especially if you’re referencing a library that defines some sort of primitive that you intend to build on
  • i

    incalculable-sundown-82514

    02/05/2019, 9:20 PM
    but yeah, you do always have the option of splitting stuff up.
  • i

    incalculable-sundown-82514

    02/05/2019, 9:21 PM
    StackReference isn’t available in Python yet IIRC but let me know if you want to play with it and I’ll hook it up (https://github.com/pulumi/pulumi/issues/2344)
Powered by Linen
Title
i

incalculable-sundown-82514

02/05/2019, 9:21 PM
StackReference isn’t available in Python yet IIRC but let me know if you want to play with it and I’ll hook it up (https://github.com/pulumi/pulumi/issues/2344)
View count: 1