-
Notifications
You must be signed in to change notification settings - Fork 674
Import jsonnet README.md #636
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 all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6b88c1b
Import jsonnet README.md
pracucci 2418fd7
Fixed operations/mimir/README.md formatting
pracucci 14c0902
Added Tanka to build image
pracucci 745ef8b
Setup credentials to checkout mimir repo
pracucci 5a10e82
Improved the way the jsonnet README is tested
pracucci c6175c4
Renamed CI job name
pracucci 7d32537
Addressed review comments
pracucci 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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # Jsonnet for Mimir on Kubernetes | ||
|
|
||
| This folder has the jsonnet for deploying Mimir in Kubernetes. To generate the YAMLs for deploying Mimir follow these instructions. | ||
|
|
||
| ### 1. Make sure you have `tanka` and `jb` installed | ||
|
|
||
| Follow the steps at https://tanka.dev/install. If you have `go` installed locally you can also use: | ||
|
|
||
| ```console | ||
| $ # make sure to be outside of GOPATH or a go.mod project | ||
| $ go install github.com/grafana/tanka/cmd/tk@latest | ||
| $ go install github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb@latest | ||
| ``` | ||
|
|
||
| ### 2. Setup Jsonnet project | ||
|
|
||
| Initialise the Tanka, install the Mimir and Kubernetes Jsonnet libraries, and setup an environment based on the provided example. | ||
|
|
||
| <!-- prettier-ignore-start --> | ||
| [embedmd]:# (./getting-started.sh) | ||
| ```sh | ||
| #!/usr/bin/env bash | ||
| set -e | ||
|
|
||
| # Initialise the Tanka. | ||
| mkdir jsonnet-example && cd jsonnet-example | ||
| tk init --k8s=1.18 | ||
|
|
||
| # Install Mimir jsonnet. | ||
| jb install github.com/grafana/mimir/operations/mimir@main | ||
|
|
||
| # Use the provided example. | ||
| cp vendor/mimir/mimir-manifests.jsonnet.example environments/default/main.jsonnet | ||
|
|
||
| # Generate the YAML manifests. | ||
| export PAGER=cat | ||
| tk show environments/default | ||
| ``` | ||
| <!-- prettier-ignore-end --> | ||
|
|
||
| ### 3. Generate the YAML manifests | ||
|
|
||
| ```console | ||
| $ cd jsonnet-example | ||
| $ tk show environments/default | ||
| ``` | ||
|
|
||
| To output YAML manifests to `./manifests`, run: | ||
|
|
||
| ```console | ||
| $ cd jsonnet-example | ||
| $ tk export manifests environments/default | ||
| ``` |
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,16 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
|
|
||
| # Initialise the Tanka. | ||
| mkdir jsonnet-example && cd jsonnet-example | ||
| tk init --k8s=1.18 | ||
|
|
||
| # Install Mimir jsonnet. | ||
| jb install github.com/grafana/mimir/operations/mimir@main | ||
|
|
||
| # Use the provided example. | ||
| cp vendor/mimir/mimir-manifests.jsonnet.example environments/default/main.jsonnet | ||
|
|
||
| # Generate the YAML manifests. | ||
| export PAGER=cat | ||
| tk show environments/default |
4 changes: 2 additions & 2 deletions
4
...ns/mimir/cortex-manifests.jsonnet.example → ...ons/mimir/mimir-manifests.jsonnet.example
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
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.