From 1a6542620487748132b7c495f73bfafed1a7a0ec Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Sat, 29 Jun 2024 00:49:53 +0300 Subject: placement --- tools/elasticsearch/network-policy.yaml | 27 ----------------------- tools/elasticsearch/templates/network-policy.yaml | 27 +++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 tools/elasticsearch/network-policy.yaml create mode 100644 tools/elasticsearch/templates/network-policy.yaml (limited to 'tools') diff --git a/tools/elasticsearch/network-policy.yaml b/tools/elasticsearch/network-policy.yaml deleted file mode 100644 index 8665861..0000000 --- a/tools/elasticsearch/network-policy.yaml +++ /dev/null @@ -1,27 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: allow-logstash-and-grafana-to-elasticsearch - namespace: monitoring -spec: - podSelector: - matchLabels: - app.kubernetes.io/name: elasticsearch - policyTypes: - - Ingress - ingress: - - from: - - podSelector: - matchLabels: - app.kubernetes.io/name: logstash - ports: - - protocol: TCP - port: 9200 - - from: - - podSelector: - matchLabels: - app.kubernetes.io/name: grafana - ports: - - protocol: TCP - port: 9200 - diff --git a/tools/elasticsearch/templates/network-policy.yaml b/tools/elasticsearch/templates/network-policy.yaml new file mode 100644 index 0000000..8665861 --- /dev/null +++ b/tools/elasticsearch/templates/network-policy.yaml @@ -0,0 +1,27 @@ +apiVersion: networking.k8s.io/v1 +kind: NetworkPolicy +metadata: + name: allow-logstash-and-grafana-to-elasticsearch + namespace: monitoring +spec: + podSelector: + matchLabels: + app.kubernetes.io/name: elasticsearch + policyTypes: + - Ingress + ingress: + - from: + - podSelector: + matchLabels: + app.kubernetes.io/name: logstash + ports: + - protocol: TCP + port: 9200 + - from: + - podSelector: + matchLabels: + app.kubernetes.io/name: grafana + ports: + - protocol: TCP + port: 9200 + -- cgit 1.4.1-2-gfad0