-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update example READMEs (initial) * Refine docs for docusaurus * Fix walkthroughs * Update the git-data Makefile * Fix tests with renamed git-data example * Update logging png image * Resolve bad markdown syntax * Test autogenerated index * Cleanup example headings and paths * Tell people to click edit instead of a direct link * Cleanup example note * Cleanup example link verbiage * Fix examples link * Remove Examples to prevent double * Fix CONTRIBUTING.md link * Fix packages links * Desiccate the contributing guide * Address PR feedback * Resolve bad links * Fix images in user guide and overview * use zarf tools monitor instead of kubectl * use zarf tools monitor instead of kubectl Co-authored-by: Megamind <[email protected]>
- Loading branch information
1 parent
e3f2cf4
commit 87517ea
Showing
50 changed files
with
469 additions
and
961 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains 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 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 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 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,55 @@ | ||
# Add Logging | ||
|
||
In this walkthrough, we are going to show how you can use a Zarf component to inject zero-config, centralized logging into your Zarf cluster. | ||
|
||
More specifically, you'll be adding a [Promtail / Loki / Grafana (PLG)](https://github.com/grafana/loki) stack to the [Doom Walkthrough](./2-deploying-doom.md) by installing Zarf's "logging" component. | ||
|
||
|
||
## Walkthrough Prerequisites | ||
1. The [Zarf](https://github.com/defenseunicorns/zarf) repository cloned: ([`git clone` Instructions](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)) | ||
1. Zarf binary installed on your $PATH: ([Install Instructions](../3-getting-started.md#installing-zarf)) | ||
|
||
|
||
## Install the logging component | ||
|
||
To install the logging component, follow the [Initializing a Cluster Instructions](./1-initializing-a-k8s-cluster.md), but instead answer `y` when asked to install the `logging` component | ||
|
||
|
||
## Note the credentials | ||
|
||
Review the `zarf init` command output for the following: | ||
|
||
![logging-creds](../.images/walkthroughs/logging_credentials.png) | ||
|
||
You should see a section for `Logging`. You will need these credentials later on. | ||
|
||
|
||
## Deploy the Doom Walkthrough | ||
|
||
Follow the remainder of the [Doom Walkthrough](./2-deploying-doom.md). | ||
|
||
|
||
## Check the logs | ||
|
||
:::note | ||
|
||
Because Doom is freshly installed it is recommended to refresh the page a few times to generate more log traffic to view in Grafana | ||
|
||
::: | ||
|
||
|
||
### Log into Grafana | ||
|
||
To open Grafana you can use the `zarf connect logging` command. | ||
|
||
You'll be redirected the `/login` page where you have to sign in with the Grafana credentials you saved [in a previous step](#note-the-credentials). | ||
|
||
Once you've successfully logged in go to: | ||
|
||
1. The "Explore" page (Button on the left that looks like a compass) | ||
|
||
1. you can select `Loki` in the dropdown, and then | ||
|
||
1. enter `{app="game"}` into the Log Browser query input field | ||
|
||
Submit that query and you'll get back a dump of all the game pod logs that Loki has collected. |
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
docs/13-walkthroughs/4-creating-a-k8s-cluster-with-zarf.md
This file contains 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,19 @@ | ||
# Initializing a New K8s Cluster | ||
|
||
:::caution Hard Hat Area | ||
This page is still being developed. More content will be added soon! | ||
::: | ||
|
||
In this walkthrough, we are going to show how you can use Zarf on a fresh linux machine to deploy a [k3s](https://k3s.io/) cluster through Zarf's `k3s` component | ||
|
||
|
||
## Walkthrough Prerequisites | ||
1. The [Zarf](https://github.com/defenseunicorns/zarf) repository cloned: ([`git clone` Instructions](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository)) | ||
1. Zarf binary installed on your $PATH: ([Install Instructions](../3-getting-started.md#installing-zarf)) | ||
1. An init-package built/downloaded: ([init-package Build Instructions](./0-creating-a-zarf-package.md)) or ([Download Location](https://github.com/defenseunicorns/zarf/releases)) | ||
1. kubectl: ([kubectl Install Instructions](https://kubernetes.io/docs/tasks/tools/#kubectl)) | ||
1. `root` access on a Linux machine | ||
|
||
## Install the k3s component | ||
|
||
To install the k3s component, follow the [Initializing a Cluster Instructions](./1-initializing-a-k8s-cluster.md) as `root`, and instead answer `y` when asked to install the `k3s` component |
This file contains 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.