Using jsonnet to generate kube manifests and deploy to kubernetes cluster
This project was created to learn jsonnet using tanka. In this demo we will install prometheus using tanka on a kubernetes cluster.
Install tanka and jsonnet-bundler
-
Set apiserver address
Get api-server address from kubeconfig or by executing
kubectl cluster-info
Example for minikube
tk env set environments/default --server=https://127.0.0.1:52585
-
Review manifests that will be applied,
tk show environments/default
-
Apply the manifests
tk apply environments/default