From 9a9f0b0a7e8f7430c5f9f72aa4c765936dd5c08b Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Tue, 14 Mar 2023 10:50:24 +0100 Subject: [PATCH] DEV-941 allow access from old connect to ocr worker - added ingress manifests --- config/default/cusprod/values.yaml | 3 ++- config/default/cusqa/values.yaml | 3 ++- config/default/templates/smardigo-ocr/ingress.yaml | 2 +- config/default/values.yaml | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/config/default/cusprod/values.yaml b/config/default/cusprod/values.yaml index 9a764ee..eaead65 100644 --- a/config/default/cusprod/values.yaml +++ b/config/default/cusprod/values.yaml @@ -14,4 +14,5 @@ smardigo: cpu: "1" requests: memory: "1Gi" - cpu: "1" \ No newline at end of file + cpu: "1" + ips: "157.90.234.149/32" \ No newline at end of file diff --git a/config/default/cusqa/values.yaml b/config/default/cusqa/values.yaml index 2e8ecbd..419e18e 100644 --- a/config/default/cusqa/values.yaml +++ b/config/default/cusqa/values.yaml @@ -7,4 +7,5 @@ smardigo: api_token: ZXlKbGJtTWlPaUpCTVRJNFEwSkRMVWhUTWpVMklpd2lZV3huSWpvaVpHbHlJbjAuLlJvTTBqN1BVeDZsaW1KNzdCdzZtYlEuRnBKY3lMeHFiMkt6VnJiR3B3ak9VRmMxX1JlSG52dTQ2VWJHQ2FHS1B1cy5TQUhfcnZIOG5EbGpVZDlVczNUSjF3 ocr: host: prodnso-mobene-cusqa-01-ocr.smardigo.digital - api_token: ZXlKbGJtTWlPaUpCTVRJNFEwSkRMVWhUTWpVMklpd2lZV3huSWpvaVpHbHlJbjAuLl92ajdtMXRhdlEzSnJmRmRfSmQzc0EuaFRlMmVBLWZZa21JSEFhRi1jV2tiV2xhcEs5dzVZNFJsRkx6MExMbXVnZy5lY1hoWEZfRmF6Z2RXRDZPdG1fME9B \ No newline at end of file + api_token: ZXlKbGJtTWlPaUpCTVRJNFEwSkRMVWhUTWpVMklpd2lZV3huSWpvaVpHbHlJbjAuLl92ajdtMXRhdlEzSnJmRmRfSmQzc0EuaFRlMmVBLWZZa21JSEFhRi1jV2tiV2xhcEs5dzVZNFJsRkx6MExMbXVnZy5lY1hoWEZfRmF6Z2RXRDZPdG1fME9B + ips: "157.90.160.98/32" \ No newline at end of file diff --git a/config/default/templates/smardigo-ocr/ingress.yaml b/config/default/templates/smardigo-ocr/ingress.yaml index 274f8b8..f721224 100644 --- a/config/default/templates/smardigo-ocr/ingress.yaml +++ b/config/default/templates/smardigo-ocr/ingress.yaml @@ -6,7 +6,7 @@ metadata: cert-manager.io/issue-temporary-certificate: "true" kubernetes.io/ingress.class: nginx nginx.ingress.kubernetes.io/preserve-trailing-slash: "true" - nginx.ingress.kubernetes.io/whitelist-source-range: 167.235.25.0/32,157.90.160.98/32,157.90.234.149/32 + nginx.ingress.kubernetes.io/whitelist-source-range: "{{ .Values.smardigo.ocr.ips }}" name: "{{ .Release.Name }}-smardigo-ocr-backend" spec: rules: diff --git a/config/default/values.yaml b/config/default/values.yaml index 9db127c..ae7ce70 100644 --- a/config/default/values.yaml +++ b/config/default/values.yaml @@ -23,6 +23,7 @@ smardigo: requests: memory: "0.5Gi" cpu: "0.5" + ips: "" mobene: uba: image: prodnso-harbor-01.smardigo.digital/smardigo/mobene-uba-export-app @@ -32,4 +33,4 @@ pull_secret: harbor-pull-secret-key global: prometheus: - release_label: prometheus + release_label: prometheus \ No newline at end of file