Quick Start: Enterprise Kubernetes mode

1. Enter the "Terminal Operation Server", prepare the environment, and create a resource directory.

  • /data/apitable/app/state stores the installation information, do not delete.

  • /data/apitable/app/config-k8s stores kubeconfig

  • /data/apitable/app/custom-config stores configuration files.

mkdir -p /data/apitable/app/config-k8s  /data/apitable/app/state  /data/apitable/app/custom-config

2. Obtain the kubeconfig file

Download the kubeconfig certificate from K8S and associate your account to ensure the following permissions:

 - configmap:*
 - pv:*
 - pvc:*
 - service:*
 - deployment:*
 - ns: create, get, list, watch
 - events: create, get, list,delete, watch
 - secret: *

Upload it to the /data/apitable/app/config-k8sdirectory.

3.3 Create the config.yaml ,file and modify the custom configuration

Based on the config.yaml template below, create the config.yamlfile and store it in::

/data/apitable/app/custom-config/config.yaml

Click to view the complete config.yaml configuration.

Note: Use the application service image as per the actual scenario. Make sure to enter the correct license key below to execute the one-click deployment.

Customize the configuration according to your needs, such as:

namespace:
  datfacenter: apitable-datacenter
  app: apitable-app
image:
  registry: ghcr.io/
  tag:
    custom:
      app:
        backend_server: v1.10.0-release.43_build7643
        init_db: v1.10.0-release.44_build1506
        init_db_enterprise: v1.10.0-release.44_build1506
        init_settings: v1.10.1-alpha_build3938
        openresty: 1.21.4.1-http-fat
        room_server: v1.10.0-release.44_build9960
        socket_server: v0.20.0-rc.14_build3554
        web_server: v1.10.0-op_build8911
        imageproxy_server: v0.13.4-alpha_build13
        databus_server: v1.9.0-release.29_build2308
  namespace:
    common: apitable/ee
storage:
  # replace your storage class
  class: "cbs"
featGate:
  init_data: true
config:
  custom:
    backend_server:
      # You must enter the correct license authorization code and continue with installation
      SELFHOST_LICENSE: {Your license code} 
    init_data:
      images:
        initAppData: ghcr.io/apitable/apitable-ee/init-appdata:v1.10.0-alpha_build252
        initDataDb: ghcr.io/apitable/ee/init-db:v1.10.0-release.44_build1506  
        initDataDbEnterprise: ghcr.io/apitable/ee/init-db-enterprise:v1.10.0-release.44_build1506
  

3.4 One-click installation and upgrade.

The ops-manager versions of each distribution are different. Please replace the version and execute

docker run --rm --name ops-manager -v  /data/apitable/app/config-k8s:/app/terraform/local/config-k8s \
             -v /data/apitable/app/custom-config:/app/terraform/local/custom-config \
             -v /data/apitable/app/state:/app/terraform/local/state \
             docker.vika.ltd/vikadata/vika/ops-manager:v1.9.0-alpha_build560 install k8s-apitable