You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: deployment/minikube.md
+242-9Lines changed: 242 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,36 +12,269 @@ Deploy TrustGraph on Minikube for local Kubernetes development and testing.
12
12
13
13
## Overview
14
14
15
-
Minikube allows you to run TrustGraph in a local Kubernetes cluster, providing a production-like environment for development and testing.
15
+
Minikube allows you to run TrustGraph in a local Kubernetes cluster, providing a production-like environment for development and testing. This deployment method offers:
16
+
17
+
-**Kubernetes-native deployment** with local development capabilities
18
+
-**Production-like environment** for testing at scale
19
+
-**Resource isolation** and management
20
+
-**LoadBalancer** and service discovery testing
16
21
17
22
## Prerequisites
18
23
19
-
Coming soon - detailed content!
24
+
### System Requirements
25
+
26
+
-**Minikube** installed and configured
27
+
-**kubectl** command-line tool
28
+
-**Docker Engine** (most common driver for Minikube)
29
+
-**Minimum resources**: 4 CPU cores, 8GB RAM
30
+
-**Python 3.x** for TrustGraph CLI tools
31
+
32
+
### Driver Requirements
33
+
34
+
Minikube requires a driver for virtualization. The most common is Docker Engine. See the [full Minikube driver documentation](https://minikube.sigs.k8s.io/docs/drivers/) for all available options.
20
35
21
36
## Installation
22
37
23
-
Coming soon - detailed content!
38
+
### 1. Install Prerequisites
39
+
40
+
```bash
41
+
# Install TrustGraph CLI tools
42
+
python3 -m venv env
43
+
source env/bin/activate
44
+
pip install trustgraph-cli
45
+
```
46
+
47
+
### 2. Start Minikube
48
+
49
+
```bash
50
+
minikube start --cpus=4 --memory=8192
51
+
```
52
+
53
+
### 3. Verify Minikube
54
+
55
+
```bash
56
+
kubectl cluster-info
57
+
kubectl get nodes
58
+
```
24
59
25
60
## Configuration
26
61
27
-
Coming soon - detailed content!
62
+
### YAML Configuration
63
+
64
+
Obtain your TrustGraph Kubernetes configuration file from the [TrustGraph Configuration Portal](https://config-ui.demo.trustgraph.ai/):
65
+
66
+
1. Select **Kubernetes/Minikube** as deployment method
67
+
2. Configure your preferred LLM, graph store, and vector store
68
+
3. Download the generated YAML configuration file
28
69
29
70
## Deployment
30
71
31
-
Coming soon - detailed content!
72
+
### 1. Deploy TrustGraph
73
+
74
+
```bash
75
+
kubectl apply -f <configuration-file.yaml>
76
+
```
77
+
78
+
### 2. Launch LoadBalancer
79
+
80
+
**In a separate terminal window:**
81
+
82
+
```bash
83
+
minikube tunnel
84
+
```
85
+
86
+
> **Important**: Keep this terminal window open. The LoadBalancer must remain running for cluster communications.
87
+
88
+
### 3. Verify Services
89
+
90
+
Check that TrustGraph services are running:
91
+
92
+
```bash
93
+
tg-processor-state
94
+
```
95
+
96
+
To continuously monitor service status:
97
+
98
+
```bash
99
+
watch tg-processor-state
100
+
```
101
+
102
+
> **Note**: On macOS, install watch with: `brew install watch`
103
+
104
+
### 4. Wait for Stabilization
105
+
106
+
Wait until all container **STATUS** switches to `Running` before proceeding.
107
+
108
+
## Working with Documents
109
+
110
+
### Load Sample Data
111
+
112
+
Create a sources directory and download a test document:
With the LoadBalancer running, TrustGraph services are accessible through Kubernetes service discovery. The exact URLs depend on your configuration, but typically include:
145
+
146
+
-**TrustGraph API**: Available through service mesh
147
+
-**Monitoring**: Grafana dashboards if configured
148
+
-**Web Interface**: TrustGraph workbench if enabled
0 commit comments