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: |
|||
- 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 |
|||
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: {} |
|||
Loading…
Reference in new issue