diff --git a/ingress/gateway-ingress.yaml b/ingress/gateway-ingress.yaml new file mode 100644 index 0000000..82ba78f --- /dev/null +++ b/ingress/gateway-ingress.yaml @@ -0,0 +1,338 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + kubernetes.io/ingress.class: nginx + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/proxy-body-size: 100m + nginx.ingress.kubernetes.io/proxy-connect-timeout: 360s + nginx.ingress.kubernetes.io/proxy-read-timeout: 360s + nginx.ingress.kubernetes.io/proxy-send-timeout: 360s + nginx.ingress.kubernetes.io/rewrite-target: /$2 + nginx.ingress.kubernetes.io/server-snippet: | + gzip on; + gzip_disable "MSIE [1-6]\."; + gzip_vary on; + gzip_proxied any; + gzip_comp_level 5; + gzip_min_length 512; + gzip_buffers 16 128k; + gzip_http_version 1.1; + gzip_types *; + nginx.ingress.kubernetes.io/ssl-passthrough: "true" + nginx.ingress.kubernetes.io/ssl-redirect: "false" + nginx.ingress.kubernetes.io/use-regex: "true" + nginx.org/proxy-connect-timeout: 60s + nginx.org/proxy-read-timeout: 60s + name: gateway-new-ingress + namespace: csi-dev +spec: + rules: + - host: quat.cloudsolutions.lk + http: + paths: + - backend: + service: + name: csi-iam-service + port: + number: 80 + path: /(.*csi-api/iam/)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: old-csi-net-empiread #csi-central-authentication-service #api-gateway-noauth #csi-central-authentication-service + port: + number: 80 + path: /(.*csi-api/old-csi-net-empiread/)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: api-gateway-noauth #csi-central-authentication-service #api-gateway-noauth #csi-central-authentication-service + port: + number: 80 + path: /(.*csi-api/)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: config-server + port: + number: 80 + path: /(.*config-server/)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: cs-net-physiotherapyui + port: + number: 80 + path: /(phy)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-adt-ui-service + port: + number: 80 + path: /(adt)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-adt-ui-service-revamp + port: + number: 80 + path: /(adt-test)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-rms-ui-service + port: + number: 80 + path: /(rms)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-rms-ui-service-revamp + port: + number: 80 + path: /(rms-test)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-empi-ui-service + port: + number: 80 + path: /(empi)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-empi-ui-nova-service + port: + number: 80 + path: /(empi-nova)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-mlm-ui-service + port: + number: 80 + path: /(mlm)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-setup-ui-service + port: + number: 80 + path: /(setup)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-ehr-opd-ui-service + port: + number: 80 + path: /(ehr)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-ehr-er-ui-service + port: + number: 80 + path: /(er)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-lab-labg-ui-service + port: + number: 80 + path: /(lab)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-hhc-ui-service + port: + number: 80 + path: /(hhc)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-pharmacy-ui-service + port: + number: 80 + path: /(pharmacy)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-bloodbank-ui-service + port: + number: 80 + path: /(bloodBank)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-reporting-ui-service + port: + number: 80 + path: /(reporting)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-dms-ui-service + port: + number: 80 + path: /(dms)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-ehr-ic-ui-service + port: + number: 80 + path: /(ic)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-bm-invoice-ui-service + port: + number: 80 + path: /(billing-invoice)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-billing-ui-service + port: + number: 80 + path: /(billing-master)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-approval-ui-service + port: + number: 80 + path: /(billing-approval)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-form-builder-ui-service + port: + number: 80 + path: /(formbuilder)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-config-ui-service + port: + number: 80 + path: /(configuration)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: cs-net-econsentui + port: + number: 80 + path: /(emd)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: e-consent-v2 + port: + number: 80 + path: /(econsent-v2)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-rcms-ui-service + port: + number: 80 + path: /(rcms)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-report-studio-ui-service + port: + number: 80 + path: /(report-studio)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: cs-net-physiotherapyui + port: + number: 80 + path: /(phy)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: cs-net-social-worker-ui + port: + number: 80 + path: /(sw)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-noty-ui-service + port: + number: 80 + path: /(notification)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-him-ui-service + port: + number: 80 + path: /(him)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-support-portal-service + port: + number: 80 + path: /(.*csi-api/csi-support-portal-service/)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-support-portal-ui + port: + number: 80 + path: /(support)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: apm + port: + number: 80 + path: /(csi-api/apm)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: apm + port: + number: 80 + path: /()(intake/v2/rum/events) + pathType: ImplementationSpecific + - backend: + service: + name: csi-morgue-ui-service + port: + number: 80 + path: /(morgue)(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-bloodbank-ui-mgmt-service + port: + number: 80 + path: /(bloodBankMgmt)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: devtools-error-service + port: + number: 80 + path: /(not-permitted)/?(.*) + pathType: ImplementationSpecific + - backend: + service: + name: csi-net-ext + port: + number: 80 + path: /(notyexternalservices/)(.*) + pathType: ImplementationSpecific + # tls: + # - hosts: + # - quat.cloudsolutions.lk + # secretName: gateway-new-ingress # cloudsolutiontlss