Add default netpol to LMA charts

Change-Id: I86389085e922848a833d8787573e0b6be843ace4
Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
Tin Lam 2019-09-30 18:38:16 -05:00
parent d0b32ed88a
commit aa2ce5fef4
5 changed files with 23 additions and 2 deletions

View File

@ -189,6 +189,13 @@ manifests:
service_ingress: true
statefulset: true
network_policy:
alertmanager:
ingress:
- {}
egress:
- {}
conf:
command_flags:
storage:

View File

@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. */}}
{{- if .Values.manifests.network_policy -}}
{{- $netpol_opts := dict "envAll" . "name" "application" "label" "kube-state-metrics" -}}
{{- $netpol_opts := dict "envAll" . "name" "application" "label" "kube_state_metrics" -}}
{{ $netpol_opts | include "helm-toolkit.manifests.kubernetes_network_policy" }}
{{- end -}}

View File

@ -148,6 +148,13 @@ endpoints:
metrics:
default: 10252
network_policy:
kube_state_metrics:
ingress:
- {}
egress:
- {}
monitoring:
prometheus:
enabled: true

View File

@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. */}}
{{- if .Values.manifests.network_policy -}}
{{- $netpol_opts := dict "envAll" . "name" "application" "label" "prometheus-process-exporter" -}}
{{- $netpol_opts := dict "envAll" . "name" "application" "label" "prometheus_process_exporter" -}}
{{ $netpol_opts | include "helm-toolkit.manifests.kubernetes_network_policy" }}
{{- end -}}

View File

@ -148,6 +148,13 @@ endpoints:
metrics:
default: 9256
network_policy:
prometheus_process_exporter:
ingress:
- {}
egress:
- {}
manifests:
configmap_bin: true
daemonset: true