Skip to content

Commit

Permalink
Service external traffic policy (#43)
Browse files Browse the repository at this point in the history
* add service.externalTrafficPolicy configuration

Signed-off-by: Mike Mason <mimason@equinix.com>

* Release v0.1.9

Signed-off-by: Mike Mason <mimason@equinix.com>

---------

Signed-off-by: Mike Mason <mimason@equinix.com>
  • Loading branch information
mikemrm authored Feb 7, 2023
1 parent 6f33f32 commit b344d6f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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 |
Expand Down
3 changes: 3 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 4 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,10 @@
"service": {
"type": "object",
"properties": {
"externalTrafficPolicy": {
"type": "string",
"enum": ["Cluster", "Local", ""]
},
"annotations": {
"type": "object"
},
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b344d6f

Please sign in to comment.