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.
Signed-off-by: Weifeng Wang [email protected]
What this PR does:
Add Kustomize Support
Kustomize background
Kustomize is a CNCF project that is a part of Kubernetes. It's included in
the
kubectl
in order to allow users to customize their configurations without introducing templates.Usage
kustomize encourages defining multiple variants - e.g. dev, staging and prod, as overlays on a common base.
It’s possible to create an additional overlay to compose these variants together - just declare the overlays as the bases of a new kustomization.
cortex-kustomize provides a common base for Blocks Storage deployment to Kubernetes. People should Create variants using overlays to deploy Cortex in their own environment.
Example
This is an example of monitoring Cortex by adding
prometheus
andgrafana
using kustomizeCreate
development
Environmentmkdir -p deploy/overlays/dev
Create
kustomization.yaml
File structure:
kustomize build deploy/overlays/dev | kubectl apply -f -
More example detailed https://github.com/qclaogui/cortex-kustomize-demo.
Happy Cortex
Which issue(s) this PR fixes:
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]