resonatehq / docs

a dead simple programming model for modern applications
https://docs.resonatehq.io
1 stars 1 forks source link

Resonate Server, Hosting, K8s #24

Closed dtornow closed 2 months ago

dtornow commented 8 months ago

Add a minimal K8s manifest to host the Resonate Server/SQLite on K8s

Starting point

---
apiVersion: v1
kind: Service
metadata:
  name: resonate
  namespace: default
spec:
  selector:
    app: resonate
  ports:
    - port: 8001
      name: api
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: resonate
  namespace: default
spec:
  serviceName: resonate
  replicas: 1
  selector:
    matchLabels:
      app: resonate
  template:
    metadata:
      labels:
        app: resonate
    spec:
      containers:
        - name: resonate
          image: # TODO: image
          ports:
            - containerPort: 8001
              name: api
dtornow commented 8 months ago

Use proper volume claim/path