Skip to content

On-premises Environment Deployment Manual


1 Preface

1.1 About This Document

This document focuses on on-premises deployment (including but not limited to physical servers and IDC data centers) and describes the complete process from resource planning and configuration to deploying and running Guance.

Note:

  • This document uses dataflux.cn as the example primary domain. Replace it with the corresponding domain in actual deployments.

1.2 Keywords

Term Description
Launcher A web application for deploying and installing Guance. Follow the guided steps in the Launcher service to complete the installation and upgrade of Guance.
Operations workstation A machine with kubectl installed that is on the same network as the target Kubernetes cluster.
Deployment workstation A machine whose browser accesses the Launcher service to complete the guided setup, installation, and debugging of Guance.
kubectl The Kubernetes command-line client tool, installed on the operations workstation.

1.3 Deployment Step Architecture

2 Resource Preparation

On-premises Environment Resource List

3 Infrastructure Deployment

3.1 Step 1: Create a Kubernetes Cluster

Kubernetes Cluster Deployment

3.2 Step 2: Kubernetes Ingress Component

Kubernetes Ingress Component Deployment

3.3 Step 3: Proxy Deployment

Access Proxy

3.4 Step 4: NFS Deployment

NFS Deployment

3.5 Step 5: Kubernetes Storage Component

Kubernetes Storage Component Deployment

3.6 Step 6: Redis Deployment

Redis Deployment

3.7 Step 7: GuanceDB for Metrics Deployment

Time Series Engine Deployment

3.8 Step 8: Log Engine Deployment

Log Engine Deployment

3.9 Step 9: MySQL Deployment

MySQL Deployment

4 kubectl Installation and Configuration

4.1 Install kubectl

kubectl is a command-line client tool for Kubernetes. You can use it to deploy applications, inspect and manage cluster resources, and more. Our Launcher uses this command-line tool to deploy applications. For installation instructions, see the official documentation:

https://kubernetes.io/docs/tasks/tools/install-kubectl/

4.2 Configure kubeconfig

On the operations workstation running kubectl, save the target cluster's kubeconfig to the current user's $HOME/.kube/config.

For clusters deployed with kubeadm, the administrator kubeconfig is located by default at /etc/kubernetes/admin.conf on the control plane node. If you run kubectl directly on that node, execute:

mkdir -p "$HOME/.kube"
sudo cp -i /etc/kubernetes/admin.conf "$HOME/.kube/config"
sudo chown "$(id -u):$(id -g)" "$HOME/.kube/config"
chmod 600 "$HOME/.kube/config"

If the operations workstation is a different host, ask the cluster administrator to provide a suitable kubeconfig, save it to $HOME/.kube/config on that workstation, and ensure that the API Server address in it is accessible from the workstation. For other deployment methods, use the kubeconfig generated by the corresponding deployment tool.

After configuration, run kubectl get nodes to confirm that the target cluster is accessible. For more information, see kubeadm cluster access configuration.

5 Start Installation Guance

After completing the operations, refer to the Start Installation guide.

Feedback

Is this page helpful?