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
  • r

    refined-football-93789

    05/15/2019, 3:37 PM
    the deployments and statefulset are on the same created cluster
  • r

    refined-football-93789

    05/15/2019, 3:38 PM
    but, both have nodeSelector configured to control where the pods are created
  • r

    refined-football-93789

    05/15/2019, 3:38 PM
    so, how can i configure labels for the kubernetes nodes, in a kubernetes cluster created with pulumi in aks?
  • r

    refined-football-93789

    05/15/2019, 3:39 PM
    i can't find documentation about that, and the autocomplete of the types don't says me anything
  • r

    refined-football-93789

    05/15/2019, 4:21 PM
    link to stack overflow question: https://stackoverflow.com/questions/56153693/how-can-i-put-labels-in-nodes-from-aks-cluster-created-with-pulumi
  • s

    square-napkin-14607

    05/15/2019, 4:41 PM
    @refined-football-93789 https://github.com/Azure/aks-engine/tree/master/examples/kubernetes-labels
  • s

    square-napkin-14607

    05/15/2019, 4:42 PM
    but terraform not provide customNodeLabels option for agentPoolProfiles
  • s

    square-napkin-14607

    05/15/2019, 4:42 PM
    https://www.terraform.io/docs/providers/azurerm/r/kubernetes_cluster.html#agent_pool_profile
  • r

    refined-football-93789

    05/15/2019, 4:48 PM
    so, is a limitation of terraform, hence of pulumi too?
  • r

    refined-football-93789

    05/15/2019, 4:51 PM
    maybe exists another way? some event in azure.containerservice.KubernetesCluster that can i use, to execute the kubectl command directly?
  • r

    refined-football-93789

    05/15/2019, 4:53 PM
    maybe something as:
  • r

    refined-football-93789

    05/15/2019, 4:54 PM
    async function setNodesLabels() { await k8sCluster.kubeConfigRaw; // cal kubectl to set node labels }
  • r

    refined-football-93789

    05/15/2019, 4:55 PM
    but, if that works, how can i guarantee the order. The correct order has to be:
  • r

    refined-football-93789

    05/15/2019, 4:55 PM
    1) create cluster
  • r

    refined-football-93789

    05/15/2019, 4:55 PM
    2) set label in nodes
  • r

    refined-football-93789

    05/15/2019, 4:55 PM
    3) create deployments, statefulsets and other kubernetes resources
  • r

    refined-football-93789

    05/15/2019, 4:56 PM
    or maybe the correct answer is not to orchestrate the whole process with one pulumi project?
  • r

    refined-football-93789

    05/15/2019, 4:57 PM
    thanks you for your previous response @square-napkin-14607
    c
    • 2
    • 2
  • s

    square-napkin-14607

    05/15/2019, 5:00 PM
    I don’t use pulumi with kubernetes for the moment, just with terraform and for eks (aws)
  • s

    square-napkin-14607

    05/15/2019, 5:02 PM
    there steps are ok, create cluster => nodes => setup cluster (nodes, network, …) => deployment, ….
  • r

    refined-football-93789

    05/15/2019, 5:05 PM
    thanks. yes, but, i suppose that i must label the nodes with a script or something else and not with the native objects of pulumi?
  • r

    refined-football-93789

    05/15/2019, 5:06 PM
    i'm new in this type of tools and maybe i'm losing something
  • c

    cool-egg-852

    05/15/2019, 7:24 PM
    Are there any known bugs with pulumi missing resources with using yaml config files for k8s?
    c
    • 2
    • 14
  • f

    full-dress-10026

    05/15/2019, 8:55 PM
    What is the recommended way to have Pulumi automatically build and upload a Docker image to Azure to ultimately pass to a
    azure.containerservice.Group
    ?
    w
    • 2
    • 4
  • f

    full-dress-10026

    05/15/2019, 9:52 PM
    Any idea what would cause this warning?
    warning: urn:pulumi:fib-dev-azure::fib-azure::azure:ad/application:Application::fib-ad verification warning: The Azure Active Directory resources have been split out into their own Provider.
        
        Information on migrating to the new AzureAD Provider can be found here: <https://terraform.io/docs/providers/azurerm/guides/migrating-to-azuread.html>
        
        As such the Azure Active Directory resources within the AzureRM Provider are now deprecated and will be removed in v2.0 of the AzureRM Provider.
    w
    c
    • 3
    • 5
  • f

    full-dress-10026

    05/15/2019, 11:34 PM
    I see only a single replica is supported in Azure with Pulumi's Cloud package (likely because it's using the Azure Container Service which doesn't support scaling): https://github.com/pulumi/pulumi-cloud/blob/a551480660748471b9eef844d9576f7c6448c57d/azure/service.ts#L57. Anyone have any recommendations on how to run a Docker service in Azure with multiple replicas?
    b
    • 2
    • 2
  • b

    better-rainbow-14549

    05/16/2019, 8:35 AM
    use AKS
  • b

    better-rainbow-14549

    05/16/2019, 2:35 PM
    is there any workaround for the local state file bug yet (https://github.com/pulumi/pulumi/issues/2693) i'm still on 0.17.8
    w
    • 2
    • 2
  • g

    gray-elephant-37695

    05/16/2019, 2:49 PM
    Hi all. Is it possible to run code in the same context that lambda code runs in except in a local environment? What I mean by that is you are able to access properties on pulumi resources at runtime in a lambda by calling
    .get()
    . If I want to achieve the same thing locally how can I go about it. The main use case is for writing integration tests against the infra. It would be great to be able to reference all these resources in the tests the same way you do in the lambda runtime.
  • h

    hundreds-school-49273

    05/16/2019, 5:03 PM
    Hello, I just discovered Pulumi. I am trying to figure out how to use it instead of serverless framework. However I am not too keen on the blending of the infrastructure and application code. Is there a way to have pulumi handle bundling and the setting up of the function but the application code live inside a separate file. \
    w
    • 2
    • 6
Powered by Linen
Title
h

hundreds-school-49273

05/16/2019, 5:03 PM
Hello, I just discovered Pulumi. I am trying to figure out how to use it instead of serverless framework. However I am not too keen on the blending of the infrastructure and application code. Is there a way to have pulumi handle bundling and the setting up of the function but the application code live inside a separate file. \
w

white-balloon-205

05/16/2019, 5:04 PM
Yep - see examples like: https://github.com/pulumi/examples/blob/master/aws-ts-serverless-raw/index.ts#L53
h

hundreds-school-49273

05/16/2019, 5:06 PM
Very cool, since serverless handles the bundling of the application prior to deploying it, is there a process or tool to have pulumi do the same?
Something like pulumi.builder.Rollup that could bundle the application to an archive that pulumi can use? With some sort of knowledge on whether it needs to be re-bundled in the first place.
w

white-balloon-205

05/16/2019, 5:11 PM
The code there more or less does that already - the
AssetArchive
you see there builds an archive from code in the filesystem, and this will be incremental (if there are no diffs on the filesystem, there will not be a diff on this resource and the Lambda will not need to be redeployed). There is somewhat less "middleware" in this process - for example, we don't have a built-in mechanism to kick off a build prior to packaging, etc. That's something that would be really nice to add as a library on top of this.
h

hundreds-school-49273

05/16/2019, 5:15 PM
Do you have a plugin system or hooks into any middleware process now if I develop something that can package the app prior to deployment? I use serverless for everything now, but the giant YAML files with a mix of cloudformation is so frustrating. Pulumi seems to be in the perfect spot to solve this if I can solve for the packaging problem.
Pulumi shouldn't be burdened with all the complex bundling workflows, so I imagine it would be a way to spawn a process as part of packaging but can tap into pulumi state. The separate process could do anything as long as it returned an error or a zip file.
View count: 1