Documentation Index
Fetch the complete documentation index at: https://docs.xpertai.cn/llms.txt
Use this file to discover all available pages before exploring further.
Environment Preparation
- Prepare Kubernetes environment
- Download deployment configuration
git clone https://github.com/meta-d/installer.git
Deployment
Navigate to the Kubernetes deployment folder1. Create Secrets
First, you need to create a separateSecret to store sensitive information such as database passwords, JWT keys, etc.
Secret Configuration (Optional)
Users can modify these secrets themselves, as follows:- Encode passwords in base64
echo -n '<Password>' | base64
- Then write it into the
Secretconfiguration in the file secret.yaml
| Name | Description |
|---|---|
| DB_PASS | Database password |
| SESSION_SECRET | Session key |
| JWT_SECRET | JWT key |
| JWT_REFRESH_SECRET | JWT refresh key |
| REDIS_PASSWORD | Redis password |
2. Create or Update Configuration
Execute this command for the first-time creation or updating of the configuration:Domain Configuration
The Xpert Analytics Platform defaults to usinglocalhost as the domain. If you need to use a custom domain or server IP address for access, modify the following configuration in the ConfigMap config-data:
API_BASE_URLis the address of the API service (ocap-api-lb)CLIENT_BASE_URLis the address of the frontend service (ocap-webapp-lb)
3. Access the Website
After all services have started, you can access the website via the domain (e.g., http://app.demo.com), and then proceed with the system setup wizard.Persistent Volume
For different k8s platforms, you may need to configure different Persistent Volumes. Please modify thePersistentVolume and PersistentVolumeClaim sections in the manifest.yaml file according to your actual situation.
Ingress
If you need to use Ingress for external access and load balancing, you need to change the service type fromLoadBalancer to ClusterIP and configure Ingress.
Basic Kubernetes Operation Commands
- Execute yml file for the first time
kubectl create -f xxx.yml - Execute after modifying yml file
kubectl apply -f xxx.yml - Delete all resources defined in yml
kubectl delete -f xxx.yml - View pod list
kubectl get pods - Enter container
kubectl exec -it xxx(podName) -- /bin/sh - View logs
kubectl logs xxx(podName) - View IP and port information
kubectl get ep - More Kubernetes knowledge