-
Notifications
You must be signed in to change notification settings - Fork 38
Fleet persona quickstart #254
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
base: main
Are you sure you want to change the base?
Changes from all commits
6930d60
2397229
516b920
287721a
4587f4e
98383d1
cb39727
48ae1ac
12c942f
54af92c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,7 @@ | ||||||
| # Key Personas and Their Roles | ||||||
|
|
||||||
| | Persona | Responsibilities | Key Benefits | | ||||||
| | --- | ----- | ----- | | ||||||
| | Platform Engineers | Set up and manage Fleet installation across clusters <br/> Define and enforce multi-cluster application and policy deployments <br/> Manage GitRepo and fleet.yaml configurations <br/> Perform cluster-wide updates and rollbacks | Centralized control across clusters <br/> Improved standardization and compliance | | ||||||
| | Application Developers | Structure application Helm charts or manifests in Git <br/> Define deployment targets and environments in `fleet.yaml` <br/> Monitor deployment status via UI or CLI | GitOps-based workflows <br/> Faster, automated, and consistent deployments across environments | | ||||||
| | Security Administrators | Define and enforce security policies as code- <br/> Deploy security tools and configurations <br/> Audit and manage security posture across clusters | Reduced risk and centralized compliance management <br/> Automated, consistent security configuration | | ||||||
|
||||||
| | Security Administrators | Define and enforce security policies as code- <br/> Deploy security tools and configurations <br/> Audit and manage security posture across clusters | Reduced risk and centralized compliance management <br/> Automated, consistent security configuration | | |
| | Security Administrators | Define and enforce security policies as code: <br/> Deploy security tools and configurations <br/> Audit and manage security posture across clusters | Reduced risk and centralized compliance management <br/> Automated, consistent security configuration | |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -5,17 +5,16 @@ import TabItem from '@theme/TabItem'; | |||||||||||||||||
|
|
||||||||||||||||||
| # Quick Start | ||||||||||||||||||
|
|
||||||||||||||||||
|  | ||||||||||||||||||
|
|
||||||||||||||||||
| Who needs documentation, lets just run this thing! | ||||||||||||||||||
|  | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Install | ||||||||||||||||||
|
|
||||||||||||||||||
| Fleet is distributed as a Helm chart. Helm 3 is a CLI, has no server side component, and its use is | ||||||||||||||||||
| fairly straightforward. To install the Helm 3 CLI follow the <a href="https://helm.sh/docs/intro/install">official install instructions</a>. | ||||||||||||||||||
| Fleet is distributed as a Helm chart. Helm 3 is a CLI, has no server side component, and its use is | ||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Do we need to specify version 3? |
||||||||||||||||||
| fairly straightforward. To install the Helm 3 CLI follow the <a href="https://helm.sh/docs/intro/install">official install instructions</a>. | ||||||||||||||||||
|
|
||||||||||||||||||
| Fleet enables continuous delivery of Kubernetes workloads across multiple clusters using a GitOps model. In this guide, you would be deploying a basic NGINX Pod using fleet.yaml. | ||||||||||||||||||
|
|
||||||||||||||||||
| :::caution Fleet in Rancher | ||||||||||||||||||
| :::caution | ||||||||||||||||||
| Rancher has separate helm charts for Fleet and uses a different repository. | ||||||||||||||||||
| ::: | ||||||||||||||||||
|
|
||||||||||||||||||
|
|
@@ -43,47 +42,143 @@ Install the Fleet Helm charts (there's two because we separate out CRDs for ulti | |||||||||||||||||
| fleet/fleet`} | ||||||||||||||||||
| </CodeBlock> | ||||||||||||||||||
|
|
||||||||||||||||||
| To verify installation, run: | ||||||||||||||||||
|
|
||||||||||||||||||
| `kubectl get pods -n cattle-fleet-system` | ||||||||||||||||||
|
|
||||||||||||||||||
| ## Add a Git Repo to Watch | ||||||||||||||||||
|
|
||||||||||||||||||
| Change `spec.repo` to your git repo of choice. Kubernetes manifest files that should | ||||||||||||||||||
| be deployed should be in `/manifests` in your repo. | ||||||||||||||||||
| Specify the Git repositories containing your deployment manifests or Helm charts. For hello world, example you need: | ||||||||||||||||||
|
||||||||||||||||||
| Specify the Git repositories containing your deployment manifests or Helm charts. For hello world, example you need: | |
| Specify the Git repository containing your deployment manifests or Helm charts. For hello world, example you need: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * deployment.yaml for defining workload | |
| * fleet.yaml for how should Fleet control the deployment | |
| * Gitrepo.yaml for where to find your git repo, which branch and sub-path to monitor. | |
| * (optionally) You can also add credentials | |
| * deployment.yaml for defining your workload | |
| * fleet.yaml providing configuration instructing Fleet on how to control the deployment | |
| * Gitrepo.yaml referencing your git repo, which branch and sub-path to monitor. | |
| * (optionally) You can also add credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not suggest to have the gitrepo.yaml in the repository being deployed.
The reason why is because the GitRepo can be considered as just another resource by Fleet and can add confusion.
For example... lets say you have a git repository with some YAML fields and that one of them is a GitRepo.
Fleet will deploy that GitRepo, which means it will create another GitRepo (you are nesting GitRepos).
You might want to do that, but I don't think that's the case in this example.
I would take the GitRepo out of the git repository here to avoid confusions and unexpected behaviour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
It was confusing to me as well the first time I deploy an application using Fleet
I think I would also add a warning about this bad approach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two commands are listed here ;)
| Or you can run the following command: | |
| Or you can run the following commands: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ## Automating Deployments and Scaling | |
| ## Automating Deployments and Scaling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of having a diagram here, but in my web browser at least, it reads pretty small compared to the rest of the page contents. We may need to increase the font size and/or change its style to make it comfortable to read to as many readers as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 1. It deploys the updated resources automatically. | |
| 2. It deploys the updated resources automatically. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Numbering shouldn't matter much here, as indexes of numbered lists are computed when rendering Markdown into HTML.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| module.exports = { | ||
| docs: [ | ||
| 'index', | ||
| 'persona', | ||
| { | ||
| type: 'category', | ||
| label: 'Tutorials', | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could perhaps be replaced with a text block, which would be easier to edit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about adding a dot at the end of each sentence in the items that are in the same column?
I see we have fleet.yaml and
fleet.yamlin the document. I guess we should use the same form, but I'm not sure which one is better (looks likefleet.yaml). We maybe should define a style guide.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use bullet points to make points easier to distinguish from each other?