Image 0.1.1 (schema path fix), OpenBao ESO store, CNPG cluster, TLS, pilot Phase re-registered on public API. Founding token local-only.
82 lines
2.3 KiB
YAML
82 lines
2.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: target-revenue
|
|
namespace: target-revenue
|
|
labels:
|
|
app.kubernetes.io/name: target-revenue
|
|
app.kubernetes.io/part-of: target-revenue
|
|
annotations:
|
|
argocd.argoproj.io/sync-wave: "3"
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: target-revenue
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: target-revenue
|
|
app.kubernetes.io/part-of: target-revenue
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 10001
|
|
fsGroup: 10001
|
|
containers:
|
|
- name: target-revenue
|
|
image: forgejo.coulomb.social/coulomb/target-revenue:0.1.1
|
|
imagePullPolicy: IfNotPresent
|
|
ports:
|
|
- name: http
|
|
containerPort: 8000
|
|
env:
|
|
- name: TRF_SCHEMAS_DIR
|
|
value: /src/schemas
|
|
- name: TRF_SPECS_DIR
|
|
value: /src/specs
|
|
- name: TRF_DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: target-revenue-runtime
|
|
key: TRF_DATABASE_URL
|
|
- name: TRF_SIGNING_KEY_HEX
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: target-revenue-runtime
|
|
key: TRF_SIGNING_KEY_HEX
|
|
- name: TRF_CONTROL_PLANE_SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: target-revenue-runtime
|
|
key: TRF_CONTROL_PLANE_SECRET_KEY
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: http
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 256Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 512Mi
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop: ["ALL"]
|
|
volumeMounts:
|
|
- name: tmp
|
|
mountPath: /tmp
|
|
volumes:
|
|
- name: tmp
|
|
emptyDir: {}
|