Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
2.9 KB
Raw Blame
apiVersion: apps/v1
kind: Deployment
metadata:
  name: control-ui
  namespace: control-plane
  labels:
    app: control-ui
spec:
  replicas: 1
  selector:
    matchLabels:
      app: control-ui
  template:
    metadata:
      labels:
        app: control-ui
    spec:
      automountServiceAccountToken: false
      securityContext:
        seccompProfile:
          type: RuntimeDefault
      containers:
      - name: control-ui
        image: clerum/control-ui:0.9.5
        imagePullPolicy: Always
        ports:
        - containerPort: 3000
          name: http
          protocol: TCP
        env:
        - name: CONTROL_API_INTERNAL_URL
          value: http://control-api.control-plane.svc.cluster.local:8090
        # Server-side control-ui proxy timeout in milliseconds. The app-router handler
        # app/control-api/[...path]/route.ts OWNS /control-api/* (the next.config.js
        # rewrite was removed), so this value governs the proxied upstream fetch. It
        # keeps legacy JSON GFS mutations from being cut mid-body. Upload v2 part
        # requests are raw streamed 8/16 MiB bodies and use the separate v2 timeout
        # in the route handler; this value does not become a 200 MiB body buffer.
        - name: CONTROL_API_PROXY_TIMEOUT_MS
          value: "300000"
        - name: CONTROL_UI_PUBLIC_TOKEN_CSRF_SECRET
          valueFrom:
            secretKeyRef:
              name: control-ui-secrets
              key: CONTROL_UI_PUBLIC_TOKEN_CSRF_SECRET
        livenessProbe:
          httpGet:
            path: /
            port: http
            scheme: HTTP
          initialDelaySeconds: 8
          periodSeconds: 12
          failureThreshold: 3
          successThreshold: 1
          timeoutSeconds: 1
        readinessProbe:
          httpGet:
            path: /
            port: http
            scheme: HTTP
          initialDelaySeconds: 4
          periodSeconds: 8
          failureThreshold: 3
          successThreshold: 1
          timeoutSeconds: 1
        resources:
          limits:
            cpu: 300m
            # Legacy JSON mutations are buffered by the generic proxy; v2 part
            # requests bypass that path and stream. Keep headroom for the legacy
            # cap and the Next.js baseline. The minikube overlay must not reduce this.
            memory: 512Mi
          requests:
            cpu: 50m
            memory: 128Mi
        securityContext:
          allowPrivilegeEscalation: false
          capabilities:
            drop:
            - ALL
          runAsNonRoot: true
          runAsUser: 10001
          runAsGroup: 10001
          seccompProfile:
            type: RuntimeDefault
---
apiVersion: v1
kind: Service
metadata:
  name: control-ui
  namespace: control-plane
  labels:
    app: control-ui
spec:
  type: ClusterIP
  selector:
    app: control-ui
  ports:
  - name: http
    port: 3000
    targetPort: http
    protocol: TCP