AGENT SKILL

octelium-kubernetes-install

Plan and perform a production Octelium Cluster installation on an existing Kubernetes cluster (EKS, GKE, AKS, DigitalOcean, Linode, on-prem, k3s/RKE2/Talos, multi-node) with `octops init` and a Bootstrap file. Covers Octelium data-plane/control-plane node labels, primary CNI plus Multus (Cilium non-exclusive), CNI conf dir, Gateway public IPs and the `octelium.com/override-gw-ip` annotation, the LoadBalancer Ingress, front proxy mode, SPIFFE, external PostgreSQL and Redis/Valkey with passwordFromSecret, network ranges, QUIC, and post-install DNS, TLS (cert-manager or `octops cert`) and first login. Use for "install Octelium on Kubernetes/production/multi-node" or `octops init` problems. Not for a single fresh VM (octelium-quick-install), upgrades or Day-2 operations (octelium-cluster-ops), or managing resources (octelium-management).

License 许可
Apache-2.0
最近更新
2026-10-10
Stars
★ 0
Forks
0

01 前言 Front Matter

name
octelium-kubernetes-install
license
Apache-2.0
metadata
{ "author": "Octelium Labs, LLC", "version": "0.1.0", "verified-against": "octelium v0.43.0" }
description
Plan and perform a production Octelium Cluster installation on an existing Kubernetes cluster (EKS, GKE, AKS, DigitalOcean, Linode, on-prem, k3s/RKE2/Talos, multi-node) with `octops init` and a Bootstrap file. Covers Octelium data-plane/control-plane node labels, primary CNI plus Multus (Cilium non-exclusive), CNI conf dir, Gateway public IPs and the `octelium.com/override-gw-ip` annotation, the LoadBalancer Ingress, front proxy mode, SPIFFE, external PostgreSQL and Redis/Valkey with passwordFromSecret, network ranges, QUIC, and post-install DNS, TLS (cert-manager or `octops cert`) and first login. Use for "install Octelium on Kubernetes/production/multi-node" or `octops init` problems. Not for a single fresh VM (octelium-quick-install), upgrades or Day-2 operations (octelium-cluster-ops), or managing resources (octelium-management).
compatibility
Requires kubectl and octops with cluster-admin access to the target Kubernetes cluster, reachable PostgreSQL and Redis-compatible datastores, and a domain the user controls.

02 资源文件 6

03 SKILL.md 正文

Octelium: production install on Kubernetes

octops init <DOMAIN> --bootstrap <file> installs Octelium into the octelium namespace of an existing Kubernetes cluster by running the Genesis installer job, then waits for the Cluster and prints the initial login token. Everything else (nodes, CNI, datastores, load balancer, DNS, certificates) is the operator's responsibility and must be ready or planned first.

Scope

  • Use for: production and multi-node installations, bring-your-own Kubernetes/datastores, Bootstrap authoring, octops init failures.
  • Hand off: one fresh VM → octelium-quick-install. Upgrades, certificate rotation, packages, health, uninstall → octelium-cluster-ops. Users/Services/Policies → octelium-management.

Ground rules

Preserve the user's authorized target and outcome across steps. Prepare the Bootstrap and installation plan before asking for any missing authorization. Ask only for unresolved inputs or destructive scope; a request to install on the specified empty cluster covers that install.

  1. octops init is destructive for an existing installation. It deletes and re-creates the octelium namespace, and Genesis truncates the octelium_resources table and flushes the Redis database it's given. Never run it against a Kubernetes cluster that already has an octelium namespace, or with datastores holding another Cluster's data, unless the user asks to wipe and re-create. It isn't a repair or upgrade tool.
  2. No confirmation without a TTY. octops init normally asks for confirmation; from an agent shell it proceeds immediately. Check the command, kubecontext and domain against the user's authorized installation; a wipe of existing data needs informed authorization of that reset.
  3. Dedicated datastores. Use a dedicated PostgreSQL database and a dedicated Redis/Valkey (or at least a dedicated DB index): Genesis flushes the Redis DB. Never point it at a shared cache.
  4. Keep credentials out of the Bootstrap file. Prefer passwordFromSecret (Kubernetes Secret references) over inline passwords; octops init stores the whole Bootstrap in the default/octelium-init Kubernetes Secret, and files end up in shells, repos and backups. Never invent datastore hosts or credentials: ask.
  5. Keep the initial token out of logs. Run init with OCTELIUM_AUTH_TOKEN_SAVE_PATH=<private file> (written with mode 0600) and OCTELIUM_SKIP_MESSAGES=true so the token isn't printed into the terminal or transcript.
  6. Don't guess network facts. Node public IPs, NAT, load balancer type, CNI and container runtime come from the cluster (kubectl get nodes -o wide, provider docs) or the user. Changing the Cluster network range after installation isn't supported by these tools: check 100.64.0.0/10 (the default IPv4 range) against the user's networks before install.
  7. Target the right cluster. Pass --kubeconfig/--kubecontext explicitly and echo kubectl config current-context back to the user before installing.

