Skip to content

Commit

Permalink
Add option to specify controlPlaneEndpoint private ip address
Browse files Browse the repository at this point in the history
It can be used, e.g. when management cluster and workload clusters are on different networks

Signed-off-by: Roman Hros <[email protected]>
  • Loading branch information
chess-knight committed May 30, 2024
1 parent 6a2b7c2 commit b699b93
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ spec:
default: 6443
required:
- host
- name: controlPlaneEndpoint_private_ip
schema:
openAPIV3Schema:
type: string
format: "ipv4"
example: "192.168.222.150"
description: "Private IP address used by kube-vip. Defaults to .controlPlaneEndpoint.host."
- name: image
schema:
openAPIV3Schema:
Expand Down Expand Up @@ -237,7 +244,7 @@ spec:
- name: lb_fwdmethod
value: local
- name: address
value: '{{"{{"}} .controlPlaneEndpoint.host {{"}}"}}'
value: {{ `"{{ if .controlPlaneEndpoint_private_ip }}{{.controlPlaneEndpoint_private_ip}}{{else}}{{.controlPlaneEndpoint.host}}{{end}}"` }}
- name: prometheus_server
value: :2112
image: ghcr.io/kube-vip/kube-vip:v0.7.2
Expand Down

0 comments on commit b699b93

Please sign in to comment.