Skip to content

kube-go/jsonnet_with_tanka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonnet_with_tanka

Using jsonnet to generate kube manifests and deploy to kubernetes cluster

Motivation

This project was created to learn jsonnet using tanka. In this demo we will install prometheus using tanka on a kubernetes cluster.

Pre-requisites

Install tanka and jsonnet-bundler

Usage

  • 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