Workflow

  1. Discover (read-only): kubectl version, kubectl get nodes -o wide --show-labels, CNI pods (kubectl get pods -n kube-system), container runtime (node CONTAINER-RUNTIME column), kubectl get ns octelium (must be NotFound), kubectl get storageclass, whether a LoadBalancer Service gets an external IP on this cluster.
  2. Plan with the user using references/prerequisites.md: which nodes are Octelium data-plane (Gateways, need public reachability on UDP 53820) and control-plane (at least one each; 2 vCPU/2 GB per node minimum); Multus install flavor; CNI conf dir; datastores; Ingress exposure (cloud LB, MetalLB, or single-node external IP); front proxy; SPIFFE; network mode/range; QUIC; target Octelium version.
  3. Prepare the cluster: label nodes (octelium.com/node-mode-dataplane= / octelium.com/node-mode-controlplane=), annotate NATed data-plane nodes with octelium.com/override-gw-ip=<PUBLIC_IP>, install/verify the CNI and Multus, create datastore credential Secrets.
  4. Write the Bootstrap (references/bootstrap.md; template assets/bootstrap.example.yaml).
  5. Check datastore connectivity from inside the cluster (a throwaway pod with psql/ valkey-cli or redis-cli against the exact host/port/TLS settings) before init.
  6. Install the prepared, authorized configuration:
    (
      set -euo pipefail
      umask 077
      token_file="$(mktemp ./octelium-init-token.XXXXXX)"
      printf '%s\n' "$token_file"
      OCTELIUM_AUTH_TOKEN_SAVE_PATH="$token_file" OCTELIUM_SKIP_MESSAGES=true \
        octops init <DOMAIN> --bootstrap bootstrap.yaml --kubeconfig <path> --kubecontext <ctx> [--version <v>]
    )
    
    Report the protected token path only. On failure, retain the file privately for diagnosis; the command may have saved a token before a later failure. It blocks until the Cluster is ready (often several minutes). Use the agent's long-running command facility or a background process with a retained handle/PID and private log path; follow the Genesis Job. A local timeout doesn't cancel the Kubernetes Job: inspect it before retrying init.
  7. Verify, DNS, TLS, first login → references/install-and-verify.md: pods Ready in octelium, octelium-ingress-dataplane has an external address, DNS A <DOMAIN> + CNAME *.<DOMAIN>, certificate Secret cert-cluster, then the user logs in with the saved token and creates named admins (octelium-management).

References

Need File
Node roles, CNI/Multus, Cilium, CNI dirs, Gateways and NAT, Ingress/LB, front proxy, SPIFFE, ports, datastores references/prerequisites.md
Bootstrap fields, examples, secrets, version differences references/bootstrap.md
octops init behavior and env vars, verification, DNS, TLS, first login references/install-and-verify.md
Failure symptoms and fixes references/troubleshooting.md
Exact octops flags (snapshot) references/cli-octops.md

Sources of truth

  1. octops <command> --help of the installed version (and the version you install: pass --version to pin).
  2. Docs: https://octelium.com/docs/octelium/latest/install/cluster/pre-install.md, https://octelium.com/docs/octelium/latest/install/cluster/installing-cluster.md, https://octelium.com/docs/octelium/latest/install/cluster/bootstrap.md, and the llms.txt index. Where the docs describe environment variables that this skill says moved into the Bootstrap (v0.40.0+), trust the Bootstrap for v0.40.0 and later.
  3. The bundled references.

04 同仓库更多 Skills

