From cbe646fba64b848c751d550e214f5943601f6110 Mon Sep 17 00:00:00 2001 From: Dalton Hubble Date: Sat, 9 Jun 2018 11:44:21 -0700 Subject: [PATCH] Label namespaces to ease writing Network Policies --- CHANGES.md | 1 + addons/nginx-ingress/aws/0-namespace.yaml | 2 ++ addons/nginx-ingress/digital-ocean/0-namespace.yaml | 2 ++ addons/nginx-ingress/google-cloud/0-namespace.yaml | 2 ++ addons/prometheus/0-namespace.yaml | 2 ++ 5 files changed, 9 insertions(+) diff --git a/CHANGES.md b/CHANGES.md index 4de5e14f..27dc3aa3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -15,6 +15,7 @@ Notable changes between versions. * Update Prometheus from v2.2.1 to v2.3.0 * Add Prometheus liveness and readiness probes * Annotate Grafana service so Prometheus scrapes metrics +* Label namespaces to ease writing Network Policies ## v1.10.3 diff --git a/addons/nginx-ingress/aws/0-namespace.yaml b/addons/nginx-ingress/aws/0-namespace.yaml index b40cd8b2..56903e1f 100644 --- a/addons/nginx-ingress/aws/0-namespace.yaml +++ b/addons/nginx-ingress/aws/0-namespace.yaml @@ -2,3 +2,5 @@ apiVersion: v1 kind: Namespace metadata: name: ingress + labels: + name: ingress diff --git a/addons/nginx-ingress/digital-ocean/0-namespace.yaml b/addons/nginx-ingress/digital-ocean/0-namespace.yaml index b40cd8b2..56903e1f 100644 --- a/addons/nginx-ingress/digital-ocean/0-namespace.yaml +++ b/addons/nginx-ingress/digital-ocean/0-namespace.yaml @@ -2,3 +2,5 @@ apiVersion: v1 kind: Namespace metadata: name: ingress + labels: + name: ingress diff --git a/addons/nginx-ingress/google-cloud/0-namespace.yaml b/addons/nginx-ingress/google-cloud/0-namespace.yaml index b40cd8b2..56903e1f 100644 --- a/addons/nginx-ingress/google-cloud/0-namespace.yaml +++ b/addons/nginx-ingress/google-cloud/0-namespace.yaml @@ -2,3 +2,5 @@ apiVersion: v1 kind: Namespace metadata: name: ingress + labels: + name: ingress diff --git a/addons/prometheus/0-namespace.yaml b/addons/prometheus/0-namespace.yaml index d3252360..90d12efd 100644 --- a/addons/prometheus/0-namespace.yaml +++ b/addons/prometheus/0-namespace.yaml @@ -2,3 +2,5 @@ apiVersion: v1 kind: Namespace metadata: name: monitoring + labels: + name: monitoring