-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #703 from shapeshift/promstack
feat: adding kube prometheus monitoring stack
- Loading branch information
Showing
14 changed files
with
470 additions
and
747 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This script uses arg $1 (name of *.jsonnet file to use) to generate the manifests/*.yaml files. | ||
|
||
set -e | ||
set -x | ||
# only exit with zero if all commands of the pipeline exit successfully | ||
set -o pipefail | ||
|
||
# Make sure to use project tooling | ||
PATH="$(pwd)/tmp/bin:${PATH}" | ||
|
||
# Make sure to start with a clean 'manifests' dir | ||
rm -rf manifests | ||
mkdir -p manifests/setup | ||
|
||
# Calling gojsontoyaml is optional, but we would like to generate yaml, not json | ||
jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {} | gojsontoyaml > {}.yaml' -- {} | ||
|
||
# Make sure to remove json files | ||
find manifests -type f ! -name '*.yaml' -delete | ||
rm -f kustomization | ||
|
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,15 @@ | ||
{ | ||
"version": 1, | ||
"dependencies": [ | ||
{ | ||
"source": { | ||
"git": { | ||
"remote": "https://github.com/prometheus-operator/kube-prometheus.git", | ||
"subdir": "jsonnet/kube-prometheus" | ||
} | ||
}, | ||
"version": "v0.12.0" | ||
} | ||
], | ||
"legacyImports": true | ||
} |
Oops, something went wrong.