From 6d66608ba136e2f78c77aaa74c6ffeae8e156e23 Mon Sep 17 00:00:00 2001 From: brandon Date: Mon, 22 Mar 2021 00:04:05 -0400 Subject: [PATCH] namespace --- helm-guestbook/templates/deployment.yaml | 1 + helm-guestbook/templates/namespace.yaml | 4 ++++ helm-guestbook/templates/service.yaml | 1 + 3 files changed, 6 insertions(+) create mode 100644 helm-guestbook/templates/namespace.yaml diff --git a/helm-guestbook/templates/deployment.yaml b/helm-guestbook/templates/deployment.yaml index 980df25..614b610 100644 --- a/helm-guestbook/templates/deployment.yaml +++ b/helm-guestbook/templates/deployment.yaml @@ -2,6 +2,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: {{ template "helm-guestbook.fullname" . }} + namespace: {{ template "helm-guestbook.fullname" . }} labels: app: {{ template "helm-guestbook.name" . }} chart: {{ template "helm-guestbook.chart" . }} diff --git a/helm-guestbook/templates/namespace.yaml b/helm-guestbook/templates/namespace.yaml new file mode 100644 index 0000000..b597da1 --- /dev/null +++ b/helm-guestbook/templates/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: {{ template "helm-guestbook.fullname" . }} \ No newline at end of file diff --git a/helm-guestbook/templates/service.yaml b/helm-guestbook/templates/service.yaml index b7aab0b..58125dd 100644 --- a/helm-guestbook/templates/service.yaml +++ b/helm-guestbook/templates/service.yaml @@ -2,6 +2,7 @@ apiVersion: v1 kind: Service metadata: name: {{ template "helm-guestbook.fullname" . }} + namespace: {{ template "helm-guestbook.fullname" . }} labels: app: {{ template "helm-guestbook.name" . }} chart: {{ template "helm-guestbook.chart" . }}