## ## Backend — FastAPI (port 8000) ## apiVersion: apps/v1 kind: Deployment metadata: name: backend namespace: oci-cis-agent labels: app: oci-cis-agent-backend spec: replicas: 1 selector: matchLabels: app: oci-cis-agent-backend template: metadata: labels: app: oci-cis-agent-backend spec: imagePullSecrets: - name: ocir-credentials containers: - name: backend image: OCIR_REGION.ocir.io/OCIR_NAMESPACE/oci-cis-agent-backend:latest ports: - containerPort: 8000 envFrom: - configMapRef: name: oci-cis-agent-config env: - name: APP_SECRET valueFrom: secretKeyRef: name: app-secret key: APP_SECRET volumeMounts: - name: data mountPath: /data resources: requests: memory: "2Gi" cpu: "500m" limits: memory: "4Gi" cpu: "2000m" readinessProbe: httpGet: path: /api/health port: 8000 initialDelaySeconds: 30 periodSeconds: 10 livenessProbe: httpGet: path: /api/health port: 8000 initialDelaySeconds: 60 periodSeconds: 30 volumes: - name: data persistentVolumeClaim: claimName: oci-cis-agent-data --- ## ## Frontend — nginx (port 80) ## apiVersion: apps/v1 kind: Deployment metadata: name: frontend namespace: oci-cis-agent labels: app: oci-cis-agent-frontend spec: replicas: 1 selector: matchLabels: app: oci-cis-agent-frontend template: metadata: labels: app: oci-cis-agent-frontend spec: imagePullSecrets: - name: ocir-credentials containers: - name: frontend image: OCIR_REGION.ocir.io/OCIR_NAMESPACE/oci-cis-agent-frontend:latest ports: - containerPort: 80 env: - name: TZ valueFrom: configMapKeyRef: name: oci-cis-agent-config key: TZ resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "512Mi" cpu: "500m" readinessProbe: httpGet: path: / port: 80 initialDelaySeconds: 5 periodSeconds: 10