Cleanup: Remove unused ProleRouter components and update network scan references

- Deleted ProleRouter-related YAML files (services, deployments, storage) and unused `call_openapi.py`.
- Updated installer to reference `prole-net/prole-scan` instead of outdated `net/scan`.
- Renamed `network_prompt.txt` to match the new directory structure.
This commit is contained in:
chrisfu 2026-01-18 15:12:21 -08:00
parent 197c72dd7a
commit c462c3fb71
7 changed files with 5 additions and 160 deletions

View File

@ -920,12 +920,12 @@ class ProleInstaller:
font=('SF Pro Text', 18), anchor='ne')
self._render_title('Network Configuration Scan', y=150)
self._render_paragraph("The network scan will detect Kerberos services, Active Directory controllers, and other configuration details required for deployment.", y=210)
self._render_paragraph("The network prole-scan will detect Kerberos services, Active Directory controllers, and other configuration details required for deployment.", y=210)
y = 280
self.scan_status_var = tk.StringVar(value="Ready to scan")
self.scan_status_var = tk.StringVar(value="Ready to prole-scan")
# Ready to scan text (drawn on canvas)
status_item = ui.canvas_text(self, 48, y, "Ready to scan", fill='black', font=('SF Pro Text', 12))
status_item = ui.canvas_text(self, 48, y, "Ready to prole-scan", fill='black', font=('SF Pro Text', 12))
# Link variable to canvas text
def update_status_text(*args):
@ -970,13 +970,13 @@ class ProleInstaller:
self._scan_running = True
self.scan_results_text.delete('1.0', tk.END)
self.scan_results_text.insert(tk.END, "Initializing network scan using prole/net/scan ...\n")
self.scan_results_text.insert(tk.END, "Initializing network scan using prole-net/prole-scan ...\n")
self.scan_status_var.set("Scanning...")
def worker():
try:
# Use the new scan binary
scan_binary = PROJECT_ROOT / "net" / "scan"
scan_binary = PROJECT_ROOT / "prole-net" / "prole-scan"
if not scan_binary.exists():
self.root.after(0, lambda: self.scan_results_text.insert(tk.END, f"Scan binary not found at {scan_binary}\n"))
self.root.after(0, lambda: self.scan_status_var.set("Scan failed"))

Binary file not shown.

View File

@ -1,15 +0,0 @@
#!/usr/bin/env python3
from openai import OpenAI
client = OpenAI(
api_key="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"
)
response = client.responses.create(
model="gpt-5-nano",
input="write a haiku about ai",
store=True,
)
print(response.output_text);

View File

@ -1,61 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: ollama-loadbalancer
labels:
app: ollama
spec:
type: LoadBalancer
ports:
- port: 11434
targetPort: 11434
protocol: TCP
name: ollama
selector:
app: ollama
---
apiVersion: v1
kind: Endpoints
metadata:
name: ollama-loadbalancer
subsets:
- addresses:
- ip: 10.0.0.204
- ip: 10.0.0.208
ports:
- port: 11434
name: ollama
---
apiVersion: v1
kind: Service
metadata:
name: ollama-morgoth
labels:
app: ollama
instance: morgoth
spec:
ports:
- port: 11434
targetPort: 11434
protocol: TCP
name: ollama
selector:
app: ollama
instance: morgoth
---
apiVersion: v1
kind: Service
metadata:
name: ollama-fairyland
labels:
app: ollama
instance: fairyland
spec:
ports:
- port: 11434
targetPort: 11434
protocol: TCP
name: ollama
selector:
app: ollama
instance: fairyland

View File

@ -1,69 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ollama-morgoth
labels:
app: ollama
instance: morgoth
spec:
replicas: 1
selector:
matchLabels:
app: ollama
instance: morgoth
template:
metadata:
labels:
app: ollama
instance: morgoth
spec:
containers:
- name: ollama
image: ollama/ollama:latest
ports:
- containerPort: 11434
env:
- name: OLLAMA_HOST
value: "0.0.0.0:11434"
volumeMounts:
- name: ollama-data
mountPath: /root/.ollama
volumes:
- name: ollama-data
persistentVolumeClaim:
claimName: ollama-pvc
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ollama-fairyland
labels:
app: ollama
instance: fairyland
spec:
replicas: 1
selector:
matchLabels:
app: ollama
instance: fairyland
template:
metadata:
labels:
app: ollama
instance: fairyland
spec:
containers:
- name: ollama
image: ollama/ollama:latest
ports:
- containerPort: 11434
env:
- name: OLLAMA_HOST
value: "0.0.0.0:11434"
volumeMounts:
- name: ollama-data
mountPath: /root/.ollama
volumes:
- name: ollama-data
persistentVolumeClaim:
claimName: ollama-pvc

View File

@ -1,10 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: ollama-pvc
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi