Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
shorez
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Linux on the M1, with GPU Acceleration
(shorez.de)
65 points
by
shorez
5y ago
|
12 comments
2.
▲
Customize Helm charts without modifying them – using Grafana Tanka
(grafana.com)
18 points
by
shorez
6y ago
|
1 comments
3.
▲
by
shorez
7y ago
But only as long as it stays in a single file :(. And it does not have support for arrays as well
4.
▲
by
shorez
7y ago
You are welcome! Feel free to reach out via Slack if you have more questions: https://grafana.slack.com on the #tanka channel
5.
▲
by
shorez
7y ago
Glad to hear that :D
6.
▲
by
shorez
7y ago
Well, Helm did templating. Tanka does generating, because it seems to be more robust, as the tool understands the output (instead of string substituting a fragile syntax) See the docs on more details about generating: https://tan
7.
▲
by
shorez
7y ago
Delete: No, we need to add that command. For now, use `tk show --dangerous-allow-redirect | kubectl delete -f -`. Diff: Use `tk diff`. It shows the differences between the local Jsonnet and the cluster. `tk apply` makes them reality afterwa
8.
▲
by
shorez
7y ago
Regarding Jsonnet: 1. Documentation is bad. We know that and work on improving that. Some resources that might help: - https://tanka.dev/jsonnet/overview : Our own docs include some notes about Jsonnet in general for ne
9.
▲
by
shorez
7y ago
Downfalls of a bash based approach: You need to maintain it. And bash is hard to debug, especially when the house is on fire (production outage, etc) Integrating should be quite straigthforward. Install Tanka, create a new project (tk init)
10.
▲
by
shorez
7y ago
So, let me share what we do internally at Grafana Labs: General: 1. We run everything on Kubernetes 2. We configure it using Tanka, keep all Jsonnet in git 3. Changes are done using PullRequest --- Grafana (the software) related: 1. We
11.
▲
by
shorez
7y ago
Exactly like YAML does. With Tanka you would usually use the functions provided by `k.libsonnet` to generate your manifests. For CRD's, there are no helpers available, so you either just write the plain manifest as a Jsonnet object (JS
12.
▲
by
shorez
7y ago
Hi, you won't have much contact with JSON at all. While Jsonnet is technically a superset, all you will see during use is most probably function calls and imports. You won't have to actually write the Kubernetes objects anymore, t
13.
▲
by
shorez
7y ago
Oh, too bad :( The site is hosted on Netlify and seems to be working for most other people. Maybe reset your browser cache, check your network or try on your phone using cellular data instead? If the issue persists, I'll take a closer
14.
▲
by
shorez
7y ago
Kubernetes is very good at keeping track of state and maintaining it. You "just" tell it the state you want and it makes sure it becomes reality (this is the whole point of k8s actually). Terraform is doing the same thing, just fo
15.
▲
by
shorez
7y ago
You could use Tanka and Jsonnet to improve this for Grafana dashboards: https://github.com/grafana/grafonnet-lib . Would that work for you?
16.
▲
by
shorez
7y ago
On the same track as well! CUE looks exciting and we might very much implement add it to Tanka when it proves to be useful. We have chosen Jsonnet because it already had an ecosystem and served us well, but Tanka is open to other languages
17.
▲
by
shorez
7y ago
(Tanka dev here) Nobody can neglect the power of helm charts (because so many already exist), so I think Tanka will add support soon. Even though we are focused on Jsonnet right now, this does not necessarily need to stay that way forever.
18.
▲
by
shorez
7y ago
(Tanka dev here) I think this highly depends on your deployment process .. do you want full continuous deployment (CI deploying to the cluster)? In this case you could continue to use for example Jenkins to run `tk apply <environment>
19.
▲
by
shorez
7y ago
Anchors are fairly limited: - they are bound to a single file. This won’t help you when trying to maintain multiple similar sets of Config - anchors do not support patching. If you need to change a nested key, you can’t do so without it aff
20.
▲
Deploying Ubuntu Cloud Images to VSphere Using Terraform
(shorez.de)
1 points
by
shorez
8y ago
|
0 comments