New user trying to create k8s cluster on DigitalOc...
# getting-started
New user trying to create k8s cluster on DigitalOcean, appreciate all help. Pulumi up crashes. I probably have something silly in the code below.
Copy code
c@macmini ~/D/p/do> cat main.go
package main

import (

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Create an EKS cluster with the default configuration.

		a := digitalocean.KubernetesClusterArgs{
			AutoUpgrade:       nil,
			MaintenancePolicy: nil,
			Name:              nil,
			NodePool: digitalocean.KubernetesClusterNodePoolOutput{
				OutputState: &pulumi.OutputState{},
			Region:       pulumi.String("NewYork"),
			SurgeUpgrade: nil,
			Tags:         nil,
			Version:      pulumi.String("1.21"),
			VpcUuid:      nil,
		cluster, err := digitalocean.NewKubernetesCluster(ctx, "proj", &a)
		if err != nil {
			return err

		// Export the cluster's kubeconfig.
		ctx.Export("kubeconfig", cluster.KubeConfigs.Index(<http://pulumi.Int|pulumi.Int>(0)))
		return nil
c@macmini ~/D/p/do> pulumi up
Previewing update (dev)

View Live: <>

     Type                 Name      Plan     Info
     pulumi:pulumi:Stack  proj-dev           1 error; 22 messages

  pulumi:pulumi:Stack (proj-dev):
    panic: runtime error: invalid memory address or nil pointer dereference
    [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0x1074a2d]
    goroutine 7 [running]:
    	/usr/local/go/src/sync/cond.go:53 +0x2d
    <*OutputState).await|*OutputState).await>(0xc0000f8310, 0x1bf5298, 0xc000122008, 0x1bf9b38, 0xc0000f8310, 0x1, 0x0, 0x0, 0x0, 0x0, ...)
    	/Users/c/go/pkg/mod/ +0x47
    <|>, 0xc0000f8310, 0x1c08240, 0x1a9ac00, 0x1, 0x1, 0x0, 0x189d83b, 0x8, 0x0, ...)
    	/Users/c/go/pkg/mod/ +0xae8
    <|>, 0xc0000f8310, 0x1c08240, 0x1a9ac00, 0x189d801, 0x8, 0x0, 0x0, 0x1c08240, 0x1a9ac00, ...)
    	/Users/c/go/pkg/mod/ +0x73
    <|>, 0x8, 0x1acb600, 0xc0000f8310, 0x1c08240, 0x1a9ac00, 0x194, 0x0)
    	/Users/c/go/pkg/mod/ +0x9f
    <|>, 0xc0000ac480, 0x36, 0x0, 0x0, 0xc0000ae300, 0x0, 0xc0004100c0, 0x33)
    	/Users/c/go/pkg/mod/ +0x605
    <*Context).prepareResourceInputs(0xc000514000|*Context).prepareResourceInputs(0xc000514000>, 0x1be4a80, 0xc0000ac480, 0x1b0a305, 0x36, 0xc0000ae300, 0xc0000f8380, 0x0, 0x0, 0x0, ...)
    	/Users/c/go/pkg/mod/ +0x1cf
    <*Context).registerResource.func1(0xc0000f8380|*Context).registerResource.func1(0xc0000f8380>, 0xc000514000, 0x1be4a80, 0xc0000ac480, 0x1b0a305, 0x36, 0xc0000ae300, 0x0, 0x1ae3d51, 0x4, ...)
    	/Users/c/go/pkg/mod/ +0x1d7
    created by <*Context).registerResource|*Context).registerResource>
    	/Users/c/go/pkg/mod/ +0x5ce
    exit status 2

    error: an unhandled error occurred: program exited with non-zero exit code: 1

c@macmini ~/D/p/do [255]>
It’s likely expecting values for some of the things you’re setting as
🙏 1
I’d just put in the values you want wiht
, etc
🙏 1
Thank you, Itay