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
parent
commit
7c92c8a835
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      etc/k8s/deploy-staging.ps1
  2. 6
      etc/k8s/eshoponabp/charts/administration/templates/administration.yaml
  3. 2
      etc/k8s/eshoponabp/charts/identity/templates/identity.yaml
  4. 2
      etc/k8s/eshoponabp/charts/saas/templates/saas.yaml
  5. 4
      etc/k8s/eshoponabp/templates/_helpers.tpl
  6. 6
      etc/k8s/eshoponabp/values.yaml

2
etc/k8s/deploy-staging.ps1

@ -1,3 +1,3 @@
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

6
etc/k8s/eshoponabp/charts/administration/templates/administration.yaml

@ -12,7 +12,7 @@ spec:
app: {{ .Release.Name }}-{{ .Chart.Name }}
spec:
containers:
- image: {{ .Values.global.administrationService.containerImage }}:{{ .Values.global.eventHubImageVersion }}
- image: {{ .Values.global.administrationService.containerImage }}:{{ .Values.global.eshoponabpImageVersion }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
name: {{ .Release.Name }}-{{ .Chart.Name }}
ports:
@ -26,4 +26,6 @@ spec:
value: {{ .Values.global.administrationService.connString }}
- name: "ConnectionStrings__SaasService"
value: {{ .Values.global.saasService.connString }}
{{- if .Values.env }}
{{ toYaml .Values.env | indent 8 }}
{{- end }}

2
etc/k8s/eshoponabp/charts/identity/templates/identity.yaml

@ -12,7 +12,7 @@ spec:
app: {{ .Release.Name }}-{{ .Chart.Name }}
spec:
containers:
- image: {{ .Values.global.identityService.containerImage }}:{{ .Values.global.eventHubImageVersion }}
- image: {{ .Values.global.identityService.containerImage }}:{{ .Values.global.eshoponabpImageVersion }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
name: {{ .Release.Name }}-{{ .Chart.Name }}
ports:

2
etc/k8s/eshoponabp/charts/saas/templates/saas.yaml

@ -12,7 +12,7 @@ spec:
app: {{ .Release.Name }}-{{ .Chart.Name }}
spec:
containers:
- image: {{ .Values.global.saasService.containerImage }}:{{ .Values.global.eventHubImageVersion }}
- image: {{ .Values.global.saasService.containerImage }}:{{ .Values.global.eshoponabpImageVersion }}
imagePullPolicy: {{ .Values.global.imagePullPolicy }}
name: {{ .Release.Name }}-{{ .Chart.Name }}
ports:

4
etc/k8s/eshoponabp/templates/_helpers.tpl

@ -75,5 +75,7 @@ Create the name of the service account to use
- name: "StringEncryption__DefaultPassPhrase"
value: "{{ .Values.global.stringEncryptionDefaultPassPhrase }}"
- name: "RabbitMQ__Connections__Default__HostName"
value: "{{ .Values.global.rabbitMqHostName }}"
value: "{{ .Values.global.rabbitMqHostName }}"
- name: "Consul__Host"
value: "{{ .Values.global.consulHostname }}"
{{- end }}

6
etc/k8s/eshoponabp/values.yaml

@ -10,6 +10,11 @@ image:
# Overrides the image tag whose default is the chart appVersion.
tag: ""
administration:
env:
# - name: "ADMIN_SPECIFIC_ENV_NAME"
# value: "ADMIN_SPECIFIC_ENV_VALUE"
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
@ -115,6 +120,7 @@ global:
containerImage: "eshoponabp/gateway-publicweb"
redisConfiguration: "eshoponabp-redis"
rabbitMqHostName: "eshoponabp-rabbitmq"
consulHostname: "http://eshoponabp-consul"
nginxProxyBufferSize: "32k"
nginxProxyBuffersNumber: "8"
internalAuthServerAuthority: "http://eshoponabp-authserver"

Loading…
Cancel
Save