octelium
octelium/octelium-skills

octelium-quick-install

Install, resume, repair or remove a single-node Octelium Cluster on one Linux VM/VPS with the official quick installer (https://octelium.com/install-cluster.sh), which provisions K3s, Multus, PostgreSQL and Valkey and bootstraps Octelium. Covers host and domain prerequisites, NAT/cloud firewalls (`--nat`, `--public-ip`, ports), installer options, resuming a failed run, post-install public DNS and TLS certificate (certbot + `octops cert`), the first login with the initial token, and the safe use of `--uninstall`, `--purge-data`, `--reset-db` and `--force`. Use for "install Octelium on a server/VPS/homelab/single node" or installer errors. Not for existing or multi-node Kubernetes (octelium-kubernetes-install), upgrades and certificate rotation of a running Cluster (octelium-cluster-ops), or managing resources (octelium-management).

★ 0
octelium
octelium/octelium-skills

octelium-management

Manage the resources of a running Octelium Cluster with octeliumctl: Services (HTTP, SSH, PostgreSQL, MySQL, Kubernetes, TCP/UDP, DNS, SOCKS5, RDP, MCP, LLM; public/anonymous, secretless upstream credentials, managed containers, dynamic config), Users, Groups, Namespaces, Policies and access control (CEL/OPA conditions, priorities, inline and global Policies), IdentityProviders (GitHub, OIDC, SAML, workload OIDC assertions), Credentials, Sessions, Secrets and ClusterConfig. Use when creating, changing, auditing or deleting Cluster resources, granting or revoking access, writing Policy YAML, or running `octeliumctl apply/get/create/ update/delete`. Not for connecting as a client (octelium-connect), installing a Cluster (octelium-quick-install, octelium-kubernetes-install), or upgrades, TLS certificates and Kubernetes-level operations (octelium-cluster-ops).

★ 0
octelium
octelium/octelium-skills

octelium-connect

Use the octelium client to reach an existing Octelium Cluster as a User. Covers installing the CLIs, logging in (browser/IdP, authentication token, OIDC assertion, access token), `octelium connect` (detached, rootless, `-p` publishing Services to localhost, `--serve` to host Services, embedded SSH/SOCKS5, QUIC), reaching Services by name or FQDN (HTTP, SSH, PostgreSQL, MySQL, Kubernetes via `octelium config`), `octelium ssh`/`cp`, running the client in Docker, Kubernetes or CI, and fixing login, tunnel and DNS failures. Use when someone wants to access, connect to or serve through Octelium. Not for creating Services, Users or Policies (octelium-management) or for installing/operating a Cluster (octelium-quick-install, octelium-kubernetes-install, octelium-cluster-ops).

★ 0
octelium
octelium/octelium-skills

octelium-cluster-ops

Operate an installed Octelium Cluster at the Kubernetes/infrastructure level with octops and kubectl: check for and perform upgrades (`octops upgrade`), set or rotate the Cluster and Namespace TLS certificates (`octops cert`, cert-manager, the `cert-cluster` Secret), install or upgrade packages (Cordium, Enterprise), check Cluster health and component logs, add or change data-plane nodes and Gateway public IPs, recover the initial admin token, and uninstall (`octops uninstall`). Use for Day-2 operations and outages where the Cluster itself (not a Policy) is suspect. Not for first-time installation (octelium-quick-install, octelium-kubernetes-install), managing Users/Services/Policies (octelium-management), or client-side connection problems (octelium-connect).

★ 0
octelium
octelium/octelium-skills

cordium

Install, configure and use Cordium, the identity-based sandbox platform built on Octelium and Kubernetes. Use for Cordium Workspaces, the cordium CLI, Go/Python/Rust/TypeScript SDKs, the web portal and Cordium Agent, Workspace/Template YAML, Spaces and Memberships, pre-builds, Secrets and GitProviders, UserConfig and UserSecrets, Volumes and WorkspaceSnapshots, secretless access, egress rules and the Cordium ClusterConfig. Routes to configuration references and worked examples for development, AI agents and CI/CD. Not for Octelium Services and Policies in general (octelium-management), client tunnels (octelium-connect), or installing and operating the Octelium Cluster (octelium-quick-install, octelium-kubernetes-install, octelium-cluster-ops).

★ 0