From f59089a9adaa3b320bc7ae02c964b3308a78471e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kr=C3=B3likowski?= Date: Sun, 23 Jul 2023 17:09:40 +0200 Subject: [PATCH 1/6] set protocol family dynamicaly --- chart/templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index 76d46f4..198e7bb 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -15,7 +15,7 @@ spec: {{- end }} ports: - name: {{ .name }} - protocol: TCP + protocol: {{ .protocol }} port: {{ .servicePort }} targetPort: {{ .targetPort }} selector: From e82a676b839c7def95782d08ba5656e75fdae73a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kr=C3=B3likowski?= Date: Sun, 23 Jul 2023 19:13:12 +0200 Subject: [PATCH 2/6] pass original ips to services --- chart/templates/service.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index 198e7bb..96516d5 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -8,6 +8,7 @@ metadata: name: {{ $.Release.Name }}-{{ .name }}-svc namespace: default spec: + externalTrafficPolicy: Local {{- if eq .name "http" }} type: ClusterIP {{- else }} From 62c7dd9b3ae2240f80fb1711398634951e45136c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kr=C3=B3likowski?= Date: Sun, 23 Jul 2023 19:42:56 +0200 Subject: [PATCH 3/6] possibly HA problems --- chart/templates/service.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index 96516d5..198e7bb 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -8,7 +8,6 @@ metadata: name: {{ $.Release.Name }}-{{ .name }}-svc namespace: default spec: - externalTrafficPolicy: Local {{- if eq .name "http" }} type: ClusterIP {{- else }} From 965d6e73299935cfe7ccea7bff72153c760bc7a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kr=C3=B3likowski?= Date: Sun, 23 Jul 2023 20:05:54 +0200 Subject: [PATCH 4/6] up --- chart/templates/service.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index 198e7bb..40011a2 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -11,6 +11,7 @@ spec: {{- if eq .name "http" }} type: ClusterIP {{- else }} + externalTrafficPolicy: Local type: LoadBalancer {{- end }} ports: From 314a1deabb1811293e8814eaf5dd2cfd3180c362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kr=C3=B3likowski?= Date: Sun, 23 Jul 2023 20:17:44 +0200 Subject: [PATCH 5/6] revert last change --- chart/templates/service.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index 40011a2..198e7bb 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -11,7 +11,6 @@ spec: {{- if eq .name "http" }} type: ClusterIP {{- else }} - externalTrafficPolicy: Local type: LoadBalancer {{- end }} ports: From 57c56cdbf7905fc608f528e0f873b2134b932569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kr=C3=B3likowski?= Date: Thu, 27 Jul 2023 21:30:02 +0200 Subject: [PATCH 6/6] new version release --- CHANGELOG.md | 5 +++++ chart/Chart.yaml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 83baae2..68e68d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## [2.1.0] - 2023-07-27 +### Added +- replaced strict TCP protocol family in ports specification with variable: protocol which allows to decide which protocol is needed + + ## [2.0.0] - 2023-07-21 ### Added - ability to use nodeSelector function diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 3944703..d1b39f1 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 2.0.0 +version: 2.1.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using.