committed by
GitHub
48 changed files with 817 additions and 763 deletions
@ -1,3 +1 @@ |
|||
param ($version='latest') |
|||
|
|||
helm upgrade --install es-st eshoponabp --namespace eshop --create-namespace --set global.eshoponabpImageVersion=$version |
|||
helm upgrade --install es-st eshoponabp --namespace eshop --create-namespace |
|||
@ -0,0 +1,49 @@ |
|||
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.image.repository }}:{{ .Values.image.tag }} |
|||
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
env: |
|||
- name: App__SelfUrl |
|||
value: "{{ .Values.config.selfUrl }}" |
|||
- name: App__CorsOrigins |
|||
value: "{{ .Values.config.corsOrigins }}" |
|||
- name: App__RedirectAllowedUrls |
|||
value: "{{ .Values.config.allowedRedirectUrls }}" |
|||
- name: "ConnectionStrings__IdentityService" |
|||
value: "{{ .Values.config.identityService.connString }}" |
|||
- name: "ConnectionStrings__AdministrationService" |
|||
value: "{{ .Values.config.administrationService.connString }}" |
|||
- name: "ConnectionStrings__SaasService" |
|||
value: "{{ .Values.config.saasService.connString }}" |
|||
- name: "DOTNET_ENVIRONMENT" |
|||
value: "{{ .Values.config.dotnetEnv }}" |
|||
- name: "Redis__Configuration" |
|||
value: "{{ .Values.config.redisHost }}" |
|||
- name: "StringEncryption__DefaultPassPhrase" |
|||
value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}" |
|||
- name: "RabbitMQ__Connections__Default__HostName" |
|||
value: "{{ .Values.config.rabbitmqHost }}" |
|||
- name: "ElasticSearch__Url" |
|||
value: "{{ .Values.config.elasticsearchHost }}" |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
|
|||
@ -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.authServer.containerImage }}:{{ .Values.global.eshoponabpImageVersion }} |
|||
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
env: |
|||
{{ include "eshoponabp.global.env" . | indent 8 }} |
|||
- name: "ConnectionStrings__IdentityService" |
|||
value: {{ .Values.global.identityService.connString }} |
|||
- name: "ConnectionStrings__AdministrationService" |
|||
value: {{ .Values.global.administrationService.connString }} |
|||
- name: "ConnectionStrings__SaasService" |
|||
value: {{ .Values.global.saasService.connString }} |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
|
|||
@ -1,8 +1,27 @@ |
|||
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" |
|||
config: |
|||
selfUrl: # https://eshop-st-authserver |
|||
corsOrigins: # https://eshop-st-identity,https://eshop-st-administration,https://eshop-st-saas |
|||
allowedRedirectUrls: https://eshop-st-web |
|||
identityService: |
|||
connString: # |
|||
administrationService: |
|||
connString: # |
|||
saasService: |
|||
connString: # |
|||
dotnetEnv: # |
|||
redisHost: # |
|||
rabbitmqHost: # |
|||
elasticsearchHost: # |
|||
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 |
|||
|
|||
ingress: |
|||
host: # eshop-st-authserver |
|||
tlsSecret: eshop-demo-tls |
|||
|
|||
image: |
|||
repository: eshoponabp/app-authserver |
|||
tag: latest |
|||
pullPolicy: IfNotPresent |
|||
|
|||
env: {} |
|||
|
|||
@ -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,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" |
|||
@ -1,6 +0,0 @@ |
|||
apiVersion: v2 |
|||
name: gateway-public-web |
|||
appVersion: "1.0" |
|||
description: eShopOnAbp Public Web Gateway Application |
|||
version: 1.0.0 |
|||
type: application |
|||
@ -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.gatewayPublicWeb.domain }} |
|||
{{- if eq .Release.Name "es-az" }} |
|||
- {{ print "www." .Values.global.gatewayPublicWeb.domain }} |
|||
{{- end }} |
|||
secretName: {{ .Values.global.tlsSecret }} |
|||
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 |
|||
@ -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,35 +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.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/appsettings.json |
|||
subPath: appsettings.json |
|||
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,6 +0,0 @@ |
|||
env: |
|||
- name: "App__SelfUrl" |
|||
value: "https://eshop-st-gateway-public-web" |
|||
- name: "GlobalConfiguration__BaseUrl" |
|||
value: "http://eshop-st-gateway-public-web" |
|||
|
|||
@ -0,0 +1,6 @@ |
|||
apiVersion: v2 |
|||
name: gateway-web-public |
|||
appVersion: "1.0" |
|||
description: eShopOnAbp Web Public Gateway Application |
|||
version: 1.0.0 |
|||
type: application |
|||
@ -0,0 +1,52 @@ |
|||
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.image.repository }}:{{ .Values.image.tag }} |
|||
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
volumeMounts: |
|||
- name: config-volume |
|||
mountPath: /app/appsettings.json |
|||
subPath: appsettings.json |
|||
env: |
|||
- name: App__SelfUrl |
|||
value: "{{ .Values.config.selfUrl }}" |
|||
- name: GlobalConfiguration__BaseUrl |
|||
value: "{{ .Values.config.globalConfigurationBaseUrl }}" |
|||
- name: "DOTNET_ENVIRONMENT" |
|||
value: "{{ .Values.config.dotnetEnv }}" |
|||
- name: "Redis__Configuration" |
|||
value: "{{ .Values.config.redisHost }}" |
|||
- name: "RabbitMQ__Connections__Default__HostName" |
|||
value: "{{ .Values.config.rabbitmqHost }}" |
|||
- name: "AuthServer__Authority" |
|||
value: "{{ .Values.config.authServer.authority }}" |
|||
- name: "AuthServer__RequireHttpsMetadata" |
|||
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" |
|||
- name: "ElasticSearch__Url" |
|||
value: "{{ .Values.config.elasticsearchHost }}" |
|||
- name: "StringEncryption__DefaultPassPhrase" |
|||
value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}" |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
volumes: |
|||
- name: config-volume |
|||
configMap: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap |
|||
@ -0,0 +1,45 @@ |
|||
config: |
|||
selfUrl: https://eshop-st-gateway-public-web |
|||
globalConfigurationBaseUrl: http://eshop-st-gateway-public-web |
|||
authServer: |
|||
authority: http://eshop-st-authserver |
|||
requireHttpsMetadata: "false" |
|||
dotnetEnv: Staging |
|||
redisHost: es-st-redis |
|||
rabbitmqHost: es-st-rabbitmq |
|||
elasticsearchHost: # |
|||
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 |
|||
|
|||
reRoutes: |
|||
identityService: |
|||
schema: http |
|||
host: eshop-st-identity |
|||
port: 80 |
|||
administrationService: |
|||
schema: http |
|||
host: eshop-st-administration |
|||
port: 80 |
|||
catalogService: |
|||
schema: http |
|||
host: eshop-st-catalog |
|||
port: 80 |
|||
basketService: |
|||
schema: http |
|||
host: eshop-st-basket |
|||
port: 80 |
|||
orderService: |
|||
schema: http |
|||
host: eshop-st-order |
|||
port: 80 |
|||
|
|||
ingress: |
|||
host: eshop-st-gateway-web-public |
|||
tlsSecret: eshop-demo-tls |
|||
|
|||
image: |
|||
repository: eshoponabp/gateway-web-public |
|||
tag: latest |
|||
pullPolicy: IfNotPresent |
|||
|
|||
env: {} |
|||
|
|||
@ -0,0 +1,54 @@ |
|||
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.image.repository }}:{{ .Values.image.tag }} |
|||
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
volumeMounts: |
|||
- name: config-volume |
|||
mountPath: /app/appsettings.json |
|||
subPath: appsettings.json |
|||
env: |
|||
- name: App__SelfUrl |
|||
value: "{{ .Values.config.selfUrl }}" |
|||
- name: App__CorsOrigins |
|||
value: "{{ .Values.config.corsOrigins }}" |
|||
- name: GlobalConfiguration__BaseUrl |
|||
value: "{{ .Values.config.globalConfigurationBaseUrl }}" |
|||
- name: "DOTNET_ENVIRONMENT" |
|||
value: "{{ .Values.config.dotnetEnv }}" |
|||
- name: "Redis__Configuration" |
|||
value: "{{ .Values.config.redisHost }}" |
|||
- name: "RabbitMQ__Connections__Default__HostName" |
|||
value: "{{ .Values.config.rabbitmqHost }}" |
|||
- name: "AuthServer__Authority" |
|||
value: "{{ .Values.config.authServer.authority }}" |
|||
- name: "AuthServer__RequireHttpsMetadata" |
|||
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" |
|||
- name: "ElasticSearch__Url" |
|||
value: "{{ .Values.config.elasticsearchHost }}" |
|||
- name: "StringEncryption__DefaultPassPhrase" |
|||
value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}" |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
volumes: |
|||
- name: config-volume |
|||
configMap: |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }}-configmap |
|||
@ -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.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 |
|||
@ -1,37 +1,35 @@ |
|||
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" |
|||
config: |
|||
selfUrl: # https://eshop-st-gateway-web |
|||
corsOrigins: # localhost:4200 |
|||
globalConfigurationBaseUrl: # http://eshop-st-gateway-web |
|||
authServer: |
|||
authority: http://eshop-st-authserver |
|||
requireHttpsMetadata: "false" |
|||
dotnetEnv: # |
|||
redisHost: # |
|||
rabbitmqHost: # |
|||
elasticsearchHost: # |
|||
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 |
|||
reRoutes: |
|||
identityService: |
|||
schema: http |
|||
host: eshop-st-identity |
|||
port: 80 |
|||
administrationService: |
|||
schema: http |
|||
host: eshop-st-administration |
|||
port: 80 |
|||
saasService: |
|||
schema: # http |
|||
host: # eshop-st-saas |
|||
port: # 80 |
|||
ingress: |
|||
host: # eshop-st-gateway-web |
|||
tlsSecret: eshop-demo-tls |
|||
|
|||
image: |
|||
repository: eshoponabp/gateway-web |
|||
tag: latest |
|||
pullPolicy: IfNotPresent |
|||
|
|||
env: {} |
|||
@ -0,0 +1,67 @@ |
|||
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.image.repository }}:{{ .Values.image.tag }} |
|||
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
env: |
|||
- name: App__SelfUrl |
|||
value: "{{ .Values.config.selfUrl }}" |
|||
- name: App__CorsOrigins |
|||
value: "{{ .Values.config.corsOrigins }}" |
|||
- name: "ConnectionStrings__IdentityService" |
|||
value: {{ .Values.config.connectionStrings.identityService }} |
|||
- name: "ConnectionStrings__AdministrationService" |
|||
value: {{ .Values.config.connectionStrings.administrationService }} |
|||
- name: "ConnectionStrings__SaasService" |
|||
value: {{ .Values.config.connectionStrings.saasService }} |
|||
- name: "DOTNET_ENVIRONMENT" |
|||
value: "{{ .Values.config.dotnetEnv }}" |
|||
- name: "Redis__Configuration" |
|||
value: "{{ .Values.config.redisHost }}" |
|||
- name: "RabbitMQ__Connections__Default__HostName" |
|||
value: "{{ .Values.config.rabbitmqHost }}" |
|||
- name: "ElasticSearch__Url" |
|||
value: "{{ .Values.config.elasticsearchHost }}" |
|||
- name: "AuthServer__Authority" |
|||
value: "{{ .Values.config.authServer.authority }}" |
|||
- name: "AuthServer__RequireHttpsMetadata" |
|||
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" |
|||
- name: "StringEncryption__DefaultPassPhrase" |
|||
value: "{{ .Values.config.stringEncryptionDefaultPassPhrase }}" |
|||
- name: "IdentityServerClients__Web__RootUrl" |
|||
value: {{ .Values.identityServerClients.webRootUrl }} |
|||
- name: "IdentityServerClients__PublicWeb__RootUrl" |
|||
value: {{ .Values.identityServerClients.publicWebRootUrl }} |
|||
- name: "IdentityServerClients__IdentityService__RootUrl" |
|||
value: {{ .Values.identityServerClients.identityServiceRootUrl }} |
|||
- name: "IdentityServerClients__SaasService__RootUrl" |
|||
value: {{ .Values.identityServerClients.saasServiceRootUrl }} |
|||
- name: "IdentityServerClients__AdministrationService__RootUrl" |
|||
value: {{ .Values.identityServerClients.administrationServiceRootUrl }} |
|||
- name: "IdentityServerClients__InternalGateway__RootUrl" |
|||
value: {{ .Values.identityServerClients.webRootUrl }} |
|||
- name: "IdentityServerClients__PublicWebGateway__RootUrl" |
|||
value: {{ .Values.identityServerClients.publicWebRootUrl }} |
|||
- name: "IdentityServerClients__WebGateway__RootUrl" |
|||
value: {{ .Values.identityServerClients.webGatewayRootUrl }} |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
|
|||
@ -1,33 +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.identityService.containerImage }}:{{ .Values.global.eshoponabpImageVersion }} |
|||
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
env: |
|||
{{ include "eshoponabp.global.env" . | indent 8 }} |
|||
- name: "ConnectionStrings__IdentityService" |
|||
value: {{ .Values.global.identityService.connString }} |
|||
- name: "ConnectionStrings__AdministrationService" |
|||
value: {{ .Values.global.administrationService.connString }} |
|||
- name: "ConnectionStrings__SaasService" |
|||
value: {{ .Values.global.saasService.connString }} |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
@ -1,22 +1,37 @@ |
|||
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/" |
|||
config: |
|||
selfUrl: # https://eshop-st-identity |
|||
corsOrigins: # https://eshop-st-gateway-web,https://eshop-st-gateway-public-web,https://eshop-st-gateway-internal |
|||
connectionStrings: |
|||
identityService: # |
|||
administrationService: # |
|||
saasService: # |
|||
authServer: |
|||
authority: http://eshop-st-authserver |
|||
requireHttpsMetadata: "false" |
|||
dotnetEnv: Staging |
|||
redisHost: es-st-redis |
|||
rabbitmqHost: es-st-rabbitmq |
|||
elasticsearchHost: es-st-elasticsearch |
|||
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 |
|||
|
|||
# Seeded clients |
|||
identityServerClients: |
|||
webRootUrl: # |
|||
publicWebRootUrl: # |
|||
webGatewayRootUrl: # |
|||
publicWebGatewayRootUrl: # |
|||
identityServiceRootUrl: # |
|||
administrationServiceRootUrl: # |
|||
saasServiceRootUrl: # |
|||
|
|||
ingress: |
|||
host: eshop-st-identity |
|||
tlsSecret: eshop-demo-tls |
|||
|
|||
image: |
|||
repository: eshoponabp/service-identity |
|||
tag: latest |
|||
pullPolicy: IfNotPresent |
|||
|
|||
env: {} |
|||
|
|||
@ -0,0 +1,44 @@ |
|||
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.image.repository }}:{{ .Values.image.tag }} |
|||
imagePullPolicy: {{ .Values.image.pullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
env: |
|||
- name: App__SelfUrl |
|||
value: {{ .Values.config.selfUrl}} |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: {{ .Values.config.gatewayUrl}} |
|||
- name: "AuthServer__Authority" |
|||
value: {{ .Values.config.authServer.authority }} |
|||
- name: "AuthServer__RequireHttpsMetadata" |
|||
value: "{{ .Values.config.authServer.requireHttpsMetadata }}" |
|||
- name: "DOTNET_ENVIRONMENT" |
|||
value: {{ .Values.config.dotnetEnv }} |
|||
- name: "Redis__Configuration" |
|||
value: {{ .Values.config.redisHost }} |
|||
- name: "StringEncryption__DefaultPassPhrase" |
|||
value: {{ .Values.config.stringEncryptionDefaultPassPhrase }} |
|||
- name: "RabbitMQ__Connections__Default__HostName" |
|||
value: {{ .Values.config.rabbitmqHost }} |
|||
- name: "ElasticSearch__Url" |
|||
value: {{ .Values.config.elasticsearchHost }} |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
@ -1,31 +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.publicWeb.containerImage }}:{{ .Values.global.eshoponabpImageVersion }} |
|||
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|||
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|||
ports: |
|||
- name: http |
|||
containerPort: 80 |
|||
- name: https |
|||
containerPort: 443 |
|||
env: |
|||
- name: App__SelfUrl |
|||
value: {{ .Values.config.selfUrl}} |
|||
- name: RemoteServices__Default__BaseUrl |
|||
value: {{ .Values.config.gatewayUrl}} |
|||
{{ include "eshoponabp.global.env" . | indent 8 }} |
|||
{{- if .Values.env }} |
|||
{{ toYaml .Values.env | indent 8 }} |
|||
{{- end }} |
|||
@ -1,3 +1,22 @@ |
|||
config: |
|||
selfUrl: "https://eshop-st-public-web" |
|||
gatewayUrl: "http://eshop-st-gateway-public-web/" |
|||
selfUrl: https://eshop-st-public-web |
|||
gatewayUrl: "http://eshop-st-gateway-web-public/" |
|||
authServer: |
|||
authority: http://eshop-st-authserver |
|||
requireHttpsMetadata: "false" |
|||
dotnetEnv: Staging |
|||
redisHost: es-st-redis |
|||
rabbitmqHost: es-st-rabbitmq |
|||
elasticsearchHost: es-st-elasticsearch |
|||
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 |
|||
|
|||
ingress: |
|||
host: # eshop-st-public-web |
|||
tlsSecret: eshop-demo-tls |
|||
|
|||
image: |
|||
repository: eshoponabp/app-publicweb |
|||
tag: latest |
|||
pullPolicy: IfNotPresent |
|||
|
|||
env: {} |
|||
|
|||
@ -1,6 +1,25 @@ |
|||
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" |
|||
|
|||
config: |
|||
selfUrl: https://eshop-st-saas |
|||
corsOrigins: https://eshop-st-gateway-web,https://eshop-st-gateway-public-web,https://eshop-st-gateway-internal |
|||
connectionStrings: |
|||
administrationService: "Server=es-st-sqldb,1433;Database=EShopOnAbp_Administration;User Id=sa;password=myPassw@rd;MultipleActiveResultSets=true" |
|||
saasService: "Server=es-st-sqldb,1433;Database=EShopOnAbp_Saas;User Id=sa;password=myPassw@rd;MultipleActiveResultSets=true" |
|||
authServer: |
|||
authority: http://eshop-st-authserver |
|||
requireHttpsMetadata: "false" |
|||
dotnetEnv: Staging |
|||
redisHost: es-st-redis |
|||
rabbitmqHost: es-st-rabbitmq |
|||
elasticsearchHost: es-st-elasticsearch |
|||
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 |
|||
|
|||
ingress: |
|||
host: eshop-st-saas |
|||
tlsSecret: eshop-demo-tls |
|||
|
|||
image: |
|||
repository: eshoponabp/service-saas |
|||
tag: latest |
|||
pullPolicy: IfNotPresent |
|||
|
|||
env: {} |
|||
@ -1,3 +1,15 @@ |
|||
env: |
|||
- name: "BASE_URL" |
|||
value: "https://eshop-st-web" |
|||
config: |
|||
selfUrl: https://eshop-st-web |
|||
gatewayUrl: "https://eshop-st-gateway-web/" |
|||
|
|||
ingress: |
|||
host: eshop-st-web |
|||
tlsSecret: eshop-demo-tls |
|||
|
|||
image: |
|||
repository: eshoponabp/app-web |
|||
tag: latest |
|||
pullPolicy: IfNotPresent |
|||
|
|||
# Extra environment variables or configurations |
|||
env: {} |
|||
|
|||
@ -1,36 +0,0 @@ |
|||
### Pre-requirements |
|||
|
|||
* Docker Desktop with Kubernetes enabled |
|||
* Install [NGINX ingress](https://kubernetes.github.io/ingress-nginx/deploy/) for k8s |
|||
OR |
|||
* Install NGINX ingress using helm |
|||
```powershell |
|||
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx |
|||
helm repo update |
|||
|
|||
helm install ingress-nginx ingress-nginx/ingress-nginx |
|||
``` |
|||
* Install [Helm](https://helm.sh/docs/intro/install/) for running helm charts |
|||
|
|||
|
|||
### How to run? |
|||
|
|||
* Add entries to the hosts file (in Windows: `C:\Windows\System32\drivers\etc\hosts`): |
|||
|
|||
````powershell |
|||
127.0.0.1 eshop-st-web |
|||
127.0.0.1 eshop-st-public-web |
|||
127.0.0.1 eshop-st-authserver |
|||
127.0.0.1 eshop-st-identity |
|||
127.0.0.1 eshop-st-administration |
|||
127.0.0.1 eshop-st-saas |
|||
127.0.0.1 eshop-st-gateway-web |
|||
127.0.0.1 eshop-st-gateway-public-web |
|||
127.0.0.1 eshop-st-gateway-internal |
|||
```` |
|||
|
|||
* Run `build-images.ps1` in the `scripts` directory. |
|||
* Run `deploy-staging.ps1` in the `helm-chart` directory. It is deployed with the `eventhub` namespace. |
|||
* *You may wait ~30 seconds on first run for preparing the database*. |
|||
* Browse https://eshoponabp-public-web and https://eshoponabp-authserver |
|||
* Username: `admin`, password: `1q2w3E*`. |
|||
Loading…
Reference in new issue