- Activate / Deactivate via flox activate --detach (with graceful SIGTERM→SIGKILL) - Non-privileged IsAlive process check with Linux /proc fallback - Dev-mode stub when flox is missing or FLOXENV_DEV_MODE=1 - Unit and integration tests Closes #16
78 lines
1.7 KiB
YAML
78 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pool-manager
|
|
namespace: scobleclaw
|
|
labels:
|
|
app: pool-manager
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: pool-manager
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pool-manager
|
|
spec:
|
|
containers:
|
|
- name: pool-manager
|
|
image: localhost:5000/pool-manager:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3990
|
|
name: http
|
|
env:
|
|
- name: PORT
|
|
value: "3990"
|
|
- name: HOST
|
|
value: "0.0.0.0"
|
|
- name: POOL_CONFIG
|
|
value: "/app/harness.yaml"
|
|
volumeMounts:
|
|
- name: harness-config
|
|
mountPath: /app/harness.yaml
|
|
subPath: harness.yaml
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 2
|
|
periodSeconds: 5
|
|
failureThreshold: 3
|
|
resources:
|
|
requests:
|
|
memory: "32Mi"
|
|
cpu: "50m"
|
|
limits:
|
|
memory: "128Mi"
|
|
cpu: "250m"
|
|
volumes:
|
|
- name: harness-config
|
|
configMap:
|
|
name: pool-manager-harness
|
|
defaultMode: 0444
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: pool-manager
|
|
namespace: scobleclaw
|
|
labels:
|
|
app: pool-manager
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: pool-manager
|
|
ports:
|
|
- name: http
|
|
port: 3990
|
|
targetPort: 3990
|
|
protocol: TCP
|