Skip to content

Creating namespaces with custom labels #4178

@bgehman

Description

@bgehman

Is it possible to create a namespace, and add our own custom labels to that namespace? We are in the process of migrating our JINJA based templates over to Helm and having issues...

YAML:

apiVersion: v1
kind: Namespace
metadata:
   name: {{ .Release.Namespace }}
   labels:
       app_name: core

Errors running helm install:

$ helm install --namespace core --name core core 
Error: release core failed: namespaces "core" already exists

Output of helm version:

$ helm version --short=true
Client: v2.9.1+g20adb27
Server: v2.9.1+g20adb27

Output of kubectl version:

$ kubectl version --short=true
Client Version: v1.9.6
Server Version: v1.9.6

Cloud Provider/Platform (AKS, GKE, Minikube etc.):
docker-edge

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