@@ -34,12 +34,10 @@ helm repo update
34
34
### 2. Deploy the Complete Stack
35
35
36
36
``` bash
37
- # Create a namespace
38
- kubectl create namespace amazee-ai
39
-
40
- # Deploy the complete application
41
- helm install amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
37
+ # Deploy the complete application (Helm will create the namespace automatically)
38
+ helm install amazee-ai-app oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
42
39
--namespace amazee-ai \
40
+ --create-namespace \
43
41
--version 0.0.1
44
42
```
45
43
@@ -49,20 +47,23 @@ helm install amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
49
47
``` bash
50
48
helm install frontend oci://ghcr.io/amazeeio/amazee.ai/frontend \
51
49
--namespace amazee-ai \
50
+ --create-namespace \
52
51
--version 0.0.1
53
52
```
54
53
55
54
#### Backend Only
56
55
``` bash
57
56
helm install backend oci://ghcr.io/amazeeio/amazee.ai/backend \
58
57
--namespace amazee-ai \
58
+ --create-namespace \
59
59
--version 0.0.1
60
60
```
61
61
62
62
#### PostgreSQL Only (using Bitnami)
63
63
``` bash
64
64
helm install postgresql bitnami/postgresql \
65
65
--namespace amazee-ai \
66
+ --create-namespace \
66
67
--set auth.postgresPassword=" your-password" \
67
68
--set auth.database=" postgres_service"
68
69
```
@@ -106,17 +107,19 @@ backend:
106
107
Deploy with custom values:
107
108
108
109
` ` ` bash
109
- helm install amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
110
+ helm install amazee-ai-app oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
110
111
--namespace amazee-ai \
112
+ --create-namespace \
111
113
--version 0.0.1 \
112
114
--values values.yaml
113
115
```
114
116
115
117
### Using Command Line Overrides
116
118
117
119
``` bash
118
- helm install amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
120
+ helm install amazee-ai-app oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
119
121
--namespace amazee-ai \
122
+ --create-namespace \
120
123
--version 0.0.1 \
121
124
--set frontend.enabled=true \
122
125
--set backend.enabled=true \
@@ -151,7 +154,7 @@ To upgrade to a newer version:
151
154
helm search repo oci://ghcr.io/amazeeio/amazee.ai/amazee-ai --versions
152
155
153
156
# Upgrade to a specific version
154
- helm upgrade amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
157
+ helm upgrade amazee-ai-app oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
155
158
--namespace amazee-ai \
156
159
--version 0.0.2
157
160
```
@@ -160,7 +163,7 @@ helm upgrade amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
160
163
161
164
``` bash
162
165
# Uninstall the complete stack
163
- helm uninstall amazee-ai -n amazee-ai
166
+ helm uninstall amazee-ai-app -n amazee-ai
164
167
165
168
# Or uninstall individual components
166
169
helm uninstall frontend -n amazee-ai
@@ -173,7 +176,7 @@ helm uninstall postgresql -n amazee-ai
173
176
### Check Chart Status
174
177
``` bash
175
178
helm list -n amazee-ai
176
- helm status amazee-ai -n amazee-ai
179
+ helm status amazee-ai-app -n amazee-ai
177
180
```
178
181
179
182
### View Logs
@@ -191,12 +194,37 @@ kubectl logs -n amazee-ai deployment/postgresql
191
194
### Debug Installation
192
195
``` bash
193
196
# Dry run to see what would be installed
194
- helm install amazee-ai oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
197
+ helm install amazee-ai-app oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
195
198
--namespace amazee-ai \
199
+ --create-namespace \
196
200
--version 0.0.1 \
197
201
--dry-run --debug
198
202
```
199
203
204
+ ### Namespace Conflicts
205
+
206
+ If you encounter namespace ownership errors like:
207
+ ```
208
+ Error: INSTALLATION FAILED: Unable to continue with install: Namespace "amazee-ai" in namespace "" exists and cannot be imported into the current release: invalid ownership metadata
209
+ ```
210
+
211
+ This happens when the namespace was created manually with ` kubectl create namespace ` instead of by Helm. To fix this:
212
+
213
+ ``` bash
214
+ # Option 1: Delete the existing namespace and let Helm recreate it
215
+ kubectl delete namespace amazee-ai
216
+ helm install amazee-ai-app oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
217
+ --namespace amazee-ai \
218
+ --create-namespace \
219
+ --version 0.0.1
220
+
221
+ # Option 2: Use a different namespace name
222
+ helm install amazee-ai-app oci://ghcr.io/amazeeio/amazee.ai/amazee-ai \
223
+ --namespace amazee-ai-new \
224
+ --create-namespace \
225
+ --version 0.0.1
226
+ ```
227
+
200
228
## Security Considerations
201
229
202
230
1 . ** Secrets Management** : Use Kubernetes secrets or external secret managers for sensitive data
0 commit comments