GithubHelp home page GithubHelp logo

mruoss / kino_k8s Goto Github PK

View Code? Open in Web Editor NEW
8.0 3.0 0.0 1.89 MB

A Livebook Kino for learning how to use the k8s Elixir library

License: Apache License 2.0

Elixir 54.54% TypeScript 44.05% CSS 0.25% JavaScript 1.16%
elixir kubernetes livebook

kino_k8s's People

Contributors

mruoss avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

kino_k8s's Issues

Unable to connect to local k3s cluster

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.

Action Required: Fix Renovate Configuration

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

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

asdf
.tool-versions
  • kind 0.23.0
  • erlang 26.2.5
  • elixir 1.16.3
cdnurl
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-actions
.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
mix.exs
  • ex_doc >= 0.0.0
  • k8s ~> 2.0
  • kino ~> 0.12.0
  • ymlr ~> 5.0
npm
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

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.