Browse Source

updated public-web chart and removed test-connection

pull/21/head
Galip Tolga Erdem 5 years ago
parent
commit
e21b266dbb
  1. 4
      etc/k8s/eshoponabp/charts/public-web/templates/public-web.yaml
  2. 9
      etc/k8s/eshoponabp/charts/public-web/values.yaml
  3. 15
      etc/k8s/eshoponabp/templates/tests/test-connection.yaml

4
etc/k8s/eshoponabp/charts/public-web/templates/public-web.yaml

@ -21,6 +21,10 @@ spec:
- 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 }}

9
etc/k8s/eshoponabp/charts/public-web/values.yaml

@ -1,6 +1,3 @@
env:
- name: "App__SelfUrl"
value: "https://eshop-st-public-web"
- name: "RemoteServices__Default__BaseUrl"
value: "http://eshop-st-gateway-public-web/"
config:
selfUrl: "https://eshop-st-public-web"
gatewayUrl: "http://eshop-st-gateway-public-web/"

15
etc/k8s/eshoponabp/templates/tests/test-connection.yaml

@ -1,15 +0,0 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "eshoponabp.fullname" . }}-test-connection"
labels:
{{- include "eshoponabp.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "eshoponabp.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
Loading…
Cancel
Save