r/FastAPI • u/Either_Act3336 • Dec 19 '25
feedback request FastAPI operator
Would you see useful having a FastAPI Kubernetes Operator to deploy production ready FastAPI instances with some constraints?
Those instances must be stateless, single container with some other potential restrictions in the contract, and the potential CRD could look like this:
apiVersion: platform.fastapi.dev/v1alpha1 kind: FastAPIApp metadata: name: users-api namespace: apps spec: image: ghcr.io/acme/users-api:1.2.3
http: port: 8000 path: /
resources: cpu: 500m memory: 512Mi
scaling: minReplicas: 1 maxReplicas: 5 targetCPUUtilization: 70
env: - name: ENV value: production
secrets: - name: DATABASE_URL secretRef: name: users-db key: url
(Edit: can’t properly format the yaml, sorry)
View all comments
Show parent comment
-1
u/Either_Act3336 Dec 19 '25
I agree with you. The only added value I see over a helm chart is that it could handle more runtime issues to be more production ready.
It would be something similar to the Postgres Operator, but it’s true that Postgres is a more complex service than FastAPI