From bfad22f67b765249cf687bf684080fd1bb5c047f Mon Sep 17 00:00:00 2001 From: Till Prochaska Date: Sun, 19 Nov 2023 12:03:15 +0100 Subject: [PATCH] Remove unused port, network policy from K8s specs Although I'm not 100% sure, the exposed port 3000 probably is a left-over from the past, possibly when convert-document was still part of ingest-file. The network policy prevented Prometheus from scraping ingest-file metrics (and as the metrics port is now the only port exposed by ingest-file, should be otherwise unnecessary). --- helm/charts/aleph/templates/ingest-file.yaml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/helm/charts/aleph/templates/ingest-file.yaml b/helm/charts/aleph/templates/ingest-file.yaml index 3aa0144767..4f97d29200 100644 --- a/helm/charts/aleph/templates/ingest-file.yaml +++ b/helm/charts/aleph/templates/ingest-file.yaml @@ -27,9 +27,6 @@ spec: command: - ingestors - process - ports: - - containerPort: 3000 - name: http volumeMounts: {{ if .Values.global.google }} - mountPath: /var/secrets/google @@ -108,17 +105,6 @@ spec: maxReplicas: {{.Values.ingestfile.hpa.maxReplicas}} metrics: {{- toYaml .Values.ingestfile.hpa.scalingMetrics | nindent 4}} --- -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - name: {{ .Values.global.namingPrefix }}-ingest-file-policy -spec: - podSelector: - matchLabels: - app: {{ .Values.global.namingPrefix }}-ingest-file - policyTypes: - - Ingress ---- {{ if .Values.global.prometheus.enabled }} apiVersion: v1 kind: Service