infra/k8s/monica/monica.yaml

105 lines
2 KiB
YAML
Raw Normal View History

2024-04-21 05:52:32 +00:00
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: monica
namespace: monica
spec:
rules:
2024-04-26 22:20:18 +00:00
- host: monica.janky.solutions
2024-04-21 05:52:32 +00:00
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
2024-06-01 05:18:01 +00:00
imagePullPolicy: Always
2024-04-21 05:52:32 +00:00
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
2024-04-21 05:52:32 +00:00
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
2024-04-26 22:20:18 +00:00
APP_URL: https://monica.janky.solutions
2024-04-21 05:52:32 +00:00
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"