@_xtribe/cli 1.0.0-beta.17 → 1.0.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/install-tribe.js +26 -10
- package/package.json +1 -1
- package/tribe-deployment.yaml +6 -6
package/install-tribe.js
CHANGED
|
@@ -558,20 +558,36 @@ async function deployTribeCluster() {
|
|
|
558
558
|
let nodeReady = false;
|
|
559
559
|
for (let i = 0; i < 20; i++) {
|
|
560
560
|
try {
|
|
561
|
-
|
|
561
|
+
// First check if any nodes exist
|
|
562
|
+
const nodeList = execSync(`${kubectlPath} get nodes -o json`, {
|
|
562
563
|
encoding: 'utf8',
|
|
563
|
-
env: env
|
|
564
|
-
|
|
564
|
+
env: env,
|
|
565
|
+
stdio: 'pipe'
|
|
566
|
+
});
|
|
565
567
|
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
568
|
+
const nodes = JSON.parse(nodeList);
|
|
569
|
+
if (nodes.items && nodes.items.length > 0) {
|
|
570
|
+
// Now check if the node is ready
|
|
571
|
+
const nodeStatus = execSync(`${kubectlPath} get nodes -o jsonpath='{.items[0].status.conditions[?(@.type=="Ready")].status}'`, {
|
|
572
|
+
encoding: 'utf8',
|
|
573
|
+
env: env,
|
|
574
|
+
stdio: 'pipe'
|
|
575
|
+
}).trim();
|
|
576
|
+
|
|
577
|
+
if (nodeStatus === 'True') {
|
|
578
|
+
nodeReady = true;
|
|
579
|
+
spinner.text = 'Kubernetes node is ready';
|
|
580
|
+
break;
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
} catch (error) {
|
|
584
|
+
// Ignore errors - node might not be registered yet or connection issues
|
|
585
|
+
if (error.message && error.message.includes('connection reset')) {
|
|
586
|
+
spinner.text = `Waiting for Kubernetes node... (${i+1}/20) - reconnecting...`;
|
|
587
|
+
} else {
|
|
588
|
+
spinner.text = `Waiting for Kubernetes node... (${i+1}/20)`;
|
|
570
589
|
}
|
|
571
|
-
} catch {
|
|
572
|
-
// Node might not be registered yet
|
|
573
590
|
}
|
|
574
|
-
spinner.text = `Waiting for Kubernetes node... (${i+1}/20)`;
|
|
575
591
|
await new Promise(resolve => setTimeout(resolve, 3000));
|
|
576
592
|
}
|
|
577
593
|
|
package/package.json
CHANGED
package/tribe-deployment.yaml
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
# This file is automatically deployed by 'npx @_xtribe/cli'
|
|
4
4
|
#
|
|
5
5
|
# IMPORTANT: This deployment uses PUBLIC Docker Hub images from tribexal/tribe
|
|
6
|
-
# - tribexal/tribe:taskmaster
|
|
7
|
-
# - tribexal/tribe:bridge
|
|
8
|
-
# - tribexal/tribe:claude-agent
|
|
6
|
+
# - tribexal/tribe:latest-taskmaster
|
|
7
|
+
# - tribexal/tribe:latest-bridge
|
|
8
|
+
# - tribexal/tribe:latest-claude-agent
|
|
9
9
|
#
|
|
10
10
|
# DO NOT change these to local image names for the npm package!
|
|
11
11
|
---
|
|
@@ -221,7 +221,7 @@ spec:
|
|
|
221
221
|
command: ['sh', '-c', 'until nc -z postgres 5432; do echo waiting for db; sleep 2; done']
|
|
222
222
|
containers:
|
|
223
223
|
- name: taskmaster
|
|
224
|
-
image: tribexal/tribe:taskmaster
|
|
224
|
+
image: tribexal/tribe:latest-taskmaster
|
|
225
225
|
imagePullPolicy: IfNotPresent
|
|
226
226
|
ports:
|
|
227
227
|
- containerPort: 5000
|
|
@@ -281,7 +281,7 @@ spec:
|
|
|
281
281
|
echo "All services ready!"
|
|
282
282
|
containers:
|
|
283
283
|
- name: bridge
|
|
284
|
-
image: tribexal/tribe:bridge
|
|
284
|
+
image: tribexal/tribe:latest-bridge
|
|
285
285
|
imagePullPolicy: IfNotPresent
|
|
286
286
|
ports:
|
|
287
287
|
- containerPort: 8080
|
|
@@ -336,7 +336,7 @@ spec:
|
|
|
336
336
|
spec:
|
|
337
337
|
containers:
|
|
338
338
|
- name: claude-agent
|
|
339
|
-
image: tribexal/tribe:claude-agent
|
|
339
|
+
image: tribexal/tribe:latest-claude-agent
|
|
340
340
|
imagePullPolicy: IfNotPresent
|
|
341
341
|
env:
|
|
342
342
|
- name: ROLE
|