`createService()` does not match namespace of deployment
beetahnator opened this issue · 0 comments
beetahnator commented
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()