[Kubernetes] Add ability to setup high availability Kubernetes master on testbed server#2240
Merged
lguohan merged 15 commits intosonic-net:masterfrom Sep 26, 2020
Merged
Conversation
lguohan
reviewed
Sep 18, 2020
| dest: "{{ root_path }}" | ||
| mode: 0755 | ||
|
|
||
| - name: Retrieve a list of the defined VMs |
Contributor
Author
There was a problem hiding this comment.
The other code in the block is required for veos VM, but not for k8s Ubuntu VM. In k8s VM set up, I reference these registers/lists
…re-specify SSH credentials
… error, fix formatting
qiluo-msft
reviewed
Sep 23, 2020
qiluo-msft
reviewed
Sep 23, 2020
qiluo-msft
reviewed
Sep 23, 2020
qiluo-msft
reviewed
Sep 23, 2020
qiluo-msft
reviewed
Sep 23, 2020
qiluo-msft
reviewed
Sep 23, 2020
qiluo-msft
reviewed
Sep 23, 2020
qiluo-msft
reviewed
Sep 24, 2020
Contributor
Author
|
retest vsimage please |
qiluo-msft
approved these changes
Sep 24, 2020
Contributor
qiluo-msft
left a comment
There was a problem hiding this comment.
LGTM. Please also check with other reviewers.
Contributor
Author
|
retest vsimage please |
1 similar comment
Contributor
Author
|
retest vsimage please |
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…rm-common] advance submodule head (sonic-net#11578) linkmgrd: * e0fe1d4 2022-07-27 | TSA enhancement (sonic-net#98) (HEAD -> 202205) [Jing Zhang] utilities: * 7d7e15e 2022-07-18 | [vnet_route_check] Align DB data parse logic with format used by swsscommon API (sonic-net#2268) (HEAD -> 202205) [Volodymyr Samotiy] * b3d5d18 2022-07-20 | [MultiAsic] sudo reboot command doesn't gracefully stop Asic syncd# on multiasic platform (sonic-net#2258) [Marty Y. Lok] * 504ebe6 2022-07-08 | Add 'traffic_shift_away' option to config load_minigraph (sonic-net#2240) [tjchadaga] * 4079e4a 2022-06-20 | Gives cisco-8000 more flexibility to easily add subcommnads under show platform (sonic-net#2213) [Nathan Cohen] * 46443c6 2022-07-27 | Update db_migrator to support `PORT_QOS_MAP|global` (sonic-net#2205) [bingwang-ms] * d7fbdd6 2022-05-26 | fix for non-coherent cmis modules (sonic-net#2163) [qinchuanares] * 79b4439 2022-06-24 | [sfpshow/sfputil] Enhance sfpshow and sfputil to behavior correctly on RJ45 ports (sonic-net#2111) [Kebo Liu] swss: * 275f311 2022-07-26 | [DualToR] Handle race condition between tunnel_decap and mux orchestrator (sonic-net#2397) (HEAD -> 202205) [Devesh Pathak] * 47586e8 2022-07-22 | [EVPN]Fix missing Vlan member update notification in P2MP scenario (sonic-net#2388) [Sudharsan Dhamal Gopalarathnam] * 7d5c73f 2022-07-19 | [macsecmgr]: Fix cleanup macsec objs if container stop (sonic-net#2376) [Ze Gan] * c03996f 2022-07-17 | [orchagent]: Enhance initSaiPhyApi (sonic-net#2367) [andywongarista] * 57890d7 2022-07-27 | Fix for remote system interface not getting created (sonic-net#2364) [skeesara-nokia] * 1a93ec9 2022-07-13 | Orchagent changes for synchronizing npu/phy device Tx in the data path before enabling transceiver<CMIS compliant> Tx. (sonic-net#2277) [jaganbal-a] sairedis: * a4903be 2022-07-20 | Update PN with XPN support (sonic-net#1081) (HEAD -> 202205, github/202205) [Ze Gan] * 2cb5671 2022-07-27 | Add SAI_OBJECT_TYPE_TUNNEL object to break-before-make list (sonic-net#1075) [Vaibhav Hemant Dixit] platform-daemon: * 901c6a1 2022-06-28 | [CMIS]Improved 400G link bring up sequence (sonic-net#254) (HEAD -> 202205) [Prince George] platform-common: * f223b3f 2022-07-09 | Support get_port_or_cage_type (sonic-net#288) (HEAD -> 202205) [Stephen Sun] Signed-off-by: Ying Xie <ying.xie@microsoft.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description of PR
Summary:
Add Ansible jobs to setup and tear down high availability Kubernetes master on testbed server. Manageable through
testbed-cli.shscriptType of change
[ ] Bug fix
[ x ] Testbed and Framework(new/improvement)
[ ] Test case(new/improvement)
Approach
What is the motivation for this PR?
Automate setup and teardown of high availability Kubernetes master on testbed server
How did you do it?
testbed-cli.shscript to add extra options to manage Kubernetes masterHow did you verify/test it?
Run script to set up master on testbed server
sudo virsh list --allon testbed server shows all 4 newly generated KVMsKVM directory (contains 2 disk images and user, networking config files) is properly generated for each KVM
kubectl get nodeson any of the three master node KVMs shows 3 master nodes status as "Ready"systemctl status haproxyon HAProxy KVM shows service active and running, listening on port 80Run script to tear down master on testbed server
sudo virsh list --allno longer shows the 4 KVMs that were destroyedKVM directory (contains 2 disk images and user, networking config files) is properly removed for each KVM
From token generated join, SONiC DUT to HA Kubernetes cluster
kubectl get nodesshows SONiC DUT and each master nodeDocumentation
ansible/doc/README-k8s.testbed.design.md