Repository navigation
k8shell: provisioner GPU support config, provisioner pr-66-33a2c27 - #14
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k8shelld v0.17.6 (workspace GPU metrics)
- provisioner.nodeUsage.{enabled,nodeMetrics,otherPods} (all false by
default, in the values schema), rendered into the provisioner config.
- clusterrole-nodes.yaml is created when nodeSelectorKeys are set or node
usage is on; it adds metrics.k8s.io nodes only with nodeMetrics and
cluster-wide pods (get/list) only with otherPods, so a minimal
installation gets no extra permissions.
- files/policies/node.rego: node:usage:read for admins (all nodes) and
org-admins / <group>-admins (their organization's nodes, org obligation).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Node usage page (Performance → Usage)
The provisioner no longer hard-wires the schedule time zone and the force-start duration (provisioner#70), so they must be configurable: provisioner.schedule.timezone and .forceStartDuration (empty by default, in the values schema), rendered into the provisioner config only when set; unset, the provisioner uses its local zone (UTC in the container) and 1h. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k8shell: provisioner.schedule (timezone, forceStartDuration)
GPU usage in the node usage view from HAMi's vGPU monitor (off by default): rendered into the provisioner config, plus a Role and RoleBinding in HAMi's namespace (default hami-system) to list the monitor service's EndpointSlices. Schema with namespace, service, port and path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k8shell: provisioner.nodeUsage.gpuMetrics
Part of k8shell-io/k8shell#8: each organization's standalone workspaces run in "<provisioner.targetNamespace>-<organization>", with an optional quota. - provisioner: ClusterRole provisioner-workspaces-<release namespace> with the workspace rules (shared with the target namespace Role, now also resourcequotas and limitranges), bound by the provisioner in each organization namespace; ClusterRole provisioner-org-namespaces-<release namespace> (namespaces, rolebindings, bind on that ClusterRole) - provisioner config: orgNamespaces (workspaceClusterRole, serviceAccount, optional containerDefaults) - checks: targetNamespace at most 22 characters, cert-manager issuer must be a ClusterIssuer - identity.organizations: name rule (lowercase DNS label, at most 40 characters) and optional quota in the values schema - org.rego: org:quota:write for admins only, with policy tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Organization namespaces and quotas
ssh-proxy serves HTTP /healthz on port 8022 (health.port): the container gets a health port with readiness and liveness probes on it, and the ssh-nodeport Service gets an optional health NodePort (sshProxy.nodePort.healthPort) for an external load balancer's checks. Needs an ssh-proxy image with the health endpoint. Part of k8shell-io/k8shell#9 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SSH proxy: HTTP health endpoint for load balancers and probes
organizations.enabled (default true): with false, a single organization (the only entry of identity.organizations) in organizations.defaultNamespace.name, set up with a Role (and the Namespace, kept on uninstall, with defaultNamespace.create), instead of the organization-namespace ClusterRoles; identity gets singleOrganization. injectNamespaces ["*"] renders ClusterRoles for the provisioner and identity instead of a Role in a namespace named '*'. The provisioner's namespaced rules are trimmed to what it uses and stay within Kubernetes' built-in admin role; the quota rules (organizations.defaultNamespace.quota) and pods/resize (provisioner.liveResize) are optional, so a namespace admin can install k8shell. Adds deletecollection on certificates (fixes #24). k8shell/rbac-tests/run.sh, run in CI, asserts which cluster-scoped objects each feature combination renders (none for a minimal installation). README: permissions and minimal installations. Part of k8shell-io/k8shell#11 (feature/cluster-rbac-by-feature). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of k8shell-io/k8shell#11 (feature/cluster-rbac-by-feature). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cluster-scoped RBAC only for the features that need it
…ons allow bin/quickstart-v2.sh installs the k8shell 2.x chart in the style of quickstart.sh. It checks what the current Kubernetes user may do (cluster RBAC, creating namespaces, the rights in each namespace, quota and pods/resize, nodes, metrics-server, Cilium, a free SSH NodePort) and proposes a mode, overridable with --mode: - full: organizations, node pools, node usage (cluster admin); - no-cluster-rbac: a single organization, the script creates the namespaces; - namespace-admin: a single organization in existing namespaces (by default the context's namespace), quota and live resize only if they may be granted. --dry-run shows the plan and the values. The chart version is the newest 2.x in the registry (by the OCI created annotation) unless --version is given; images and chart come from registry.k8shell.io with credentials, --registry "" for public images later. Keys, passwords and the JWT signing key are kept in ~/k8shell-quickstart, so running it again upgrades the same installation; it generates the web UI password of admin (bcrypt from htpasswd, python3 bcrypt or mkpasswd) and enables password sign-in, sets up the web UI on the cluster's IngressClass with a <node-ip>.nip.io host, and lists the pods that are not ready when the install fails. Chart: ingress.className (default k8shell-ingress, unchanged) for the Ingresses of the web UI and the API. README: quickstart for k8shell 2.x. Part of k8shell-io/k8shell#14 (feature/quickstart-v2). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
quickstart-v2.sh: install k8shell 2.x in the mode the user's permissions allow
quickstart-v2.sh now checks before installing, where the user's permissions allow it: that k8shell's images (those the chart and the values files name, read from the registry) are published for the nodes' architectures; that the cluster has a default StorageClass (refused without one unless values files are given); that the web UI's address answers (a warning: the IngressClass's controller must be reachable there). It builds the dependencies of a local chart directory. The summary shows the architectures and the storage. Chart: k8shelld v0.17.7, the first multi-arch (linux/amd64, linux/arm64) release. README: the checks, arm64 / Apple Silicon and local cluster notes (a Traefik example with hostPort), single quotes for passwords. Part of k8shell-io/k8shell#13 (feature/multi-arch-images). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Multi-arch images: amd64 and arm64 for release builds
license values (token as a seed, force, hosts, checkInterval) with schema, the license file mounted into identity, the hosts in the identity and provisioner config, the license:write policy (admins) with tests, README. Part of k8shell-io/common#15 (common v0.65.16) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
License limits: free tier with limits, lifted by a signed license
provisioner.injectDevrun.enabled (default true) lets the provisioner wrap the service container of a workload with an injected workspace in devrun, so the workspace can hot-reload the service (rendered into the provisioner config only when switched off). Schema entry, values comment and a README section "Hot reload in injected workspaces". Part of k8shell-io/k8shell#15 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Part of k8shell-io/k8shell#15 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hot reload for injected workspaces (devrun)
promote-k8shell.yaml (workflow_dispatch, chart version, dry_run) pulls a released chart from the internal registry, rewrites its image repositories to ghcr.io/k8shell-io/<name> and empties imageRegistry.host (bin/ghcr-chart-rewrite.sh, which refuses pr-* tags), checks that every image is on ghcr.io with the digest it has internally, and pushes the chart as the same version to oci://ghcr.io/k8shell-io/charts/k8shell. quickstart-v2.sh 2.1.0 defaults to that public chart with no registry credentials; internal installs pass --chart oci://registry.k8shell.io/charts/k8shell --registry registry.k8shell.io. Its architecture check finds ghcr.io images too. Part of k8shell-io/k8shell#18 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Release process: promote releases to ghcr.io
Chart version 2.1.0, appVersion 26.11.3; every service image pinned to its release tag from release/candidate-5 (provisioner no longer on a PR build): api-server v0.20.0, authz v0.4.0, frontend v0.19.1, identity v0.19.0, idp-github v0.15.1, idp-google v0.2.1, provisioner v0.18.0, session v0.16.0, ssh-proxy v0.19.0; k8shelld v0.17.8 and ssh-shield v0.13.3 unchanged. Checked: helm lint, helm template (only release tags), rbac-tests (14 ok). Part of k8shell-io/k8shell#18 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The NATS server reads NATS_K8SHELL_PASSWORD as an unquoted config value
(auth.conf: password: $NATS_K8SHELL_PASSWORD); a value starting with a digit
parses as a number and the server exits ("Expected a top-level value to end
with a new line"), so every service fails to connect. openssl rand -hex 24
starts with a digit 10 times out of 16. Prefix the generated passwords with a
letter. Found by the 26.11.3 scratch-namespace install.
Part of k8shell-io/k8shell#18
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
release 26.11.3: chart 2.1.0 with the release images
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.