Commit 04598b35 authored by Taylor Daugherty's avatar Taylor Daugherty

Add loadBalancerIP and loadBalancerSourceRanges to gitlab-shell chart

parent 4ac59b8c
---
title: Add loadBalancerIP and loadBalancerSourceRanges to gitlab-shell chart
merge_request: 889
author: Taylor Daugherty
type: added
......@@ -15,6 +15,15 @@ spec:
targetPort: {{ .Values.service.internalPort }}
protocol: TCP
name: ssh
{{- if .Values.service.loadBalancerIP }}
loadBalancerIP: {{ .Values.service.loadBalancerIP }}
{{- end }}
{{- if .Values.service.loadBalancerSourceRanges }}
loadBalancerSourceRanges:
{{- range $cidr := .Values.service.loadBalancerSourceRanges }}
- {{ $cidr }}
{{- end }}
{{- end }}
{{- if .Values.service.externalIPs }}
externalIPs:
{{ toYaml .Values.service.externalIPs | indent 4 }}
......
......@@ -11,7 +11,10 @@ service:
type: ClusterIP
externalPort: 22
internalPort: 2222
#externalIPs:
# loadBalancerIP: x.x.x.x
# loadBalancerSourceRanges:
# - x.x.x.x/yy
# externalIPs:
# - x.x.x.x
# - y.y.y.y
......
......@@ -42,7 +42,10 @@ with `global.shell.port`, and defaults to `22`.
| `replicaCount` | `1` | Shell replicas |
| `service.externalPort` | `22` | Shell exposed port |
| `service.internalPort` | `22` | Shell internal port |
| `service.name` | `gitlab-shell` | Shell service name |
| `service.name` | `gitlab-shell` | Shell service name |
| `service.type` | `ClusterIP` | Shell service type |
| `service.loadBalancerIP` | | IP address to assign to LoadBalancer (if supported) |
| `service.loadBalancerSourceRanges` | | List of IP CIDRs allowed access to LoadBalancer (if supported) |
| `service.type` | `ClusterIP` | Shell service type |
| `tolerations` | `[]` | Toleration labels for pod assignment |
| `unicorn.serviceName` | `unicorn` | Unicorn service name |
......@@ -160,3 +163,23 @@ authToken:
|:-----------------|:-------:|:--------|:------------|
| authToken.key | String | | The name of the key in the above secret that contains the authToken. |
| authToken.secret | String | | The name of the kubernetes `Secret` to pull from. |
### LoadBalancer Service
If the `service.type` is set to `LoadBalancer`, you can optionally specify `service.loadBalancerIP` to create
the `LoadBalancer` with a user-specified IP (if your cloud provider supports it).
You can also optionally specify a list of `service.loadBalancerSourceRanges` to restrict
the CIDR ranges that can access the `LoadBalancer` (if your cloud provider supports it).
Additional information about the `LoadBalancer` service type can be found in
[the Kubernetes documentation](https://kubernetes.io/docs/concepts/services-networking/#loadbalancer)
```YAML
service:
type: LoadBalancer
loadBalancerIP: 1.2.3.4
loadBalancerSourceRanges:
- 5.6.7.8/32
- 10.0.0.0/8
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment