mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-27 17:31:51 +02:00
kube-prometheus: mention command to install jsonnet
This commit is contained in:
parent
bed6e4865a
commit
a9f4752b30
@ -136,13 +136,13 @@ jsonnet -J vendor -m manifests "${1-example.jsonnet}" | xargs -I{} sh -c 'cat {}
|
|||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
> Note you need `jsonnet` and `gojsontoyaml` (`go get github.com/brancz/gojsontoyaml`) installed. If you just want json output, not yaml, then you can skip the pipe and everything afterwards.
|
> Note you need `jsonnet` (`go get github.com/google/go-jsonnet/jsonnet`) and `gojsontoyaml` (`go get github.com/brancz/gojsontoyaml`) installed. If you just want json output, not yaml, then you can skip the pipe and everything afterwards.
|
||||||
|
|
||||||
This script reads each key of the generated json and uses that as the file name, and writes the value of that key to that file.
|
This script reads each key of the generated json and uses that as the file name, and writes the value of that key to that file.
|
||||||
|
|
||||||
### Containerized Installing and Compiling
|
### Containerized Installing and Compiling
|
||||||
|
|
||||||
If you don't care to have `jb` or `jsonnet` or `gojsontoyaml` installed, then build the `po-jsonnet` Docker image (this is something you'll need a copy of this repository for). Do the following from this `kube-prometheus` directory:
|
If you don't care to have `jb` nor `jsonnet` nor `gojsontoyaml` installed, then build the `po-jsonnet` Docker image (this is something you'll need a copy of this repository for). Do the following from this `kube-prometheus` directory:
|
||||||
```
|
```
|
||||||
$ make ../../hack/jsonnet-docker-image
|
$ make ../../hack/jsonnet-docker-image
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user