File tree 1 file changed +8
-1
lines changed
providers/metal3/alpha/1-28/cluster-class/templates
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 46
46
default : 6443
47
47
required :
48
48
- host
49
+ - name : controlPlaneEndpoint_private_ip
50
+ schema :
51
+ openAPIV3Schema :
52
+ type : string
53
+ format : " ipv4"
54
+ example : " 192.168.222.150"
55
+ description : " Private IP address used by kube-vip. Defaults to .controlPlaneEndpoint.host."
49
56
- name : image
50
57
schema :
51
58
openAPIV3Schema :
@@ -237,7 +244,7 @@ spec:
237
244
- name: lb_fwdmethod
238
245
value: local
239
246
- name: address
240
- value: '{{ "{{"}} . controlPlaneEndpoint.host {{" }}"}}'
247
+ value: {{ ` "{{ if .controlPlaneEndpoint_private_ip }}{{.controlPlaneEndpoint_private_ip}}{{else}}{{. controlPlaneEndpoint.host}}{{end }}"` }}
241
248
- name: prometheus_server
242
249
value: :2112
243
250
image: ghcr.io/kube-vip/kube-vip:v0.7.2
You can’t perform that action at this time.
0 commit comments