From 5fcd399f5d07d3bf6c9f7f2aace0a117562d552c Mon Sep 17 00:00:00 2001 From: Owen Diehl Date: Thu, 20 Aug 2020 17:04:19 -0400 Subject: [PATCH] Update tanka.md with steps for using k8s-alpha lib (#2528) * Update tanka.md * Update docs/sources/installation/tanka.md Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> * Update docs/sources/installation/tanka.md Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> Co-authored-by: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> --- docs/sources/installation/tanka.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/sources/installation/tanka.md b/docs/sources/installation/tanka.md index b633881c9d746..a673ad8480c45 100644 --- a/docs/sources/installation/tanka.md +++ b/docs/sources/installation/tanka.md @@ -35,7 +35,20 @@ jb install github.com/grafana/loki/production/ksonnet/loki jb install github.com/grafana/loki/production/ksonnet/promtail ``` -Be sure to replace the username, password and the relevant `htpasswd` contents. +> **Note:** As of 2020-08-13, we use some features that are not yet generally available. This step will be unnecessary in future Tanka releases. For now, install this library, which we'll use as an override: + +```bash +jb install github.com/jsonnet-libs/k8s-alpha/1.14 +``` + +Next, override the `lib/k.libsonnet` with the following + +```jsonnet +(import 'github.com/jsonnet-libs/k8s-alpha/1.14/main.libsonnet') ++ (import 'github.com/jsonnet-libs/k8s-alpha/1.14/extensions/kausal-shim.libsonnet') +``` + +Be sure to replace the username, password, and the relevant `htpasswd` contents. Making sure to set the value for username, password, and `htpasswd` properly, replace the contents of `environments/loki/main.jsonnet` with: