mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-07-04 23:34:12 +02:00
Allow configuration of ipFamilyPolicy and ipFamilies (#313)
To enable access to e.g. the SSH port by IPv6, the selection of ipFamilyPolicy and ipFamilies service attributes is necessary. Enable the possibility to configure these by helm values. Co-authored-by: Sven Fischer <sven@leiderfischer.de> Reviewed-on: https://gitea.com/gitea/helm-chart/pulls/313 Reviewed-by: justusbunsi <justusbunsi@noreply.gitea.io> Reviewed-by: luhahn <luhahn@noreply.gitea.io> Co-authored-by: svenihoney <svenihoney@noreply.gitea.io> Co-committed-by: svenihoney <svenihoney@noreply.gitea.io>
This commit is contained in:
parent
b06b3edf1d
commit
52ed32ae74
@ -776,9 +776,13 @@ gitea:
|
|||||||
| `service.http.nodePort` | NodePort for http service | |
|
| `service.http.nodePort` | NodePort for http service | |
|
||||||
| `service.http.externalTrafficPolicy` | If `service.http.type` is `NodePort` or `LoadBalancer`, set this to `Local` to enable source IP preservation | |
|
| `service.http.externalTrafficPolicy` | If `service.http.type` is `NodePort` or `LoadBalancer`, set this to `Local` to enable source IP preservation | |
|
||||||
| `service.http.externalIPs` | http service external IP addresses | |
|
| `service.http.externalIPs` | http service external IP addresses | |
|
||||||
|
| `service.http.ipFamilyPolicy` | http service dual-stack policy | |
|
||||||
|
| `service.http.ipFamilies` | http service dual-stack familiy selection | |
|
||||||
| `service.http.loadBalancerSourceRanges` | Source range filter for http loadbalancer | `[]` |
|
| `service.http.loadBalancerSourceRanges` | Source range filter for http loadbalancer | `[]` |
|
||||||
| `service.http.annotations` | http service annotations | |
|
| `service.http.annotations` | http service annotations | |
|
||||||
|
|
||||||
|
For dual-stack parameters see official kubernetes [dual-stack concept documentation](https://kubernetes.io/docs/concepts/services-networking/dual-stack/).
|
||||||
|
|
||||||
#### SSH
|
#### SSH
|
||||||
|
|
||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
@ -790,9 +794,13 @@ gitea:
|
|||||||
| `service.ssh.hostPort` | HostPort for ssh service | |
|
| `service.ssh.hostPort` | HostPort for ssh service | |
|
||||||
| `service.ssh.externalTrafficPolicy` | If `service.ssh.type` is `NodePort` or `LoadBalancer`, set this to `Local` to enable source IP preservation | |
|
| `service.ssh.externalTrafficPolicy` | If `service.ssh.type` is `NodePort` or `LoadBalancer`, set this to `Local` to enable source IP preservation | |
|
||||||
| `service.ssh.externalIPs` | ssh service external IP addresses | |
|
| `service.ssh.externalIPs` | ssh service external IP addresses | |
|
||||||
|
| `service.ssh.ipFamilyPolicy` | ssh service dual-stack policy | |
|
||||||
|
| `service.ssh.ipFamilies` | ssh service dual-stack familiy selection | |
|
||||||
| `service.ssh.loadBalancerSourceRanges` | Source range filter for ssh loadbalancer | `[]` |
|
| `service.ssh.loadBalancerSourceRanges` | Source range filter for ssh loadbalancer | `[]` |
|
||||||
| `service.ssh.annotations` | ssh service annotations | |
|
| `service.ssh.annotations` | ssh service annotations | |
|
||||||
|
|
||||||
|
For dual-stack parameters see official kubernetes [dual-stack concept documentation](https://kubernetes.io/docs/concepts/services-networking/dual-stack/).
|
||||||
|
|
||||||
### Gitea Configuration
|
### Gitea Configuration
|
||||||
|
|
||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
|
@ -21,6 +21,13 @@ spec:
|
|||||||
externalIPs:
|
externalIPs:
|
||||||
{{- toYaml .Values.service.http.externalIPs | nindent 4 }}
|
{{- toYaml .Values.service.http.externalIPs | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.service.http.ipFamilyPolicy }}
|
||||||
|
ipFamilyPolicy: {{ .Values.service.http.ipFamilyPolicy }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.service.http.ipFamilies }}
|
||||||
|
ipFamilies:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end -}}
|
||||||
{{- if .Values.service.http.externalTrafficPolicy }}
|
{{- if .Values.service.http.externalTrafficPolicy }}
|
||||||
externalTrafficPolicy: {{ .Values.service.http.externalTrafficPolicy }}
|
externalTrafficPolicy: {{ .Values.service.http.externalTrafficPolicy }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -26,6 +26,13 @@ spec:
|
|||||||
externalIPs:
|
externalIPs:
|
||||||
{{- toYaml .Values.service.ssh.externalIPs | nindent 4 }}
|
{{- toYaml .Values.service.ssh.externalIPs | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.service.ssh.ipFamilyPolicy }}
|
||||||
|
ipFamilyPolicy: {{ .Values.service.ssh.ipFamilyPolicy }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.service.ssh.ipFamilies }}
|
||||||
|
ipFamilies:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end -}}
|
||||||
{{- if .Values.service.ssh.externalTrafficPolicy }}
|
{{- if .Values.service.ssh.externalTrafficPolicy }}
|
||||||
externalTrafficPolicy: {{ .Values.service.ssh.externalTrafficPolicy }}
|
externalTrafficPolicy: {{ .Values.service.ssh.externalTrafficPolicy }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -51,6 +51,8 @@ service:
|
|||||||
#nodePort:
|
#nodePort:
|
||||||
#externalTrafficPolicy:
|
#externalTrafficPolicy:
|
||||||
#externalIPs:
|
#externalIPs:
|
||||||
|
#ipFamilyPolicy:
|
||||||
|
#ipFamilies:
|
||||||
loadBalancerSourceRanges: []
|
loadBalancerSourceRanges: []
|
||||||
annotations:
|
annotations:
|
||||||
ssh:
|
ssh:
|
||||||
@ -61,6 +63,8 @@ service:
|
|||||||
#nodePort:
|
#nodePort:
|
||||||
#externalTrafficPolicy:
|
#externalTrafficPolicy:
|
||||||
#externalIPs:
|
#externalIPs:
|
||||||
|
#ipFamilyPolicy:
|
||||||
|
#ipFamilies:
|
||||||
#hostPort:
|
#hostPort:
|
||||||
loadBalancerSourceRanges: []
|
loadBalancerSourceRanges: []
|
||||||
annotations:
|
annotations:
|
||||||
|
Loading…
Reference in New Issue
Block a user