Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Design doc for bring-your-own-host#901

Merged
vuil merged 2 commits intovmware-tanzu:mainfrom
4everming:bringyourownhost-design-doc
Nov 4, 2021
Merged

Design doc for bring-your-own-host#901
vuil merged 2 commits intovmware-tanzu:mainfrom
4everming:bringyourownhost-design-doc

Conversation

@4everming
Copy link
Copy Markdown
Contributor

@4everming 4everming commented Oct 16, 2021

What this PR does / why we need it

Introduce document to describe the plan to support bring-your-own-host provider in tanzu-framework.

Which issue(s) this PR fixes

Related to: #823

Describe testing done for PR

Release note

PR Checklist

  • Use good commit messages
  • Ensure PR contains terms all contributors can understand and links all contributors can access

Additional information

Special notes for your reviewer

@4everming 4everming requested a review from a team as a code owner October 16, 2021 10:03
@vmwclabot
Copy link
Copy Markdown

@4everming, you must sign our contributor license agreement before your changes are merged. Click here to sign the agreement. If you are a VMware employee, read this for further instruction.

Copy link
Copy Markdown
Contributor

@vuil vuil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the addition. This has the potential of opening up the CLI to logs of other deployment scenarios!

Will take another pass at this later, but here are some inital comments and minor language suggestions.


## High-Level Design

This is to descirbe what will be targeted for the first phase.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

describe

Update BOM files to support BYOH.

Update the logic to validate the configurations for provisioning BYOH clusters.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documenting an invocation of tanzu cluster create with some example input will go a long way into explaining how the new functionality is going to be consumed.

## Goals

* Define the configurations used for BYOH to create BYOH workload cluster.
* Use the existing Tanzu cluster create command to create BYOH workload cluster using the configuration file.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Use the existing Tanzu cluster create command to create BYOH workload cluster using the configuration file.
* Use the existing ```tanzu cluster create``` command to create BYOH workload cluster using the configuration file.


* Define the configurations used for BYOH to create BYOH workload cluster.
* Use the existing Tanzu cluster create command to create BYOH workload cluster using the configuration file.
* Use the existing Tanzu cluster list/delete/scale command to list/delete/update BYOH workload cluster.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Use the existing Tanzu cluster list/delete/scale command to list/delete/update BYOH workload cluster.
* Use the existing ```tanzu cluster list/delete/scale``` commands to list/delete/update BYOH workload cluster.

@@ -0,0 +1,59 @@
# Bring your own host enhancement design
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Bring your own host enhancement design
# Bring-Your-Own-Host Design


## Abstract

The Bring Your Own Host aka BYOH aims at enabling Kubernetes cluster life cycle management on user provided hosts (most of the case are bare metal hosts).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The Bring Your Own Host aka BYOH aims at enabling Kubernetes cluster life cycle management on user provided hosts (most of the case are bare metal hosts).
The Bring Your Own Host aka BYOH aims at enabling Kubernetes cluster life cycle management on user-provided hosts (bare metal hosts in most cases).


The Bring Your Own Host aka BYOH aims at enabling Kubernetes cluster life cycle management on user provided hosts (most of the case are bare metal hosts).

But currently only 1 infrastructure provider is supported in tanzu-framework, this is to enhance current tanzu-framework so that users can use tanzu CLI to create BYOH workload cluster.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure I understand this. Can you clarify?

@4everming 4everming force-pushed the bringyourownhost-design-doc branch 3 times, most recently from 9d59048 to cffe6e3 Compare October 23, 2021 07:22
@vmwclabot
Copy link
Copy Markdown

@4everming, VMware has approved your signed contributor license agreement.


This is to describe what will be targeted for the first phase.

To deploy a Kubernetes cluster, you create a configuration file that specifies the different options with which to deploy the cluster. You then run the tanzu cluster create command, specifying the configuration file in the ```--file``` option.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is my understanding that the crawl phase involves an out-of-band step where an existing (currently vSphere-based only) management cluster needs to be updated with the byoh provider. Please provide some details to these steps, so it will be clearer the following steps involves creating a workload cluster against this byoh-enabled management cluster.

```WORKER_MACHINE_COUNT: 5```


3. Save the configuration file as my-byoh-tkc.yaml.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A sample of a minimal viable BYOH workload cluster config file would be very helpful when reviewing the ytt overlays for any discreptancies.

Copy link
Copy Markdown
Contributor

@vuil vuil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates. I think a clearer sequence of steps including the management cluster preparation would clarify how the crawl phase works.

@4everming 4everming force-pushed the bringyourownhost-design-doc branch 2 times, most recently from 0bd1c23 to 2fb890e Compare October 27, 2021 15:24
@vuil vuil self-assigned this Oct 28, 2021
@vuil vuil added area/docs kind/design Issue/PR as related to design. labels Nov 3, 2021
@vuil vuil changed the title First commit of the bringyourownhost-design Design doc for bring-your-own-host Nov 3, 2021
@vuil vuil added the ok-to-merge PRs should be labelled with this before merging label Nov 3, 2021
Copy link
Copy Markdown
Contributor

@vuil vuil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the design doc. It is a lot clearer now what the current and upcoming phases will set out to accomplish. I took the liberty of clarifying the title and linking back to the issue filed.

The doc lgtm, but it needs some tweaking to conform to the markdown linting we are doing on all markdown files. Please take a look at the issues raised by the lint checks and address them.

Details on what is expected is also mentioned in the output of the Lint checker logs, but repeated here:
https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md

@4everming 4everming force-pushed the bringyourownhost-design-doc branch from 2fb890e to 8063995 Compare November 3, 2021 11:34
@4everming
Copy link
Copy Markdown
Contributor Author

Thanks for updating the design doc. It is a lot clearer now what the current and upcoming phases will set out to accomplish. I took the liberty of clarifying the title and linking back to the issue filed.

The doc lgtm, but it needs some tweaking to conform to the markdown linting we are doing on all markdown files. Please take a look at the issues raised by the lint checks and address them.

Details on what is expected is also mentioned in the output of the Lint checker logs, but repeated here: https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md

Thanks Vui for let me know that

@vuil vuil merged commit b4bdbbf into vmware-tanzu:main Nov 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area/docs kind/design Issue/PR as related to design. ok-to-merge PRs should be labelled with this before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants