Allow ytt templating of the loadBalancerIP
for the supervisor
This commit is contained in:
parent
4af508981a
commit
059b6e885f
@ -74,6 +74,9 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
selector: #@ defaultLabel()
|
selector: #@ defaultLabel()
|
||||||
|
#@ if data.values.service_loadbalancer_ip:
|
||||||
|
loadBalancerIP: #@ data.values.service_loadbalancer_ip
|
||||||
|
#@ end
|
||||||
ports:
|
ports:
|
||||||
#@ if data.values.service_http_loadbalancer_port:
|
#@ if data.values.service_http_loadbalancer_port:
|
||||||
- name: http
|
- name: http
|
||||||
|
@ -39,6 +39,7 @@ image_pull_dockerconfigjson: #! e.g. {"auths":{"https://registry.example.com":{"
|
|||||||
#! Typically you would set a value for only one of the following service types, for either HTTP or HTTPS depending on your needs.
|
#! Typically you would set a value for only one of the following service types, for either HTTP or HTTPS depending on your needs.
|
||||||
#! An HTTP service should not be exposed outside the cluster. It would not be secure to serve OIDC endpoints to end users via HTTP.
|
#! An HTTP service should not be exposed outside the cluster. It would not be secure to serve OIDC endpoints to end users via HTTP.
|
||||||
#! Setting any of these values means that a Service of that type will be created.
|
#! Setting any of these values means that a Service of that type will be created.
|
||||||
|
#! Note that all port numbers should be numbers (not strings), i.e. use ytt's `--data-value-yaml` instead of `--data-value`.
|
||||||
service_http_nodeport_port: #! when specified, creates a NodePort Service with this `port` value, with port 80 as its `targetPort`; e.g. 31234
|
service_http_nodeport_port: #! when specified, creates a NodePort Service with this `port` value, with port 80 as its `targetPort`; e.g. 31234
|
||||||
service_http_nodeport_nodeport: #! the `nodePort` value of the NodePort Service, optional when `service_http_nodeport_port` is specified; e.g. 31234
|
service_http_nodeport_nodeport: #! the `nodePort` value of the NodePort Service, optional when `service_http_nodeport_port` is specified; e.g. 31234
|
||||||
service_http_loadbalancer_port: #! when specified, creates a LoadBalancer Service with this `port` value, with port 80 as its `targetPort`; e.g. 443
|
service_http_loadbalancer_port: #! when specified, creates a LoadBalancer Service with this `port` value, with port 80 as its `targetPort`; e.g. 443
|
||||||
@ -47,3 +48,7 @@ service_https_nodeport_port: #! when specified, creates a NodePort Service with
|
|||||||
service_https_nodeport_nodeport: #! the `nodePort` value of the NodePort Service, optional when `service_http_nodeport_port` is specified; e.g. 31243
|
service_https_nodeport_nodeport: #! the `nodePort` value of the NodePort Service, optional when `service_http_nodeport_port` is specified; e.g. 31243
|
||||||
service_https_loadbalancer_port: #! when specified, creates a LoadBalancer Service with this `port` value, with port 443 as its `targetPort`; e.g. 443
|
service_https_loadbalancer_port: #! when specified, creates a LoadBalancer Service with this `port` value, with port 443 as its `targetPort`; e.g. 443
|
||||||
service_https_clusterip_port: #! when specified, creates a ClusterIP Service with this `port` value, with port 443 as its `targetPort`; e.g. 443
|
service_https_clusterip_port: #! when specified, creates a ClusterIP Service with this `port` value, with port 443 as its `targetPort`; e.g. 443
|
||||||
|
#! The `loadBalancerIP` value of the LoadBalancer Service.
|
||||||
|
#! Ignored unless service_http_loadbalancer_port and/or service_https_loadbalancer_port are provided.
|
||||||
|
#! Optional.
|
||||||
|
service_loadbalancer_ip: #! e.g. 1.2.3.4
|
||||||
|
Loading…
Reference in New Issue
Block a user