From 03a194ed787ba47604be67da562414eee9b19335 Mon Sep 17 00:00:00 2001 From: kleph Date: Sat, 22 Feb 2020 00:59:39 +0100 Subject: [PATCH] [RUN] Add namespace 'beer' --- kube/beer-deployment.yaml | 1 + kube/beer-ingress.yaml | 1 + kube/beer-namespace.yaml | 8 ++++++++ kube/beer-service.yaml | 1 + 4 files changed, 11 insertions(+) create mode 100644 kube/beer-namespace.yaml diff --git a/kube/beer-deployment.yaml b/kube/beer-deployment.yaml index bc17b38..bf08ebb 100644 --- a/kube/beer-deployment.yaml +++ b/kube/beer-deployment.yaml @@ -3,6 +3,7 @@ apiVersion: apps/v1 kind: Deployment metadata: name: beer-deployment + namespace: beer spec: selector: matchLabels: diff --git a/kube/beer-ingress.yaml b/kube/beer-ingress.yaml index d003247..54420c9 100644 --- a/kube/beer-ingress.yaml +++ b/kube/beer-ingress.yaml @@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: beer-ingress + namespace: beer annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec: diff --git a/kube/beer-namespace.yaml b/kube/beer-namespace.yaml new file mode 100644 index 0000000..bfc4951 --- /dev/null +++ b/kube/beer-namespace.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: beer + labels: + name: beer + diff --git a/kube/beer-service.yaml b/kube/beer-service.yaml index 7e7b673..72c2a18 100644 --- a/kube/beer-service.yaml +++ b/kube/beer-service.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: Service metadata: name: beer + namespace: beer spec: selector: app: beer