Offline Installation¶
This page describes how to download the ClawOS offline package and install it.
Download¶
Download the ClawOS offline package using the following link:
https://qiniu-download-public.daocloud.io/DaoCloud_Enterprise/agentclaw_v0.2.0_amd64.tar
If a newer version is released, replace v0.2.0 accordingly.
Load Images and Chart Packages from the Offline Bundle¶
Info
Prerequisite: Upload the offline package to the target node.
You can load images using one of the following two methods.
If a container registry is available in your environment, it is recommended to use chart-syncer to sync images to the registry, as it is more efficient and convenient.
Sync Images to a Container Registry Using chart-syncer¶
-
Create
load-image.yamlNote
All parameters in this YAML file are required. You must have a private container registry and update the configuration accordingly.
If a chart repository is already installed, chart-syncer can also export Charts to the specified repository.
load-image.yamlsource: intermediateBundlesPath: clawos-offline # (1)! target: containerRegistry: 10.16.10.111 # (2)! containerRepository: release.daocloud.io/clawos # (3)! repo: kind: HARBOR # (4)! url: http://10.16.10.111/chartrepo/release.daocloud.io # (5)! auth: username: "admin" # (6)! password: "Harbor12345" # (7)! containers: auth: username: "admin" # (8)! password: "Harbor12345" # (9)!- Relative path from where
charts-synceris executed, not relative to this YAML file - Replace with your container registry URL
- Replace with your container repository
- Can be any supported Helm Chart repository type
- Replace with your chart repo URL
- Your registry username
- Your registry password
- Your registry username
- Your registry password
If a chart repository is not installed, chart-syncer can export Charts as
.tgzfiles to a local path.load-image.yamlsource: intermediateBundlesPath: clawos-offline # (1)! target: containerRegistry: 10.16.10.111 # (2)! containerRepository: release.daocloud.io/clawos # (3)! repo: kind: LOCAL path: ./local-repo # (4)! containers: auth: username: "admin" # (5)! password: "Harbor12345" # (6)!- Relative path from where
charts-synceris executed, not relative to this YAML file - Replace with your container registry URL
- Replace with your container repository
- Local chart output path
- Your registry username
- Your registry password
- Relative path from where
-
Run the sync command:
Load Images Directly Using Docker or containerd¶
Extract the tar package and load images manually.
-
Extract the tar archive:
After extraction, you will get:
- hints.yaml: image template
- images.tar: container images
- original-chart: chart package
-
Load images into Docker or containerd:
Note
Each node must load images into Docker or containerd individually.
After loading, you must tag images to ensure Registry and Repository match the installation configuration.
Installation¶
Prerequisites¶
-
Ensure the target Kubernetes cluster has the required dependencies installed:
- hydra-apiserver
- kpanda-apiserver
- ghippo-apiserver
- kpanda-clusterpedia-apiserver
-
Update hydra AuthorizationPolicy to allow traffic from
agentclaw-system: -
Configure kube-state-metrics in
insight-system:apiVersion: apps/v1 kind: Deployment metadata: name: insight-agent-kube-state-metrics namespace: insight-system spec: template: spec: containers: - name: kube-state-metrics args: - --metric-labels-allowlist=nodes=[feature.node.kubernetes.io/cpu-cpuid.HYPERVISOR] - '--port=8080' - --resources=configmaps,cronjobs,daemonsets,deployments,horizontalpodautoscalers,jobs,limitranges,namespaces,networkpolicies,nodes,persistentvolumeclaims,persistentvolumes,pods,replicasets,replicationcontrollers,resourcequotas,secrets,services,statefulsets,storageclasses + - --metric-annotations-allowlist=deployments=[agentclaw.io/instance-name,agentclaw.io/workspace-id]
Install via Kpanda UI¶
After successfully syncing images and charts using chart-syncer, you can install directly from the Kpanda Helm Applications page.
Update the offline repository, locate the agentclaw chart, and install it. No parameter changes are required.
Install via Helm CLI¶
-
Add Helm repository:
-
Install the chart: