Browse Source
Merge pull request #15 from gokhansengun/k8s-refactor
Update consul config
enisn/payment-service-with-mock
Galip Tolga Erdem
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
16 additions and
6 deletions
-
etc/k8s/deploy-staging.ps1
-
etc/k8s/eshoponabp/charts/administration/templates/administration.yaml
-
etc/k8s/eshoponabp/charts/identity/templates/identity.yaml
-
etc/k8s/eshoponabp/charts/saas/templates/saas.yaml
-
etc/k8s/eshoponabp/templates/_helpers.tpl
-
etc/k8s/eshoponabp/values.yaml
|
|
@ -1,3 +1,3 @@ |
|
|
param ($version='latest') |
|
|
param ($version='latest') |
|
|
|
|
|
|
|
|
helm upgrade --install eshoponabp eshoponabp --namespace eshop --create-namespace --set global.eventHubImageVersion=$version |
|
|
helm upgrade --install eshoponabp eshoponabp --namespace eshop --create-namespace --set global.eshoponabpImageVersion=$version |
|
|
@ -12,7 +12,7 @@ spec: |
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
spec: |
|
|
spec: |
|
|
containers: |
|
|
containers: |
|
|
- image: {{ .Values.global.administrationService.containerImage }}:{{ .Values.global.eventHubImageVersion }} |
|
|
- image: {{ .Values.global.administrationService.containerImage }}:{{ .Values.global.eshoponabpImageVersion }} |
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
ports: |
|
|
ports: |
|
|
@ -26,4 +26,6 @@ spec: |
|
|
value: {{ .Values.global.administrationService.connString }} |
|
|
value: {{ .Values.global.administrationService.connString }} |
|
|
- name: "ConnectionStrings__SaasService" |
|
|
- name: "ConnectionStrings__SaasService" |
|
|
value: {{ .Values.global.saasService.connString }} |
|
|
value: {{ .Values.global.saasService.connString }} |
|
|
|
|
|
{{- if .Values.env }} |
|
|
|
|
|
{{ toYaml .Values.env | indent 8 }} |
|
|
|
|
|
{{- end }} |
|
|
|
|
|
@ -12,7 +12,7 @@ spec: |
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
spec: |
|
|
spec: |
|
|
containers: |
|
|
containers: |
|
|
- image: {{ .Values.global.identityService.containerImage }}:{{ .Values.global.eventHubImageVersion }} |
|
|
- image: {{ .Values.global.identityService.containerImage }}:{{ .Values.global.eshoponabpImageVersion }} |
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
ports: |
|
|
ports: |
|
|
|
|
|
@ -12,7 +12,7 @@ spec: |
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
app: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
spec: |
|
|
spec: |
|
|
containers: |
|
|
containers: |
|
|
- image: {{ .Values.global.saasService.containerImage }}:{{ .Values.global.eventHubImageVersion }} |
|
|
- image: {{ .Values.global.saasService.containerImage }}:{{ .Values.global.eshoponabpImageVersion }} |
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|
|
imagePullPolicy: {{ .Values.global.imagePullPolicy }} |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }} |
|
|
ports: |
|
|
ports: |
|
|
|
|
|
@ -75,5 +75,7 @@ Create the name of the service account to use |
|
|
- name: "StringEncryption__DefaultPassPhrase" |
|
|
- name: "StringEncryption__DefaultPassPhrase" |
|
|
value: "{{ .Values.global.stringEncryptionDefaultPassPhrase }}" |
|
|
value: "{{ .Values.global.stringEncryptionDefaultPassPhrase }}" |
|
|
- name: "RabbitMQ__Connections__Default__HostName" |
|
|
- name: "RabbitMQ__Connections__Default__HostName" |
|
|
value: "{{ .Values.global.rabbitMqHostName }}" |
|
|
value: "{{ .Values.global.rabbitMqHostName }}" |
|
|
|
|
|
- name: "Consul__Host" |
|
|
|
|
|
value: "{{ .Values.global.consulHostname }}" |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
|
|
|
@ -10,6 +10,11 @@ image: |
|
|
# Overrides the image tag whose default is the chart appVersion. |
|
|
# Overrides the image tag whose default is the chart appVersion. |
|
|
tag: "" |
|
|
tag: "" |
|
|
|
|
|
|
|
|
|
|
|
administration: |
|
|
|
|
|
env: |
|
|
|
|
|
# - name: "ADMIN_SPECIFIC_ENV_NAME" |
|
|
|
|
|
# value: "ADMIN_SPECIFIC_ENV_VALUE" |
|
|
|
|
|
|
|
|
imagePullSecrets: [] |
|
|
imagePullSecrets: [] |
|
|
nameOverride: "" |
|
|
nameOverride: "" |
|
|
fullnameOverride: "" |
|
|
fullnameOverride: "" |
|
|
@ -115,6 +120,7 @@ global: |
|
|
containerImage: "eshoponabp/gateway-publicweb" |
|
|
containerImage: "eshoponabp/gateway-publicweb" |
|
|
redisConfiguration: "eshoponabp-redis" |
|
|
redisConfiguration: "eshoponabp-redis" |
|
|
rabbitMqHostName: "eshoponabp-rabbitmq" |
|
|
rabbitMqHostName: "eshoponabp-rabbitmq" |
|
|
|
|
|
consulHostname: "http://eshoponabp-consul" |
|
|
nginxProxyBufferSize: "32k" |
|
|
nginxProxyBufferSize: "32k" |
|
|
nginxProxyBuffersNumber: "8" |
|
|
nginxProxyBuffersNumber: "8" |
|
|
internalAuthServerAuthority: "http://eshoponabp-authserver" |
|
|
internalAuthServerAuthority: "http://eshoponabp-authserver" |
|
|
|