2d98df75ad
Adds all k8s manifests (namespace, postgres, redis, api, worker, beat, web, ingress, externalsecret, configmap, kustomization), Argo CD Application, and Cloudflare Zero Trust access policy for plane.neuralplatform.ai.
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: plane-api
|
|
namespace: plane
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: plane-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: plane-api
|
|
spec:
|
|
containers:
|
|
- name: plane-api
|
|
image: makeplane/plane-backend:stable
|
|
command: ["./bin/takeoff"]
|
|
ports:
|
|
- containerPort: 8000
|
|
envFrom:
|
|
- configMapRef:
|
|
name: plane-config
|
|
env:
|
|
- name: SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: plane-secrets
|
|
key: secret_key
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8000
|
|
initialDelaySeconds: 20
|
|
periodSeconds: 10
|
|
failureThreshold: 6
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: 1000m
|
|
memory: 1Gi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: plane-api
|
|
namespace: plane
|
|
spec:
|
|
selector:
|
|
app: plane-api
|
|
ports:
|
|
- port: 8000
|
|
targetPort: 8000
|