Merge pull request #6 from Intreecom/feature/nodeport-service-type
feature/nodeport service type
This commit is contained in:
@ -11,5 +11,8 @@ spec:
|
|||||||
targetPort: pg
|
targetPort: pg
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: pg
|
name: pg
|
||||||
|
{{- if eq .Values.service.type "NodePort" }}
|
||||||
|
nodePort: {{ .Values.service.nodePort }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "pgbouncer.selectorLabels" . | nindent 4 }}
|
{{- include "pgbouncer.selectorLabels" . | nindent 4 }}
|
||||||
|
@ -64,9 +64,12 @@ securityContext: {}
|
|||||||
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
|
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
|
||||||
service:
|
service:
|
||||||
# This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
|
# This sets the service type more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types
|
||||||
|
# allowed values: ClusterIP (default), NodePort
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
|
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
|
||||||
port: 5432
|
port: 5432
|
||||||
|
# nodePort property is required when the .Values.service.type is NodePort
|
||||||
|
# nodePort: "35432"
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
|
@ -12,6 +12,9 @@ spec:
|
|||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
{{- if eq .Values.service.type "NodePort" }}
|
||||||
|
nodePort: {{ .Values.service.nodePort }}
|
||||||
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "py-app.selectorLabels" . | nindent 4 }}
|
{{- include "py-app.selectorLabels" . | nindent 4 }}
|
||||||
deployment_type: web
|
deployment_type: web
|
||||||
|
Reference in New Issue
Block a user