On this page
Kubernetes deployment
Use the TeGo Digital Employee Collaboration Platform offline Kubernetes package to install K3s, Longhorn, and infrastructure, then deploy the platform with Helm.
Before deployment
The current public release index does not list a Kubernetes installation package. See Server releases.
- Contact the delivery team for the full offline package
tego-avatar-k8s-版本-架构.tar. Extract it and open the directory containingsetup.sh. Select theamd64orarm64package to match all nodes. - Contact Sales for a license. Set it in
TEGO_LICENSEinconfig.env. - Run the installation as root on the server configured as
NODE1_IP. That server needs passwordless root SSH access to every node, including itself. This also applies to single-node deployments. - Use one or three nodes for a new cluster. All three nodes run K3s server in a three-node setup. The installer does not accept two-node control planes.
- Prepare 8 CPU cores, 16 GiB of RAM, and 300 GiB of disk space per node. This resource baseline does not specify supported concurrency or digital employee counts.
- Install
zstd,ssh, andopensslon the installation host. Install system dependencies on offline nodes in advance or provide a local package repository.
Node requirements
| Item | Required state before installation |
|---|---|
| Operating system and kernel | Ubuntu 22.04+, Debian 12+, or RHEL, Rocky Linux, AlmaLinux, or CentOS 8+. Requires systemd and kernel 4.18 or later. |
| Host firewall | firewalld is disabled. Control access with security groups or upstream equipment. |
| Swap | Disabled. |
| Kernel modules | The kernel includes br_netfilter and iscsi_tcp. Add missing modules on minimal kernels. |
| SELinux | Install container-selinux when using Enforcing mode. |
| System dependencies | Each node has iptables, zstd, and iSCSI tools, or can access a repository that provides them. Use open-iscsi on Debian or Ubuntu and iscsi-initiator-utils on RPM-based systems. |
| Node clocks | Clock skew across nodes cannot exceed 60 seconds. The installer recommends synchronizing clocks if skew exceeds 5 seconds. |
| Port availability | On each node, ports 6443, 10250, 5178, 80, and 443 must be unused. The preflight requires them to be free; it does not require exposing all of them. |
Network access
| Source and destination | Ports and purpose |
|---|---|
| Node1 to all nodes, including itself | TCP 22 for SSH installation and artifact distribution. |
| Between cluster nodes | TCP 6443 for the K3s API, TCP 10250 for kubelet, and UDP 8472 for Flannel VXLAN. Three-node clusters also require TCP 2379–2380 for etcd. |
| Client or external reverse proxy to cluster nodes | TCP 5178 for the shared HTTP and WebSocket endpoint. |
| Application to infrastructure | Allow PostgreSQL, Redis, S3, and LDAP if enabled, as configured in config.env. The bundled defaults, TCP 5432, 6379, 3900, and 389, are for internal access only. |
See Environment requirements for general host and network requirements.
Installation scope
02-install-k3s.sh installs Docker, K3s, and Longhorn, and restarts Docker on the nodes. For an existing cluster, follow the requirements on this page instead of running the new cluster steps.
Create a cluster and install the platform
Run the following steps from the extracted installation package.
Open
config.envand configure nodes, infrastructure, and the license.bashvi config.envSetting Value NODE1_IPPrivate IPv4 address of the first node. Required. NODE2_IP,NODE3_IPSet both for a three-node deployment. Leave both blank for a single node. INFRA_NODE_IPNode that hosts bundled infrastructure. Defaults to NODE1_IP.INFRA_BIND_IPPrivate address on which infrastructure listens. Do not use 0.0.0.0.POSTGRES_MODE,REDIS_MODE,S3_MODESet each to bundledorexternal.LDAP_MODESet to bundled,external, ordisabled.IM_MODEDefaults to bundled. Set todisabledto omit the work conversation service.DATA_ROOTMount path for the data disk. Leave blank to use the installer default. TEGO_LICENSEEnter the issued license. If blank, the platform runs in restricted mode. In
bundledmode, the installer uses Docker Compose to start the corresponding service on the infrastructure node. Inexternalmode, it connects to an existing service. See Configuration files and external services for connection details, credentials, and database permissions. Leave the package'sTEGO_VERSIONandARCHunchanged; they must match its images.Install the cluster, storage, and infrastructure. Wait for the script to finish.
bash./02-install-k3s.shThe installer distributes the offline images, installs K3s and Longhorn, and starts each dependency set to
bundled. If all infrastructure isexternal, it skips deployment of the supporting infrastructure.Install the platform. Wait for the Helm release and initialization job to finish.
bash./setup.shThe installer creates the
tego-avatarandtego-avatar-runtimenamespaces and the platform Secret, then runs the Helm installation. The terminal shows the endpoint on success.Open the endpoint printed in the terminal (
http://节点IP:5178). Sign in with the account set ininit.adminEmailinchart/values.yaml.The initial password for the default private deployment mode is
DEFAULT_ADMIN_PASSWORDinconfig.env. It is also available from the Secret:bashkubectl -n tego-avatar get secret tego-avatar-secrets \ -o jsonpath='{.data.OS_ADMIN_PASSWORD}' | base64 -dWith
DEPLOYMENT_MODE=saas, the installer does not initialize the private deployment administrator. The initial account steps above do not apply.
Keep the installation configuration
The installer writes generated infrastructure credentials back to config.env and saves it with permissions 600. Retain and back up that configuration separately. Use it for upgrades instead of overwriting it with the empty file from a new package.
Access and storage
K3s ServiceLB provides a plain HTTP endpoint on each node. Configure the production domain, HTTPS certificate, and load balancing on an external device such as Nginx or F5.
The Chart does not create an Ingress or TLS Secret for the application domain. Traefik runs inside the cluster as a ClusterIP service and routes digital employee runtime connections.
| Storage | Contents |
|---|---|
| PostgreSQL | Platform data, MCP configuration, and knowledge base data in separate databases. |
| S3 object storage | Uploaded files, skill packages, plugin artifacts, and other files. |
| Longhorn PVC | Digital employee runtime state and workspaces. If work conversations are enabled, it also stores their messages. |
The platform creates digital employee runtime resources in tego-avatar-runtime. Each StatefulSet replica receives its own PVC with a default size of 5Gi in the longhorn StorageClass. The configuration does not use a shared RWX volume.
Verify the installation
Check the cluster, platform services, and initialization job.
bashkubectl get nodes -o wide kubectl get storageclass longhorn ./setup.sh status kubectl -n tego-avatar get job tego-avatar-initNodes should be
Ready, and the initialization job should complete. Long-running platform Pods should beRunning; one-time initialization Pods can showCompleted.Run the checks included in the package.
bash./smoke-test.sh ./smoke-test.sh --with-runtimeThe second command creates a temporary runtime Pod and PVC to verify the digital employee image, Longhorn provisioning, and runtime environment. If a check returns a nonzero status, resolve the reported failures. A running Pod alone does not verify feature behavior.
Sign in. Verify a digital employee conversation, file delivery, and knowledge base access.
Requirements for an existing cluster
On an existing Kubernetes cluster, use the package's setup.sh to install the application. Do not run 02-install-k3s.sh. Check these requirements first:
- The
kubectlcontext points to the target cluster and Helm is version3.12or later. The account can create namespaces, Secrets, workloads, and the RBAC resources required by the Chart. - The cluster already has the Longhorn StorageClass, Traefik, and the
IngressRouteCRD. Match the entry Service, Traefik address, and network policies to the existing cluster. The K3s ServiceLB node access model does not apply directly. - External PostgreSQL, Redis, S3, and any required LDAP service are configured. The three application databases and their permissions are ready.
- Offline images are present on all schedulable nodes, or a reachable registry and image pull policy are configured. The image import in
setup.shapplies only to the installation node. The script does not distribute images across an existing cluster.
After meeting the requirements and preparing the images, run the following command from the package directory:
./setup.sh --skip-image-importExternal service preflight
The installer checks actual permissions. It creates the vector extension, creates and removes temporary tables and roles, reads and writes temporary Redis data, and uploads and removes a temporary object in S3. A failed check stops installation. Network connectivity alone does not verify permissions.
01-download.sh is a retired build entry point. It is not an installation step. Use upgrade.sh for an existing platform. Running setup.sh from the new package does not perform the full upgrade.
See High availability for the design and Upgrade and rollback for release safeguards.