Merge pull request #501 from BongoEADGC6/devel

Added nodeport port properties
This commit is contained in:
Christian Adams
2021-09-07 09:09:10 -04:00
committed by GitHub
8 changed files with 44 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ loadbalancer_protocol: 'http'
loadbalancer_port: '80'
loadbalancer_annotations: ''
nodeport_port: '30080'
# The TLS termination mechanism to use to access
# the services. Supported mechanism are: edge, passthrough
#

View File

@@ -39,6 +39,12 @@ spec:
protocol: TCP
targetPort: 8052
name: http
{% elif service_type | lower == "nodeport" %}
- port: {{ nodeport_port }}
protocol: TCP
targetPort: 8052
name: http
type: NodePort
{% endif %}
selector:
app.kubernetes.io/name: '{{ meta.name }}'
@@ -46,8 +52,6 @@ spec:
app.kubernetes.io/component: '{{ deployment_type }}'
{% if service_type | lower == "loadbalancer" %}
type: LoadBalancer
{% elif service_type | lower == "nodeport" %}
type: NodePort
{% else %}
type: ClusterIP
{% endif %}