Skip to content

Commit

Permalink
Merge pull request #35 from T-Systems-MMS/adjust_service_definitions
Browse files Browse the repository at this point in the history
Adjust service definitions for Typo3 and Wordpress
  • Loading branch information
michaelamattes authored Jul 28, 2022
2 parents a259bbf + 1903c4f commit 9876d9c
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion typo3/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
apiVersion: v1
name: typo3
description: Typo3 Configuration
version: 0.1.2
version: 0.2.0
3 changes: 2 additions & 1 deletion typo3/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
app: {{ .Values.name }}
ports:
{{- range $port := .Values.service.ports }}
- protocol: {{ $port.protocol }}
- name: {{ $port.name }}
protocol: {{ $port.protocol }}
port: {{ $port.port }}
targetPort: {{ default $port.port $port.targetPort }}
{{- end }}
3 changes: 2 additions & 1 deletion typo3/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ namespace: default
replicas: 1
service:
ports:
- protocol: TCP
- name: "http"
protocol: TCP
port: 80
deployment:
containers:
Expand Down
2 changes: 1 addition & 1 deletion wordpress/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
apiVersion: v1
name: wordpress
description: WordPress Configuration
version: 0.1.4
version: 0.2.0
3 changes: 2 additions & 1 deletion wordpress/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
app: {{ .Values.name }}
ports:
{{- range $port := .Values.service.ports }}
- protocol: {{ $port.protocol }}
- name: {{ $port.name }}
protocol: {{ $port.protocol }}
port: {{ $port.port }}
targetPort: {{ default $port.port $port.targetPort }}
{{- end }}
3 changes: 2 additions & 1 deletion wordpress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ namespace: default
replicas: 1
service:
ports:
- protocol: TCP
- name: "http"
protocol: TCP
port: 80
deployment:
containers:
Expand Down

0 comments on commit 9876d9c

Please sign in to comment.