infra/k8s/monica/monica.yaml
Finn 8239f04ca2
Some checks failed
/ diff-and-deploy (push) Failing after 54s
fix monica for autodeploy
2024-10-29 23:52:52 -07:00

104 lines
2 KiB
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: monica
namespace: monica
spec:
rules:
- host: monica.janky.solutions
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: monica
port:
name: web
---
apiVersion: v1
kind: Service
metadata:
name: monica
namespace: monica
spec:
ports:
- name: web
port: 80
selector:
app: monica
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: monica
namespace: monica
spec:
selector:
matchLabels:
app: monica
serviceName: monica
replicas: 1
template:
metadata:
labels:
app: monica
spec:
containers:
- image: docker.io/library/monica:4-apache
imagePullPolicy: Always
name: monica
resources: {}
ports:
- name: web
containerPort: 80
envFrom:
- secretRef:
name: monica
- configMapRef:
name: monica
volumeMounts:
- name: storage
mountPath: /var/www/html/storage
volumeClaimTemplates:
- metadata:
name: storage
spec:
# storageClassName: longhorn
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: ConfigMap
metadata:
name: monica
namespace: monica
data:
DB_HOST: mysql
DB_DATABASE: monica
DB_USERNAME: monica
CACHE_DRIVER: database
SESSION_DRIVER: database
QUEUE_DRIVER: sync
APP_URL: https://monica.janky.solutions
APP_ENV: production
APP_TRUSTED_PROXIES: "*"
# mail
MAIL_MAILER: smtp
MAIL_HOST: mx1.janky.email
MAIL_PORT: "587"
MAIL_USERNAME: monica@finn.io
MAIL_ENCRYPTION: tls
MAIL_FROM_ADDRESS: monica@finn.io
MAIL_FROM_NAME: Monica
# s3
FILESYSTEM_DISK: s3
DEFAULT_FILESYSTEM: s3
AWS_ENDPOINT: https://storage.home.finn.io
AWS_BUCKET: monica
AWS_DEFAULT_REGION: us-sea-1
AWS_USE_PATH_STYLE_ENDPOINT: "true"