Skip to content

Commit

Permalink
Added static clusterIP to Helm chart
Browse files Browse the repository at this point in the history
Fixed typo in README
  • Loading branch information
Crewat committed Aug 9, 2022
1 parent d6be91d commit 3d3ef04
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions charts/k8s-gateway/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ The following table lists the configurable parameters of the k8s_gateway chart a
| `serviceAccount.annotations` | ServiceAccount annotations | |
| `service.port` | Service port to expose | `53` |
| `service.type` | The type of service to create (`LoadBalancer`, `NodePort`) | `LoadBalancer` |
| `service.nodePort` | Node port when service type is `NodePort`. Randomly chonsen by Kubernetes if not provided | |
| `service.nodePort` | Node port when service type is `NodePort`. Randomly chosen by Kubernetes if not provided | |
| `service.loadBalancerIP` | The IP address to use when using serviceType `LoadBalancer` | |
| `service.clusterIP` | The IP address to use when using serviceType `ClusterIP`. Randomly chosen by Kubernetes if not provided | |
| `replicaCount` | Number of replicas | `1` |
| `zoneFile` | Inject a custom zone file | `{}` |
| `zoneFile` | Inject a custom zone file | `{}` |
3 changes: 3 additions & 0 deletions charts/k8s-gateway/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
{{- if and .Values.service.loadBalancerIP (eq .Values.service.type "LoadBalancer") }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if and .Values.service.clusterIP (eq .Values.service.type "ClusterIP") }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
protocol: UDP
Expand Down
1 change: 1 addition & 0 deletions charts/k8s-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ service:
annotations: {}
# nodePort: 30053
# loadBalancerIP: 192.168.1.2
# clusterIP: 10.43.0.53
# externalTrafficPolicy: Local
# externalIPs:
# - 192.168.1.3
Expand Down

0 comments on commit 3d3ef04

Please sign in to comment.