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