committed by
GitHub
64 changed files with 952 additions and 131 deletions
@ -1,3 +1,5 @@ |
|||
FROM nginx:alpine |
|||
WORKDIR /app |
|||
COPY dist/EShopOnAbp /usr/share/nginx/html |
|||
COPY dist/EShopOnAbp /usr/share/nginx/html |
|||
COPY dynamic-env.json /usr/share/nginx/html |
|||
COPY /nginx.conf /etc/nginx/conf.d/default.conf |
|||
@ -0,0 +1,21 @@ |
|||
{ |
|||
"production": true, |
|||
"application": { |
|||
"baseUrl":"https://eshop-st-web", |
|||
"name": "EShopOnAbp", |
|||
"logoUrl": "" |
|||
}, |
|||
"oAuthConfig": { |
|||
"issuer": "https://eshop-st-authserver", |
|||
"redirectUri": "https://eshop-st-web", |
|||
"clientId": "EShopOnAbp_App", |
|||
"responseType": "code", |
|||
"scope": "offline_access openid profile email phone IdentityService AdministrationService SaasService" |
|||
}, |
|||
"apis": { |
|||
"default": { |
|||
"url": "https://eshop-st-gateway-web", |
|||
"rootNamespace": "EShopOnAbp" |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
server { |
|||
listen 80; |
|||
listen [::]:80; |
|||
server_name _; |
|||
|
|||
#access_log /var/log/nginx/host.access.log main; |
|||
|
|||
location / { |
|||
root /usr/share/nginx/html; |
|||
index index.html index.htm; |
|||
try_files $uri $uri/ /index.html =404; |
|||
} |
|||
|
|||
location /getEnvConfig { |
|||
default_type 'application/json'; |
|||
add_header 'Access-Control-Allow-Origin' '*' always; |
|||
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always; |
|||
add_header 'Content-Type' 'application/json'; |
|||
try_files $uri /dynamic-env.json; |
|||
} |
|||
|
|||
#error_page 404 /404.html; |
|||
|
|||
# redirect server error pages to the static page /50x.html |
|||
# |
|||
error_page 500 502 503 504 /50x.html; |
|||
location = /50x.html { |
|||
root /usr/share/nginx/html; |
|||
} |
|||
} |
|||
Binary file not shown.
@ -1,3 +1,3 @@ |
|||
param ($version='latest') |
|||
|
|||
helm upgrade --install eshoponabp eshoponabp --namespace eshop --create-namespace --set global.eshoponabpImageVersion=$version |
|||
helm upgrade --install es-st eshoponabp --namespace eshop --create-namespace --set global.eshoponabpImageVersion=$version |
|||
@ -0,0 +1,10 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-administration" |
|||
- name: "App__CorsOrigins" |
|||
value: "https://eshop-st-gateway-web,https://eshop-st-gateway-public-web,https://eshop-st-gateway-internal" |
|||
- name: "RemoteServices__Default__BaseUrl" |
|||
value: "https://eshop-st-gateway-internal/" |
|||
- name: "IdentityClients__IdentityClients__Authority" |
|||
value: "https://eshop-st-authserver" |
|||
|
|||
@ -0,0 +1,8 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-authserver" |
|||
- name: "App__CorsOrigins" |
|||
value: "https://eshop-st-identity,https://eshop-st-administration,https://eshop-st-saas" |
|||
- name: "App__RedirectAllowedUrls" |
|||
value: "http://localhost:4200" |
|||
|
|||
@ -1,17 +0,0 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
labels: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
type: ClusterIP |
|||
ports: |
|||
- name: consul-1 |
|||
protocol: TCP |
|||
port: 8500 |
|||
- name: consul-2 |
|||
protocol: TCP |
|||
port: 8600 |
|||
selector: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
@ -1,24 +0,0 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
spec: |
|||
containers: |
|||
- image: consul |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: consul-1 |
|||
protocol: TCP |
|||
containerPort: 8500 |
|||
- name: consul-2 |
|||
protocol: TCP |
|||
containerPort: 8600 |
|||
@ -0,0 +1,6 @@ |
|||
apiVersion: v2 |
|||
name: gateway-internal |
|||
appVersion: "1.0" |
|||
description: eShopOnAbp Internal Web Gateway Application |
|||
version: 1.0.0 |
|||
type: application |
|||
@ -0,0 +1,113 @@ |
|||
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" ] |
|||
}] |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
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: {{ .Release.Name }}-{{ .Chart.Name }}-tls |
|||
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 |
|||
@ -0,0 +1,34 @@ |
|||
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 |
|||
@ -0,0 +1,35 @@ |
|||
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" |
|||
@ -1,6 +1,6 @@ |
|||
apiVersion: v2 |
|||
name: public-webgateway |
|||
name: gateway-public-web |
|||
appVersion: "1.0" |
|||
description: eShopOnAbp Public Web Gateway Application |
|||
version: 1.0.0 |
|||
type: application |
|||
type: application |
|||
@ -0,0 +1,74 @@ |
|||
apiVersion: v1 |
|||
kind: ConfigMap |
|||
metadata: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap |
|||
data: |
|||
appsettings.json: |- |
|||
{ |
|||
"Routes": [ |
|||
{ |
|||
"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": "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": "Catalog Service", |
|||
"DownstreamPathTemplate": "/api/catalog/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-catalog", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/catalog/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Basket Service", |
|||
"DownstreamPathTemplate": "/api/basket/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-basket", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/basket/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}, |
|||
{ |
|||
"ServiceKey": "Ordering Service", |
|||
"DownstreamPathTemplate": "/api/ordering/{everything}", |
|||
"DownstreamScheme": "http", |
|||
"DownstreamHostAndPorts": [ |
|||
{ |
|||
"Host": "eshop-st-ordering", |
|||
"Port": 80 |
|||
} |
|||
], |
|||
"UpstreamPathTemplate": "/api/ordering/{everything}", |
|||
"UpstreamHttpMethod": [ "Put", "Delete", "Get", "Post" ] |
|||
}] |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
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.gatewayPublicWeb.domain }} |
|||
{{- if eq .Release.Name "es-az" }} |
|||
- {{ print "www." .Values.global.gatewayPublicWeb.domain }} |
|||
{{- end }} |
|||
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls |
|||
rules: |
|||
{{- if eq .Release.Name "es-az" }} |
|||
- host: "{{ print "www." .Values.global.gatewayPublicWeb.domain }}" |
|||
{{- else }} |
|||
- host: "{{ .Values.global.gatewayPublicWeb.domain }}" |
|||
{{- end }} |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
service: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
port: |
|||
number: 80 |
|||
@ -0,0 +1,14 @@ |
|||
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 }} |
|||
@ -0,0 +1,34 @@ |
|||
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.gatewayPublicWeb.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 |
|||
@ -0,0 +1,18 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-gateway-public-web" |
|||
- name: "GlobalConfiguration__BaseUrl" |
|||
value: "http://eshop-st-gateway-public-web" |
|||
- 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-administration" |
|||
- name: "Routes__1__DownstreamHostAndPorts__0__Port" |
|||
value: "80" |
|||
|
|||
@ -1,6 +1,6 @@ |
|||
apiVersion: v2 |
|||
name: consul |
|||
name: gateway-web |
|||
appVersion: "1.0" |
|||
description: Runs Consul instance |
|||
description: eShopOnAbp Web Gateway Application |
|||
version: 1.0.0 |
|||
type: application |
|||
@ -0,0 +1,100 @@ |
|||
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" ] |
|||
}] |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
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.gatewayWeb.domain }} |
|||
{{- if eq .Release.Name "es-az" }} |
|||
- {{ print "www." .Values.global.gatewayWeb.domain }} |
|||
{{- end }} |
|||
secretName: {{ .Release.Name }}-{{ .Chart.Name }}-tls |
|||
rules: |
|||
{{- if eq .Release.Name "es-az" }} |
|||
- host: "{{ print "www." .Values.global.gatewayWeb.domain }}" |
|||
{{- else }} |
|||
- host: "{{ .Values.global.gatewayWeb.domain }}" |
|||
{{- end }} |
|||
http: |
|||
paths: |
|||
- path: / |
|||
pathType: Prefix |
|||
backend: |
|||
service: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
port: |
|||
number: 80 |
|||
@ -0,0 +1,14 @@ |
|||
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 }} |
|||
@ -0,0 +1,34 @@ |
|||
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.gatewayWeb.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 |
|||
@ -0,0 +1,37 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-gateway-web" |
|||
- name: "App__CorsOrigins" |
|||
value: "https://eshop-st-web" |
|||
- name: "GlobalConfiguration__BaseUrl" |
|||
value: "http://eshop-st-gateway-web" |
|||
- 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" |
|||
@ -0,0 +1,22 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-identity" |
|||
- name: "App__CorsOrigins" |
|||
value: "https://eshop-st-gateway-web,https://eshop-st-gateway-public-web,https://eshop-st-gateway-internal" |
|||
- name: "IdentityServerClients__Web__RootUrl" |
|||
value: "https://eshop-st-web/" |
|||
- name: "IdentityServerClients__PublicWeb__RootUrl" |
|||
value: "https://eshop-st-public-web/" |
|||
- name: "IdentityServerClients__IdentityService__RootUrl" |
|||
value: "https://eshop-st-identity/" |
|||
- name: "IdentityServerClients__SaasService__RootUrl" |
|||
value: "https://eshop-st-saas/" |
|||
- name: "IdentityServerClients__AdministrationService__RootUrl" |
|||
value: "https://eshop-st-administration/" |
|||
- name: "IdentityServerClients__InternalGateway__RootUrl" |
|||
value: "https://eshop-st-gateway-internal/" |
|||
- name: "IdentityServerClients__PublicWebGateway__RootUrl" |
|||
value: "https://eshop-st-gateway-public-web/" |
|||
- name: "IdentityServerClients__WebGateway__RootUrl" |
|||
value: "https://eshop-st-gateway-web/" |
|||
|
|||
@ -0,0 +1,6 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-public-web" |
|||
- name: "RemoteServices__Default__BaseUrl" |
|||
value: "http://eshop-st-gateway-public-web/" |
|||
|
|||
@ -0,0 +1,6 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-saas" |
|||
- name: "App__CorsOrigins" |
|||
value: "https://eshop-st-gateway-web,https://eshop-st-gateway-public-web,https://eshop-st-gateway-internal" |
|||
|
|||
@ -0,0 +1,6 @@ |
|||
apiVersion: v2 |
|||
name: web |
|||
appVersion: "1.0" |
|||
description: eShopOnAbp BackOffice Web Application |
|||
version: 1.0.0 |
|||
type: application |
|||
@ -0,0 +1,14 @@ |
|||
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 }} |
|||
@ -0,0 +1,3 @@ |
|||
env: |
|||
- name: "BASE_URL" |
|||
value: "https://eshop-st-web" |
|||
Loading…
Reference in new issue