apiVersion: v1 kind: Service metadata: name: termix-service namespace: termix spec: clusterIP: None selector: app: termix ports: - port: 8080 targetPort: 8080 --- apiVersion: apps/v1 kind: StatefulSet metadata: name: termix-statefulset namespace: termix spec: serviceName: termix-service replicas: 1 selector: matchLabels: app: termix template: metadata: labels: app: termix spec: containers: - name: termix image: ghcr.io/lukegus/termix:latest envFrom: - configMapRef: name: termix-config ports: - containerPort: 8080 volumeMounts: - name: termix-data mountPath: /app/data resources: requests: memory: "128Mi" cpu: "100m" limits: memory: "256Mi" cpu: "300m" livenessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 20 periodSeconds: 5 timeoutSeconds: 3 failureThreshold: 3 volumeClaimTemplates: - metadata: name: termix-data spec: accessModes: ["ReadWriteOnce"] resources: requests: storage: 1Gi