Added nodeport properties

This commit is contained in:
Cliff Hults
2021-08-14 19:50:29 -04:00
parent 0da8f41a86
commit 9b072aa549
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 %}