Skip to content

Support for user namespaces (hostUsers) #2818

@moorglade

Description

@moorglade

Description

Recent Kubernetes releases introduced support for user namespaces, which can be enabled for a pod by setting hostUsers to false. As far as I can see, the Terraform provider does not support setting this parameter in its resources (kubernetes_pod, kubernetes_deployment, etc.).

Potential Terraform Configuration

A simple boolean option could be introduced to spec schema:

resource "kubernetes_pod" "test" {
  metadata {
    name = "terraform-example"
  }

  spec {
    host_users = false
    ...

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions