-
Notifications
You must be signed in to change notification settings - Fork 7
feat: add kube-vip static Pod in a Nutanix handler #558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
936211f
refactor: remove kube-vip template from Nutanix's KCP
dkoshkin d8e1f8d
refactor: add kube-vip static Pod to KCP in the handler
dkoshkin b52fa65
refactor: better handle nil virtualIPProvider
dkoshkin 891b4a4
refactor: add VirtualIPSpec API and a handler
dkoshkin ba7f694
fix: kube-vip admin.conf pre/postKubeadmCommands
dkoshkin d7ef1fd
build: Add update kube-vip manifests script and use kube-vip 0.8.0
jimmidyson 8f86f92
fixup! add provider field in ControlPlaneVirtualIPSpec
dkoshkin 98ff981
fix: use KubeVIP capitalization more consistently
dkoshkin e569797
fix: copy and paste
dkoshkin 48e7f72
fixup! fixup! fix linter
dkoshkin 2bd290d
fixup! refactor: add kube-vip static Pod to KCP in the handler
dkoshkin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
...uster-api-runtime-extensions-nutanix/templates/kube-vip/manifests/kube-vip-configmap.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Copyright 2023 D2iQ, Inc. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
#================================================================= | ||
# DO NOT EDIT THIS FILE | ||
# IT HAS BEEN GENERATED BY /hack/addons/update-kube-vip-manifests.sh | ||
#================================================================= | ||
{{- if .Values.hooks.kubeVip.defaultTemplateConfigMap.create }} | ||
apiVersion: v1 | ||
data: | ||
kube-vip.yaml: | | ||
dkoshkin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: kube-vip | ||
namespace: kube-system | ||
spec: | ||
containers: | ||
- args: | ||
- manager | ||
env: | ||
- name: vip_arp | ||
value: "true" | ||
jimmidyson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: port | ||
value: '{{ `{{ .ControlPlaneEndpoint.Port }}` }}' | ||
- name: vip_nodename | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.nodeName | ||
- name: vip_cidr | ||
value: "32" | ||
- name: dns_mode | ||
value: first | ||
- name: cp_enable | ||
value: "true" | ||
- name: cp_namespace | ||
value: kube-system | ||
- name: vip_leaderelection | ||
value: "true" | ||
- name: vip_leasename | ||
value: plndr-cp-lock | ||
- name: vip_leaseduration | ||
value: "15" | ||
- name: vip_renewdeadline | ||
value: "10" | ||
- name: vip_retryperiod | ||
value: "2" | ||
- name: address | ||
value: '{{ `{{ .ControlPlaneEndpoint.Host }}` }}' | ||
image: ghcr.io/kube-vip/kube-vip:v0.8.0 | ||
imagePullPolicy: IfNotPresent | ||
name: kube-vip | ||
resources: {} | ||
securityContext: | ||
capabilities: | ||
add: | ||
- NET_ADMIN | ||
- NET_RAW | ||
volumeMounts: | ||
- mountPath: /etc/kubernetes/admin.conf | ||
name: kubeconfig | ||
hostAliases: | ||
- hostnames: | ||
- kubernetes | ||
ip: 127.0.0.1 | ||
hostNetwork: true | ||
volumes: | ||
- hostPath: | ||
path: /etc/kubernetes/admin.conf | ||
name: kubeconfig | ||
kind: ConfigMap | ||
metadata: | ||
creationTimestamp: null | ||
name: '{{ .Values.hooks.kubeVip.defaultTemplateConfigMap.name }}' | ||
{{- end -}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.