Originated from kube-prometheus
$ kubectl apply -f manifests/setup
$ kubectl apply -f manifests/
Configure example.jsonnet
.
DO NOT MODIFY FILES IN THE manifests/
FOLDER MANUALLY.
$ docker run --rm -v $(pwd):$(pwd) --workdir $(pwd) quay.io/coreos/jsonnet-ci jb update
jb
downloads kube-prometheus
dependency to vendor
folder.
$ docker run --rm -v $(pwd):$(pwd) --workdir $(pwd) quay.io/coreos/jsonnet-ci ./build.sh example.jsonnet
build.sh
script creates a bunch of manifest files in the manifest/
folder. Use kubectl
to create/update kubernetes object as per your configuration:
$ kubectl apply -f manifests/setup
$ kubectl apply -f manifests/