Launcher Service Installation and Configuration¶
Product Introduction¶
A web application used to deploy and install Guance. Follow the Launcher service's guided steps to complete the installation and upgrade of Guance.
Keywords¶
| Term | Description |
|---|---|
| Launcher | A web application used to deploy and install Guance. Follow the Launcher service's guided steps to complete the installation and upgrade of Guance. |
| Operations Workstation | An operations workstation with kubectl installed that is on the same network as the target Kubernetes cluster |
| Installation Workstation | The machine that accesses the Launcher service in a browser to complete the Guance guided installation |
| hosts file | The hosts file is a system file without an extension. Its main purpose is to store the mapping between domain names and IP addresses. |
1. Import Guance Offline Package¶
If installing in an offline network environment, first manually download the latest Guance image package. Use the docker load command to import all images to each Kubernetes worker node, and then proceed with the guided installation.
Latest Guance image package download addresses:
Containerd environment image import command
Note
Images must be imported on each node, including the guance-xxx-latest.tar.gz package.
2. Launcher Installation¶
- Install
In the launcher directory, run:
helm install launcher launcher-*.tgz -n launcher --create-namespace \
--set ingress.hostName=launcher.dataflux.cn \
--set storageClassName=managed-nfs-storage
Download the launcher chart Download
- Uninstall Launcher
After Launcher is installed successfully, do not uninstall it unless abnormal circumstances require it.
3. Resolve the Launcher Domain Name to the Launcher Service¶
Because the Launcher service is used to deploy and upgrade Guance, it does not need to be accessible to users. Therefore, do not resolve the domain name on the public network. On the Installation Workstation, you can simulate domain resolution by binding a host and adding a binding for launcher.dataflux.cn to /etc/hosts.
192.168.100.104 df-kodo.dataflux.cn
192.168.100.104 test.dataflux.cn
192.168.100.104 launcher.dataflux.cn
192.168.100.104 dataflux.dataflux.cn
192.168.100.104 df-func.dataflux.cn
192.168.100.104 df-api.dataflux.cn
192.168.100.104 df-management.dataflux.cn
192.168.100.104 df-management-api.dataflux.cn
192.168.100.104 df-static-res.dataflux.cn
192.168.100.104is the proxy IP.
4. Application Installation Guided Steps¶
In the browser on the Installation Workstation, access launcher.dataflux.cn and complete the installation configuration step by step according to the guided steps.
4.1 Database Configuration¶
- The database connection address must use a private network address.
- You must use an administrator account because this account is needed to initialize the databases and database access accounts for multiple sub-applications.
| url | mysql.middleware |
|---|---|
| port | 3306 |
| Username/Password | root/mQ2LZenlYs1UoVzi |
4.2 Redis Configuration¶
- The Redis connection address must use a private network address.
| url | redis.middleware |
|---|---|
| Port | 6379 |
| Password | pNpX15GZkgICqX5D |
3.3 Time Series Engine Configuration¶
-
TDengine
- The TDengine connection address must use a private network address.
- You must use an administrator account because this account is needed to initialize DB and RP information.
url taos-tdengine.middleware Port 6041 Username/Password The account you created/the password you set
4.4 Log Engine Configuration¶
- OpenSearch
- The connection address must use a private network address.
- You must use an administrator account.
- The connection address must use a private network address.
| url | opensearch-cluster-client.middleware |
|---|---|
| Port | 9200 |
| Username/Password | openes/kJMerxk3PwqQ |
4.5 Other Settings¶
- The initial administrator account name and email for the Guance management console (the default password is admin, and it is recommended to change the default password immediately after logging in)
- Private IP addresses of cluster nodes (automatically obtained; confirm whether they are correct)
- Configuration of the primary domain and subdomains for each sub-application. The default subdomains are as follows and can be modified as needed:
- dataflux [User Frontend]
- df-api [User Frontend API]
- df-management [Management Console]
- df-management-api [Management Console API]
- df-websocket [Websocket Service]
- df-func [Func Platform]
- df-openapi [OpenAPI]
- df-static-res [Static Resource Site]
- df-kodo [kodo]
TLS domain certificate entry
4.6 Installation Information¶
Displays a summary of the information just entered. If any information is incorrect, you can return to the previous step to modify it.
4.7 Application Configuration Files¶
The installer automatically initializes application configuration templates based on the installation information provided in the previous steps. However, you still need to check all application templates one by one and modify customized application configurations. For specific configuration instructions, see the installation interface.
After confirming that everything is correct, submit to create the configuration files.
4.8 Application Images¶
- Select the correct shared storage, that is, the storage class name created in the previous step.
- Application images are automatically populated based on the selected Launcher version and do not need to be modified. After confirming that they are correct, start creating the application.
4.9 Application Status¶
This page lists the startup status of all application services. This process requires downloading all images and may take from a few minutes to over ten minutes. Once all services have started successfully, the installation is complete.
Note: During service startup, you must stay on this page and not close it. The installation is successful only when you see the "Version information written successfully" prompt at the end and no error window has popped up!
4.10 Domain Name Resolution¶
Resolve all subdomains except df-kodo.dataflux.cn to the SLB public IP address or the edge node ingress address:
- dataflux.dataflux.cn
- df-api.dataflux.cn
- df-management.dataflux.cn
- df-management-api.dataflux.cn
- df-openapi.dataflux.cn
- df-func.dataflux.cn
- df-static-res.dataflux.cn
Because a locally deployed Kubernetes cluster cannot use the LoadBalancer service, you need to use the edge node ingress.
For Kubernetes 1.19 and later, use the following configuration and save it as kodo-ingress.yaml. The IngressClass in the example is nginx; keep it consistent with the actual cluster configuration and replace the domain with the actual deployment domain. For Kubernetes 1.18, replace the Ingress section with the compatibility example below.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: df-kodo
namespace: forethought-kodo
spec:
ingressClassName: nginx
rules:
- host: df-kodo.dataflux.cn
http:
paths:
- backend:
service:
name: kodo-nginx
port:
name: http
path: /
pathType: ImplementationSpecific
---
apiVersion: v1
kind: Service
metadata:
name: kodo-nginx
namespace: forethought-kodo
spec:
ports:
- name: https
nodePort: 31841
port: 443
protocol: TCP
targetPort: 80
- name: http
nodePort: 31385
port: 80
protocol: TCP
targetPort: 80
selector:
app: deployment-forethought-kodo-kodo-nginx
sessionAffinity: None
type: NodePort
If the cluster is Kubernetes 1.18, replace only the Ingress section in the above example with the following configuration; leave the Service section unchanged:
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: df-kodo
namespace: forethought-kodo
spec:
ingressClassName: nginx
rules:
- host: df-kodo.dataflux.cn
http:
paths:
- backend:
serviceName: kodo-nginx
servicePort: http
path: /
pathType: ImplementationSpecific
networking.k8s.io/v1beta1 has been removed since Kubernetes 1.22 and is not applicable to Kubernetes 1.22 and later clusters. For API version and field differences, see Kubernetes Ingress Migration Guide.
After saving, run:
5. Security Settings¶
Important
After completing the above steps, Guance is installed. You can verify it. After verification, there is a very important step: take the Launcher service offline to prevent accidental access from damaging the application configuration. On the Operations Workstation, run the following command to set the number of pod replicas for the Launcher service to 0:
