agent icon indicating copy to clipboard operation
agent copied to clipboard

Tanka deployment using obsolete k8s-library

Open c0ffeec0der opened this issue 2 years ago • 3 comments

When generating manifest from tanka, this warning occur

TRACE: k8s-alpha is deprecated, please use 'github.com/jsonnet-libs/k8s-libsonnet' instead.

However when using the updated library, error occured

RUNTIME ERROR: couldn't open import "doc-util/main.libsonnet": no match locally or in the Jsonnet library paths

My analysis is that the libary use below strategy

local k = import 'ksonnet-util/kausal.libsonnet';

k + config { ...

$.util ..

or

$.core ...

loki tanka deployment is using function method call and upgrading k8s library have no issue; perhaps this libary could follow the same pattern; but will require quite a lot of revamp..

c0ffeec0der avatar Apr 11 '22 04:04 c0ffeec0der

Hi, sorry, which Tanka deployment are you using? I can only find references to k8s-alpha in our example/k3d folder, which isn't meant to be used for production or as a library.

rfratto avatar Apr 13 '22 15:04 rfratto

Hello,

I was referring to this page

https://github.com/grafana/agent/blob/main/production/README.md#use-our-production-tanka-configs

The recommendation is as below

# substitute your target k8s version for "1.16" in the next few commands
jb install github.com/jsonnet-libs/k8s-alpha/1.16

when I switch to github.com/jsonnet-libs/k8s-libsonnet ; it won't work as per my initial post

c0ffeec0der avatar Apr 14 '22 08:04 c0ffeec0der

Right, that page is definitely out of date and needs to be updated. Thanks for clarifying!

rfratto avatar Apr 18 '22 15:04 rfratto

Still got this error! Any updates?

vitalyu avatar Aug 27 '23 20:08 vitalyu

At this point, we really haven't maintained the Tanka library, and it's probably likely to go away in the future because of that.

I'd recommend trying to use the Grafana Agent Helm chart with Tanka's native support for Helm charts. Helm charts are where we're investing more of our time in, since Helm is dramatically more popular than Jsonnet/Tanka.

rfratto avatar Aug 31 '23 18:08 rfratto

The Tanka library has been removed in favor of the Helm charts a few months ago. Closing as won't do.

rfratto avatar Apr 09 '24 17:04 rfratto