6 changed files with 0 additions and 239 deletions
@ -1,6 +0,0 @@ |
|||
apiVersion: v2 |
|||
name: gateway-internal |
|||
appVersion: "1.0" |
|||
description: eShopOnAbp Internal Web Gateway Application |
|||
version: 1.0.0 |
|||
type: application |
|||
@ -1,113 +0,0 @@ |
|||
apiVersion: v1 |
|||
kind: ConfigMap |
|||
metadata: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap |
|||
data: |
|||
appsettings.json: |- |
|||
{ |
|||
"Routes": [ |
|||
{ |
|||
"ServiceKey": "Identity Service", |
|||
"DownstreamPathTemplate": "/api/identity/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-identity", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/identity/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Identity Service", |
|||
"DownstreamPathTemplate": "/api/account/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-identity", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/account/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Saas Service", |
|||
"DownstreamPathTemplate": "/api/saas/{everything}", |
|||
"DownstreamScheme": "https", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-saas", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/saas/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Administration Service", |
|||
"DownstreamPathTemplate": "/api/abp/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-administration", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/abp/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Administration Service", |
|||
"DownstreamPathTemplate": "/api/feature-management/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-administration", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/feature-management/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Administration Service", |
|||
"DownstreamPathTemplate": "/api/permission-management/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-administration", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/permission-management/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Administration Service", |
|||
"DownstreamPathTemplate": "/api/setting-management/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-administration", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/setting-management/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Payment Service", |
|||
"DownstreamPathTemplate": "/api/payment/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-payment", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/payment/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}] |
|||
} |
|||
@ -1,37 +0,0 @@ |
|||
apiVersion: networking.k8s.io/v1 |
|||
kind: Ingress |
|||
metadata: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-ingress |
|||
annotations: |
|||
kubernetes.io/ingress.class: nginx |
|||
nginx.ingress.kubernetes.io/rewrite-target: / |
|||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" |
|||
nginx.ingress.kubernetes.io/proxy-buffer-size: "{{ .Values.global.nginxProxyBufferSize }}" |
|||
nginx.ingress.kubernetes.io/proxy-buffers-number: "{{ .Values.global.nginxProxyBuffersNumber }}" |
|||
{{- if eq .Release.Name "es-az" }} |
|||
nginx.ingress.kubernetes.io/from-to-www-redirect: "true" |
|||
{{- end }} |
|||
cert-manager.io/cluster-issuer: letsencrypt |
|||
spec: |
|||
tls: |
|||
- hosts: |
|||
- {{ .Values.global.gatewayInternal.domain }} |
|||
{{- if eq .Release.Name "es-az" }} |
|||
- {{ print "www." .Values.global.gatewayInternal.domain }} |
|||
{{- end }} |
|||
secretName: {{ .Values.global.tlsSecret }} |
|||
rules: |
|||
{{- if eq .Release.Name "es-az" }} |
|||
- host: "{{ print "www." .Values.global.gatewayInternal.domain }}" |
|||
{{- else }} |
|||
- host: "{{ .Values.global.gatewayInternal.domain }}" |
|||
{{- end }} |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
service: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
port: |
|||
number: 80 |
|||
@ -1,14 +0,0 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
labels: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
ports: |
|||
- name: "80" |
|||
port: 80 |
|||
- name: "443" |
|||
port: 443 |
|||
selector: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
@ -1,34 +0,0 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
containers: |
|||
- image: {{ .Values.global.gatewayInternal.containerImage }}:{{ .Values.global.eshoponabpImageVersion }} |
|||
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
volumeMounts: |
|||
- name: config-volume |
|||
mountPath: /app/config |
|||
env: |
|||
{{ include "eshoponabp.global.env" . | indent 8 }} |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
volumes: |
|||
- name: config-volume |
|||
configMap: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap |
|||
@ -1,35 +0,0 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-gateway-internal" |
|||
- name: "GlobalConfiguration__BaseUrl" |
|||
value: "http://eshop-st-gateway-internal" |
|||
- name: "Routes__0__DownstreamScheme" |
|||
value: "http" |
|||
- name: "Routes__0__DownstreamHostAndPorts__0__Host" |
|||
value: "eshop-st-identity" |
|||
- name: "Routes__0__DownstreamHostAndPorts__0__Port" |
|||
value: "80" |
|||
- name: "Routes__1__DownstreamScheme" |
|||
value: "http" |
|||
- name: "Routes__1__DownstreamHostAndPorts__0__Host" |
|||
value: "eshop-st-identity" |
|||
- name: "Routes__1__DownstreamHostAndPorts__0__Port" |
|||
value: "80" |
|||
- name: "Routes__2__DownstreamScheme" |
|||
value: "http" |
|||
- name: "Routes__2__DownstreamHostAndPorts__0__Host" |
|||
value: "eshop-st-saas" |
|||
- name: "Routes__2__DownstreamHostAndPorts__0__Port" |
|||
value: "80" |
|||
- name: "Routes__3__DownstreamScheme" |
|||
value: "http" |
|||
- name: "Routes__3__DownstreamHostAndPorts__0__Host" |
|||
value: "eshop-st-administration" |
|||
- name: "Routes__3__DownstreamHostAndPorts__0__Port" |
|||
value: "80" |
|||
- name: "Routes__4__DownstreamScheme" |
|||
value: "http" |
|||
- name: "Routes__4__DownstreamHostAndPorts__0__Host" |
|||
value: "eshop-st-administration" |
|||
- name: "Routes__4__DownstreamHostAndPorts__0__Port" |
|||
value: "80" |
|||
Loading…
Reference in new issue