Skip to content

Commit

Permalink
Bump kube-vip to 0.6.3 with svc mode enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
laozc committed Nov 15, 2023
1 parent ea2041d commit eca7e5e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 5 deletions.
12 changes: 11 additions & 1 deletion packaging/flavorgen/flavors/generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ func kubeVIPPodSpec() *corev1.Pod {
Containers: []corev1.Container{
{
Name: "kube-vip",
Image: "ghcr.io/kube-vip/kube-vip:v0.5.11",
Image: "ghcr.io/kube-vip/kube-vip:v0.6.3",
ImagePullPolicy: corev1.PullIfNotPresent,
Args: []string{
"manager",
Expand Down Expand Up @@ -623,6 +623,16 @@ func kubeVIPPodSpec() *corev1.Pod {
Name: "vip_retryperiod",
Value: "2",
},
{
// Enables kube-vip to watch Services of type LoadBalancer
Name: "svc_enable",
Value: "true",
},
{
// Enables a leadership Election for each Service, allowing them to be distributed
Name: "svc_election",
Value: "true",
},
},
SecurityContext: &corev1.SecurityContext{
Capabilities: &corev1.Capabilities{
Expand Down
6 changes: 5 additions & 1 deletion templates/cluster-template-ignition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ spec:
value: "10"
- name: vip_retryperiod
value: "2"
image: ghcr.io/kube-vip/kube-vip:v0.5.11
- name: svc_enable
value: "true"
- name: svc_election
value: "true"
image: ghcr.io/kube-vip/kube-vip:v0.6.3
imagePullPolicy: IfNotPresent
name: kube-vip
resources: {}
Expand Down
6 changes: 5 additions & 1 deletion templates/cluster-template-node-ipam.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ spec:
value: "10"
- name: vip_retryperiod
value: "2"
image: ghcr.io/kube-vip/kube-vip:v0.5.11
- name: svc_enable
value: "true"
- name: svc_election
value: "true"
image: ghcr.io/kube-vip/kube-vip:v0.6.3
imagePullPolicy: IfNotPresent
name: kube-vip
resources: {}
Expand Down
6 changes: 5 additions & 1 deletion templates/cluster-template-topology.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ spec:
value: "10"
- name: vip_retryperiod
value: "2"
image: ghcr.io/kube-vip/kube-vip:v0.5.11
- name: svc_enable
value: "true"
- name: svc_election
value: "true"
image: ghcr.io/kube-vip/kube-vip:v0.6.3
imagePullPolicy: IfNotPresent
name: kube-vip
resources: {}
Expand Down
6 changes: 5 additions & 1 deletion templates/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ spec:
value: "10"
- name: vip_retryperiod
value: "2"
image: ghcr.io/kube-vip/kube-vip:v0.5.11
- name: svc_enable
value: "true"
- name: svc_election
value: "true"
image: ghcr.io/kube-vip/kube-vip:v0.6.3
imagePullPolicy: IfNotPresent
name: kube-vip
resources: {}
Expand Down

0 comments on commit eca7e5e

Please sign in to comment.