Skip to content
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 containing setup.sh. Select the amd64 or arm64 package to match all nodes.
  • Contact Sales for a license. Set it in TEGO_LICENSE in config.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, and openssl on the installation host. Install system dependencies on offline nodes in advance or provide a local package repository.

Node requirements ​

ItemRequired state before installation
Operating system and kernelUbuntu 22.04+, Debian 12+, or RHEL, Rocky Linux, AlmaLinux, or CentOS 8+. Requires systemd and kernel 4.18 or later.
Host firewallfirewalld is disabled. Control access with security groups or upstream equipment.
SwapDisabled.
Kernel modulesThe kernel includes br_netfilter and iscsi_tcp. Add missing modules on minimal kernels.
SELinuxInstall container-selinux when using Enforcing mode.
System dependenciesEach 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 clocksClock skew across nodes cannot exceed 60 seconds. The installer recommends synchronizing clocks if skew exceeds 5 seconds.
Port availabilityOn 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 destinationPorts and purpose
Node1 to all nodes, including itselfTCP 22 for SSH installation and artifact distribution.
Between cluster nodesTCP 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 nodesTCP 5178 for the shared HTTP and WebSocket endpoint.
Application to infrastructureAllow 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.

  1. Open config.env and configure nodes, infrastructure, and the license.

    bash
    vi config.env
    SettingValue
    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 bundled or external.
    LDAP_MODESet to bundled, external, or disabled.
    IM_MODEDefaults to bundled. Set to disabled to 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 bundled mode, the installer uses Docker Compose to start the corresponding service on the infrastructure node. In external mode, it connects to an existing service. See Configuration files and external services for connection details, credentials, and database permissions. Leave the package's TEGO_VERSION and ARCH unchanged; they must match its images.

  2. Install the cluster, storage, and infrastructure. Wait for the script to finish.

    bash
    ./02-install-k3s.sh

    The installer distributes the offline images, installs K3s and Longhorn, and starts each dependency set to bundled. If all infrastructure is external, it skips deployment of the supporting infrastructure.

  3. Install the platform. Wait for the Helm release and initialization job to finish.

    bash
    ./setup.sh

    The installer creates the tego-avatar and tego-avatar-runtime namespaces and the platform Secret, then runs the Helm installation. The terminal shows the endpoint on success.

  4. Open the endpoint printed in the terminal (http://节点IP:5178). Sign in with the account set in init.adminEmail in chart/values.yaml.

    The initial password for the default private deployment mode is DEFAULT_ADMIN_PASSWORD in config.env. It is also available from the Secret:

    bash
    kubectl -n tego-avatar get secret tego-avatar-secrets \
      -o jsonpath='{.data.OS_ADMIN_PASSWORD}' | base64 -d

    With 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.

StorageContents
PostgreSQLPlatform data, MCP configuration, and knowledge base data in separate databases.
S3 object storageUploaded files, skill packages, plugin artifacts, and other files.
Longhorn PVCDigital 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 ​

  1. Check the cluster, platform services, and initialization job.

    bash
    kubectl get nodes -o wide
    kubectl get storageclass longhorn
    ./setup.sh status
    kubectl -n tego-avatar get job tego-avatar-init

    Nodes should be Ready, and the initialization job should complete. Long-running platform Pods should be Running; one-time initialization Pods can show Completed.

  2. Run the checks included in the package.

    bash
    ./smoke-test.sh
    ./smoke-test.sh --with-runtime

    The 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.

  3. 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 kubectl context points to the target cluster and Helm is version 3.12 or 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 IngressRoute CRD. 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.sh applies 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:

bash
./setup.sh --skip-image-import

External 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.