mruoss / kino_k8s Goto Github PK
View Code? Open in Web Editor NEWA Livebook Kino for learning how to use the k8s Elixir library
License: Apache License 2.0
A Livebook Kino for learning how to use the k8s Elixir library
License: Apache License 2.0
Hi, love your work, this is a great idea. I'm using the same ~/.kube/k3s.yml (a kubernetes config) that works with kubectl to access a locally installed k3s cluster, however with kino_k8s I get this logged:
10:07:14.592 [error] Process #PID<0.2049.0> on node :"nghvqep3-livebook_gsabyd4w@medusa" raised an exception
** (MatchError) no match of right hand side value: {:error, %K8s.Client.HTTPError{message: "HTTP Error 503", adapter_specific_error: nil}}
(kino_k8s 1.2.1) lib/kino_k8s/resource_gvk_cache.ex:97: anonymous fn/3 in KinoK8s.ResourceGVKCache.load_gvks/3
(elixir 1.15.6) lib/enum.ex:2510: Enum."-reduce/3-lists^foldl/2-0-"/3
(kino_k8s 1.2.1) lib/kino_k8s/resource_gvk_cache.ex:96: anonymous fn/3 in KinoK8s.ResourceGVKCache.load_gvks/3
The connection smart cell does return a conn:
%K8s.Conn{
auth: K8s.Conn.Auth.Certificate<...>,
url: "https://127.0.0.1:6443",
cacertfile: "~/.cache/mix/installs/elixir-1.15.6-erts-14.0.2/170c5018437d0ffff816384e64da70c0/_build/dev/lib/castore/priv/cacerts.pem",
http_provider: K8s.Client.MintHTTPProvider,
discovery_driver: K8s.Discovery.Driver.HTTP,
discovery_opts: [],
namespace: nil,
middleware: %K8s.Middleware.Stack{
request: [
K8s.Middleware.Request.Initialize,
K8s.Middleware.Request.EncodeBody
],
response: []
},
cluster_name: "default",
user_name: "default",
insecure_skip_tls_verify: true,
ca_cert: <<48, 130, 1, 118, 48, 130, 1, 29, 160, ...>>
}
However subsequent cells using this conn either crash (connect to pod) or return nil (get/list/watch). I'm using "Insecure Skip TLS Verify" because without it the ssl handshake fails (k3s self-signed cert I guess).
This same kube config file works with the k8s elixir package version 2.5.0 to list deployments from this cluster and I haven't seen that error there.
This is the case with version 1.0 of this package and the latest from the main branch.
Render K8s connections in a nice way.
defimpl Kino.Render, for: K8s.Conn do
# whoohoo
end
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Location: .github/renovate.json5
Error type: Invalid JSON5 (parsing failed)
Message: JSON5.parse error: JSON5: invalid character '\'' at 5:5
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.tool-versions
kind 0.23.0
erlang 26.2.5
elixir 1.16.3
assets/apply_cell/app.tsx
assets/apply_cell/main.tsx
assets/apply_cell/types.d.ts
assets/connection_cell/app.tsx
assets/connection_cell/main.tsx
assets/connection_cell/types.d.ts
assets/get_cell/app.tsx
assets/get_cell/main.tsx
assets/get_cell/types.d.ts
assets/global.d.ts
assets/kino.d.ts
assets/kino_terminal/main.ts
xterm 5.5.0
xterm 5.5.0
assets/kino_terminal/types.d.ts
assets/shared/attr_state.tsx
assets/shared/conn_notice.tsx
assets/shared/error.tsx
assets/shared/form/input.tsx
assets/shared/form/search_select.tsx
assets/shared/form/select.tsx
assets/shared/form/select_or_input.tsx
assets/shared/gvk_option.tsx
assets/shared/types.d.ts
assets/shared/utils.ts
react 18.3.1
react-dom 18.3.1
react 18.3.1
react-dom 18.3.1
assets/terminal_cell/app.tsx
assets/terminal_cell/main.tsx
assets/terminal_cell/types.d.ts
.github/workflows/playwright.yml
actions/checkout v4
actions/setup-node v4
erlef/setup-beam v1
engineerd/setup-kind v0.5.0
actions/upload-artifact v4
mix.exs
ex_doc >= 0.0.0
k8s ~> 2.0
kino ~> 0.12.0
ymlr ~> 5.0
package.json
@playwright/test ^1.39.0
@types/node ^20.9.0
@types/react ^18.2.28
@typescript-eslint/eslint-plugin ^7.0.0
@typescript-eslint/parser ^7.0.0
classnames ^2.3.2
esbuild ^0.21.0
eslint ^8.52.0
npm-run-all2 ^6.0.0
prettier ^3.0.3
prettier-plugin-tailwindcss ^0.6.0
tailwindcss ^3.3.3
typescript ^5.2.2
xterm ^5.3.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.