Skip to content

Commit

Permalink
Merge pull request #169 from dplookup/cluster_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-gouin authored Jun 18, 2024
2 parents 78f801c + d411fbf commit 7e6e020
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ Parameters related to Kubernetes.
| `service.enableLdapPort` | Enable LDAP port on the service and headless service | `true` |
| `service.enableSslLdapPort` | Enable SSL LDAP port on the service and headless service | `true` |
| `service.ldapPortNodePort` | Nodeport of External service port for LDAP if service.type is NodePort | `nil` |
| `service.clusterIP` | Static cluster IP to assign to the service (if supported) | `nil` |
| `service.loadBalancerIP` | IP address to assign to load balancer (if supported) | `""` |
| `service.loadBalancerSourceRanges` | List of IP CIDRs allowed access to load balancer (if supported) | `[]` |
| `service.sslLdapPortNodePort` | Nodeport of External service port for SSL if service.type is NodePort | `nil` |
Expand Down
3 changes: 3 additions & 0 deletions templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
{{- if and (eq .Values.service.type "LoadBalancer") .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges: {{ toYaml .Values.service.loadBalancerSourceRanges | nindent 4 }}
{{- end }}
{{- if and (eq .Values.service.type "ClusterIP") .Values.service.clusterIP }}
clusterIP: {{ .Values.service.clusterIP }}
{{- end }}
ports:
{{- if .Values.service.enableLdapPort }}
- name: ldap-port
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ service:
##
externalIPs: []

## Define a static clusterIP
#clusterIP:
#loadBalancerIP:
#loadBalancerSourceRanges: []
type: ClusterIP
Expand Down

0 comments on commit 7e6e020

Please sign in to comment.