Skip to content

Commit

Permalink
Merge pull request #2508 from laozc/kube-vip-upgrade
Browse files Browse the repository at this point in the history
🌱 Bump kube-vip to 0.6.3 and enable service mode
  • Loading branch information
k8s-ci-robot authored Nov 17, 2023
2 parents d868d5c + eca7e5e commit 8ba873f
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 8ba873f

Please sign in to comment.