diff --git a/Chart.yaml b/Chart.yaml index c55f09d..23f857c 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -6,5 +6,5 @@ description: |- and maintained by your friends at Equinix Metal type: application -version: 0.1.8 +version: 0.1.9 appVersion: "0.1.0" diff --git a/README.md b/README.md index 94f2aec..f4cbf7e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Krakend -![Version: 0.1.8](https://img.shields.io/badge/Version-0.1.8-informational?style=for-the-badge) +![Version: 0.1.9](https://img.shields.io/badge/Version-0.1.9-informational?style=for-the-badge) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=for-the-badge) ![AppVersion: 0.1.0](https://img.shields.io/badge/AppVersion-0.1.0-informational?style=for-the-badge) @@ -65,8 +65,9 @@ please refer to [the official krakend documentation](https://www.krakend.io/docs | replicaCount | int | `1` | Number of replicas to deploy | | resources | object | `{}` | The resources to use for the krakend pod | | securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"add":["NET_BIND_SERVICE"],"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000}` | The securityContext to use for the krakend container | -| service | object | `{"annotations":{},"port":80,"targetPort":8080,"type":"ClusterIP"}` | The service settings to use for the krakend service | +| service | object | `{"annotations":{},"externalTrafficPolicy":"","port":80,"targetPort":8080,"type":"ClusterIP"}` | The service settings to use for the krakend service | | service.annotations | object | `{}` | The annotations to use for the service | +| service.externalTrafficPolicy | string | `""` | The External Traffic Policy of the service | | service.port | int | `80` | The port to use for the service | | service.targetPort | int | `8080` | The target port to use for the service | | service.type | string | `"ClusterIP"` | The type of service to use | diff --git a/templates/service.yaml b/templates/service.yaml index a792159..9fcda9b 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -11,6 +11,9 @@ metadata: {{- end }} {{- end }} spec: + {{- if .Values.service.externalTrafficPolicy }} + externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }} + {{- end }} type: {{ .Values.service.type }} ports: - port: {{ .Values.service.port }} diff --git a/values.schema.json b/values.schema.json index 13098b1..e30c37d 100644 --- a/values.schema.json +++ b/values.schema.json @@ -377,6 +377,10 @@ "service": { "type": "object", "properties": { + "externalTrafficPolicy": { + "type": "string", + "enum": ["Cluster", "Local", ""] + }, "annotations": { "type": "object" }, diff --git a/values.yaml b/values.yaml index 198dee6..55dbfb9 100644 --- a/values.yaml +++ b/values.yaml @@ -144,6 +144,8 @@ securityContext: # -- (object) The service settings to use for the krakend service service: + # -- (string) The External Traffic Policy of the service + externalTrafficPolicy: "" # -- (string) The type of service to use type: ClusterIP # -- (int) The port to use for the service