pulumi/pulumi-kubernetesx

`createService()` does not match namespace of deployment

beetahnator opened this issue · 0 comments

When using kubex.Deployment.createService(), the service will always be created in the default namespace.

Example:

import * as kx from "@pulumi/kubernetesx"

const pod = new kx.PodBuilder({
  containers: [
    {
      image: 'abiosoft/caddy'
    }
  ]
})

const deployment = new kx.Deployment('test',
  {
    metadata: {
      namespace: 'kube-system'
    },
    spec: pod.asDeploymentSpec()
  }
)

deployment.createService()