6 changed files with 147 additions and 102 deletions
@ -0,0 +1,51 @@ |
|||||
|
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 |
||||
|
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 |
||||
@ -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,34 @@ |
|||||
env: |
config: |
||||
- name: "App__SelfUrl" |
selfUrl: # https://eshop-st-gateway-web |
||||
value: "https://eshop-st-gateway-web" |
globalConfigurationBaseUrl: # http://eshop-st-gateway-web |
||||
- name: "App__CorsOrigins" |
authServer: |
||||
value: "https://eshop-st-web" |
authority: http://eshop-st-authserver |
||||
- name: "GlobalConfiguration__BaseUrl" |
requireHttpsMetadata: "false" |
||||
value: "http://eshop-st-gateway-web" |
dotnetEnv: # |
||||
- name: "Routes__0__DownstreamScheme" |
redisHost: # |
||||
value: "http" |
rabbitmqHost: # |
||||
- name: "Routes__0__DownstreamHostAndPorts__0__Host" |
elasticsearchHost: # |
||||
value: "eshop-st-identity" |
stringEncryptionDefaultPassPhrase: gsKnGZ041HLL4IM8 |
||||
- name: "Routes__0__DownstreamHostAndPorts__0__Port" |
reRoutes: |
||||
value: "80" |
identityService: |
||||
- name: "Routes__1__DownstreamScheme" |
schema: http |
||||
value: "http" |
host: eshop-st-identity |
||||
- name: "Routes__1__DownstreamHostAndPorts__0__Host" |
port: 80 |
||||
value: "eshop-st-identity" |
administrationService: |
||||
- name: "Routes__1__DownstreamHostAndPorts__0__Port" |
schema: http |
||||
value: "80" |
host: eshop-st-administration |
||||
- name: "Routes__2__DownstreamScheme" |
port: 80 |
||||
value: "http" |
saasService: |
||||
- name: "Routes__2__DownstreamHostAndPorts__0__Host" |
schema: # http |
||||
value: "eshop-st-saas" |
host: # eshop-st-saas |
||||
- name: "Routes__2__DownstreamHostAndPorts__0__Port" |
port: # 80 |
||||
value: "80" |
ingress: |
||||
- name: "Routes__3__DownstreamScheme" |
host: # eshop-st-gateway-web |
||||
value: "http" |
tlsSecret: eshop-demo-tls |
||||
- name: "Routes__3__DownstreamHostAndPorts__0__Host" |
|
||||
value: "eshop-st-administration" |
image: |
||||
- name: "Routes__3__DownstreamHostAndPorts__0__Port" |
repository: eshoponabp/gateway-web |
||||
value: "80" |
tag: latest |
||||
- name: "Routes__4__DownstreamScheme" |
pullPolicy: IfNotPresent |
||||
value: "http" |
|
||||
- name: "Routes__4__DownstreamHostAndPorts__0__Host" |
env: {} |
||||
value: "eshop-st-administration" |
|
||||
- name: "Routes__4__DownstreamHostAndPorts__0__Port" |
|
||||
value: "80" |
|
||||
Loading…
Reference in new issue