infra/k8s/monica/monica.yaml
2024-04-26 15:20:18 -07:00

102 lines
1.9 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
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:
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"