ADD: added photoprism and immich manifest
This commit is contained in:
60
k3s/apps/photo/photoprism/mariadb.yaml
Normal file
60
k3s/apps/photo/photoprism/mariadb.yaml
Normal file
@@ -0,0 +1,60 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: mariadb
|
||||
namespace: photoprism
|
||||
spec:
|
||||
storageClassName: local-path
|
||||
volumeName: mariadb-pv
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 50Gi
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mariadb
|
||||
namespace: photoprism
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mariadb
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mariadb
|
||||
spec:
|
||||
containers:
|
||||
- name: mariadb
|
||||
image: mariadb:10.11
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
value: photoprism
|
||||
- name: MYSQL_DATABASE
|
||||
value: photoprism
|
||||
- name: MYSQL_USER
|
||||
value: photoprism
|
||||
- name: MYSQL_PASSWORD
|
||||
value: photoprism
|
||||
volumeMounts:
|
||||
- mountPath: /var/lib/mysql
|
||||
name: mariadb
|
||||
volumes:
|
||||
- name: mariadb
|
||||
persistentVolumeClaim:
|
||||
claimName: mariadb
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: mariadb
|
||||
namespace: photoprism
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: mariadb
|
||||
ports:
|
||||
- port: 3306
|
||||
Reference in New Issue
Block a user