Skip to content

Commit 3addbfa

Browse files
committed
up
1 parent 5a7900a commit 3addbfa

3 files changed

Lines changed: 81 additions & 10 deletions

File tree

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,21 +128,20 @@ This cluster uses [1Password Connect](https://developer.1password.com/docs/conne
128128

129129
3. **Create Kubernetes Secrets**:
130130
```bash
131-
# IMPORTANT: Place your generated `1password-credentials.json` in the root of this repository first.
132-
kubectl create secret generic 1password-credentials \
133-
--from-file=1password-credentials.json \
134-
--namespace 1passwordconnect
131+
export OP_CREDENTIALS=$(op read op://homelabproxmox/1passwordconnect/1password-credentials.json | base64 | tr -d '\n')
132+
export OP_CONNECT_TOKEN=$(op read 'op://homelabproxmox/1password-operator-token/credential')
135133
136-
# Replace YOUR_CONNECT_TOKEN with your actual token
137-
export CONNECT_TOKEN="YOUR_CONNECT_TOKEN"
134+
kubectl create secret generic 1password-credentials \
135+
--namespace 1passwordconnect \
136+
--from-literal=1password-credentials.json="$OP_CREDENTIALS"
138137
139138
kubectl create secret generic 1password-operator-token \
140-
--from-literal=token=$CONNECT_TOKEN \
141-
--namespace 1passwordconnect
139+
--namespace 1passwordconnect \
140+
--from-literal=token="$OP_CONNECT_TOKEN"
142141
143142
kubectl create secret generic 1passwordconnect \
144-
--from-literal=token=$CONNECT_TOKEN \
145-
--namespace external-secrets
143+
--namespace external-secrets \
144+
--from-literal=token="$OP_CONNECT_TOKEN"
146145
```
147146

148147
### 6. Bootstrap ArgoCD & Deploy The Stack

scripts/verify-worker-disks.sh

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
#!/bin/bash
2+
# Verify secondary disk configuration on all Talos worker nodes
3+
4+
set -e
5+
6+
# Worker node IPs (regular + GPU workers)
7+
WORKERS=(
8+
"192.168.10.111" # talos-o31-0s1 (regular worker)
9+
"192.168.10.112" # talos-w4s-zts (regular worker)
10+
"192.168.10.113" # talos-blj-72f (GPU worker)
11+
"192.168.10.114" # talos-kyk-7ek (GPU worker)
12+
)
13+
14+
echo "🔍 Checking disk configuration on all worker nodes..."
15+
echo "=================================================="
16+
17+
for node in "${WORKERS[@]}"; do
18+
echo ""
19+
echo "📍 Node: $node"
20+
echo "---"
21+
22+
# Check if /dev/sdb exists
23+
echo " ✓ Checking /dev/sdb disk:"
24+
if talosctl -n "$node" get disks 2>/dev/null | grep -q "sdb"; then
25+
talosctl -n "$node" get disks 2>/dev/null | grep "sdb" | awk '{print " - " $3 " (" $6 ")"}'
26+
else
27+
echo " ❌ /dev/sdb not found"
28+
fi
29+
30+
# Check if partition exists
31+
echo " ✓ Checking /dev/sdb1 partition:"
32+
if talosctl -n "$node" get discoveredvolumes 2>/dev/null | grep -q "sdb1"; then
33+
talosctl -n "$node" get discoveredvolumes 2>/dev/null | grep "sdb1" | awk '{print " - " $3 " - " $6 " - " $7}'
34+
else
35+
echo " ❌ /dev/sdb1 partition not found"
36+
fi
37+
38+
# Check if mount point exists
39+
echo " ✓ Checking /var/mnt/longhorn_sdb mount:"
40+
if talosctl -n "$node" ls /var/mnt/longhorn_sdb 2>&1 | grep -q "no such file or directory"; then
41+
echo " ❌ Mount point NOT configured (needs reboot to apply config)"
42+
else
43+
echo " ✅ Mount point exists!"
44+
talosctl -n "$node" ls /var/mnt/longhorn_sdb 2>/dev/null | tail -3
45+
fi
46+
47+
# Check /var/lib/longhorn
48+
echo " ✓ Checking /var/lib/longhorn:"
49+
if talosctl -n "$node" ls /var/lib/longhorn 2>/dev/null | grep -q "longhorn-disk.cfg"; then
50+
echo " ✅ Longhorn directory configured"
51+
else
52+
echo " ⚠️ Longhorn directory may not be ready"
53+
fi
54+
done
55+
56+
echo ""
57+
echo "=================================================="
58+
echo "🎯 Summary:"
59+
echo " - If mount points are missing, reboot nodes to apply Omni config patches"
60+
echo " - After reboot, run this script again to verify"
61+
echo ""
62+
echo " Reboot command: talosctl -n <node-ip> reboot"
63+
echo "=================================================="
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
context: omni-talos-proxmox-prod
2+
contexts:
3+
omni-talos-proxmox-prod:
4+
endpoints:
5+
- https://omni.vanillax.me
6+
auth:
7+
siderov1:
8+
identity: mitchross09@gmail.com
9+
cluster: talos-proxmox-prod

0 commit comments

Comments
 (0)