Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createService() does not match namespace of deployment #43

Closed
beetahnator opened this issue Jan 2, 2020 · 0 comments · Fixed by #47
Closed

createService() does not match namespace of deployment #43

beetahnator opened this issue Jan 2, 2020 · 0 comments · Fixed by #47
Assignees

Comments

@beetahnator
Copy link
Contributor

beetahnator commented Jan 2, 2020

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()
@beetahnator beetahnator changed the title createService() does not match namespace of deployment createService() does not match namespace of deployment Jan 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants