Skip to content

Commit 9876d9c

Browse files
authored
Merge pull request #35 from T-Systems-MMS/adjust_service_definitions
Adjust service definitions for Typo3 and Wordpress
2 parents a259bbf + 1903c4f commit 9876d9c

6 files changed

Lines changed: 10 additions & 6 deletions

File tree

typo3/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: v1
33
name: typo3
44
description: Typo3 Configuration
5-
version: 0.1.2
5+
version: 0.2.0

typo3/templates/service.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ spec:
1313
app: {{ .Values.name }}
1414
ports:
1515
{{- range $port := .Values.service.ports }}
16-
- protocol: {{ $port.protocol }}
16+
- name: {{ $port.name }}
17+
protocol: {{ $port.protocol }}
1718
port: {{ $port.port }}
1819
targetPort: {{ default $port.port $port.targetPort }}
1920
{{- end }}

typo3/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ namespace: default
33
replicas: 1
44
service:
55
ports:
6-
- protocol: TCP
6+
- name: "http"
7+
protocol: TCP
78
port: 80
89
deployment:
910
containers:

wordpress/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
apiVersion: v1
33
name: wordpress
44
description: WordPress Configuration
5-
version: 0.1.4
5+
version: 0.2.0

wordpress/templates/service.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ spec:
1313
app: {{ .Values.name }}
1414
ports:
1515
{{- range $port := .Values.service.ports }}
16-
- protocol: {{ $port.protocol }}
16+
- name: {{ $port.name }}
17+
protocol: {{ $port.protocol }}
1718
port: {{ $port.port }}
1819
targetPort: {{ default $port.port $port.targetPort }}
1920
{{- end }}

wordpress/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ namespace: default
33
replicas: 1
44
service:
55
ports:
6-
- protocol: TCP
6+
- name: "http"
7+
protocol: TCP
78
port: 80
89
deployment:
910
containers:

0 commit comments

Comments
 (0)