https://pulumi.com logo
#kubernetes
Title
# kubernetes
s

salmon-account-74572

09/21/2020, 7:49 PM
Apologies for the x-posting; anyone have any pointers for this? https://pulumi-community.slack.com/archives/CCWP5TJ5U/p1600717465002200
g

gorgeous-egg-16927

09/21/2020, 8:11 PM
Does this help?
Copy code
package main

import (
	k8s "<http://github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes|github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes>"
	appsv1 "<http://github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/apps/v1|github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/apps/v1>"
	"<http://github.com/pulumi/pulumi/sdk/v2/go/pulumi|github.com/pulumi/pulumi/sdk/v2/go/pulumi>"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		provider, err := k8s.NewProvider(ctx, "k8s", &k8s.ProviderArgs{
			RenderYamlToDirectory: pulumi.String("rendered"),
		})
		if err != nil {
			return err
		}
		appsv1.NewDeployment(ctx, "test", &appsv1.DeploymentArgs{}, pulumi.Provider(provider))

		return nil
	})
}
s

salmon-account-74572

09/21/2020, 8:13 PM
Yes, it does. Thank you!
👍 1
4 Views