Skip to content

Secure, Fast, and Extensible Sandbox runtime for AI agents.

1.7 KB
Raw Blame
# Copyright 2026 The OpenSandbox Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# OSEP-0024 profile: ephemeral Redis for activity keys and pause locks.
# Applied into the opensandbox-system namespace by integration-env.sh.
apiVersion: apps/v1
kind: Deployment
metadata:
  name: idle-pause-redis
  labels:
    app: idle-pause-redis
spec:
  replicas: 1
  selector:
    matchLabels:
      app: idle-pause-redis
  template:
    metadata:
      labels:
        app: idle-pause-redis
    spec:
      containers:
        - name: redis
          image: redis:7-alpine
          args: ["--save", "", "--appendonly", "no"]
          ports:
            - containerPort: 6379
              name: redis
          resources:
            requests:
              cpu: 50m
              memory: 64Mi
            limits:
              cpu: "1"
              memory: 256Mi
          readinessProbe:
            tcpSocket:
              port: 6379
            initialDelaySeconds: 2
            periodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
  name: idle-pause-redis
  labels:
    app: idle-pause-redis
spec:
  selector:
    app: idle-pause-redis
  ports:
    - name: redis
      port: 6379
      targetPort: 6379