fix(api): use trebuchet-* names + dedicated worker SA in Job spec #7

Open
Hugh Commit wants to merge 1 commits from far-142/istio-conversion into main
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ export function loadConfig(): Config {
return {
port: Number(process.env.PORT) || 3000,
mcpPort: Number(process.env.MCP_PORT) || 3100,
temporalAddress: process.env.TEMPORAL_ADDRESS || 'hightower-temporal:7233',
temporalAddress: process.env.TEMPORAL_ADDRESS || 'trebuchet-temporal:7233',
apiKey,
k8sNamespace: process.env.K8S_NAMESPACE || 'hightower',
workerImage,
+3 -3
View File
@@ -43,7 +43,7 @@ export function buildJobSpec(params: JobParams): k8s.V1Job {
// 2. Build volumes and mounts
const volumes: k8s.V1Volume[] = [
{ name: 'workspaces', persistentVolumeClaim: { claimName: 'hightower-workspaces' } },
{ name: 'workspaces', persistentVolumeClaim: { claimName: 'trebuchet-workspaces' } },
{ name: 'shm', emptyDir: { medium: 'Memory', sizeLimit: '2Gi' } },
];
@@ -96,7 +96,7 @@ export function buildJobSpec(params: JobParams): k8s.V1Job {
}
// 4. Env vars
const env: k8s.V1EnvVar[] = [{ name: 'TEMPORAL_ADDRESS', value: 'hightower-temporal:7233' }];
const env: k8s.V1EnvVar[] = [{ name: 'TEMPORAL_ADDRESS', value: 'trebuchet-temporal:7233' }];
// 5. Construct the Job
return {
@@ -123,7 +123,7 @@ export function buildJobSpec(params: JobParams): k8s.V1Job {
},
spec: {
restartPolicy: 'Never',
serviceAccountName: 'default',
serviceAccountName: 'trebuchet-worker',
securityContext: {
seccompProfile: { type: 'Unconfined' },
// Claude Code refuses --allow-dangerously-skip-permissions as root.