Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added gateway service port value #782

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/apisix/templates/service-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ spec:
{{- if or .Values.apisix.ssl.enabled }}
- name: apisix-gateway-tls
port: {{ .Values.service.tls.servicePort }}
targetPort: {{ .Values.apisix.ssl.containerPort }}
targetPort: {{ .Values.apisix.ssl.serviceTargetPort }}
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.service.tls.nodePort))) }}
nodePort: {{ .Values.service.tls.nodePort }}
{{- end }}
Expand Down Expand Up @@ -103,4 +103,4 @@ spec:
{{- end }}
{{- end }}
selector:
{{- include "apisix.selectorLabels" . | nindent 4 }}
{{- include "apisix.selectorLabels" . | nindent 4 }}
9 changes: 8 additions & 1 deletion charts/apisix/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,13 @@ apisix:
ssl:
enabled: false
containerPort: 9443
# -- We need to change the Kubernetes Service target port independently from:
# -- - Nginx configuration
# -- - Container port
# -- This is useful while creating load-balancers in cloud providers, where the TLS is off-loaded
# -- and we need to send the requests from the external TLS port to the pod HTTP port, due to the node ports
# -- being automatically created based on the Kubernetes Service
serviceTargetPort: 9443
# -- Support multiple https ports, See [Configuration](https://github.com/apache/apisix/blob/0bc65ea9acd726f79f80ae0abd8f50b7eb172e3d/conf/config-default.yaml#L99)
additionalContainerPorts: []
# - ip: 127.0.0.3 # Specific IP, If not set, the default value is `0.0.0.0`.
Expand Down Expand Up @@ -645,4 +652,4 @@ ingress-controller:
enabled: false
config:
apisix:
adminAPIVersion: "v3"
adminAPIVersion: "v3"