working on kube

This commit is contained in:
2025-03-04 08:41:02 -07:00
parent 67fe95fdc1
commit 9392211604
7 changed files with 228 additions and 1 deletions

View File

@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud-cron
labels:
app: nextcloud-cron
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud-cron
template:
metadata:
labels:
app: nextcloud-cron
spec:
containers:
- name: nextcloud
image: nextcloud:latest
command: [ "/cron.sh" ]
environment:
- TZ=America/Denver
- OVERWRITEPROTOCOL=https
- MYSQL_PASSWORD=slkdnflksnelkfnsdweoinv
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=nextcloud-db
volumes:
- name: nextcloud-www
hostPath:
path: /data/nextcloud/html
type: DirectoryOrCreate
- name: music
hostPath:
path: /data/media/music
type: DirectoryOrCreate
- name: movies
hostPath:
path: /data/media/movies
type: DirectoryOrCreate
- name: tvshows
hostPath:
path: /data/media/tvshows
type: DirectoryOrCreate
- name: shared
hostPath:
path: /data/media/shared
type: DirectoryOrCreate
- name: audiobooks
hostPath:
path: /data/media/audiobooks
type: DirectoryOrCreate
ports:
- containerPort: 80
name: http

View File

@@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud-db
labels:
app: nextcloud-db
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud-db
template:
metadata:
labels:
app: nextcloud-db
spec:
containers:
- name: mariadb
image: mariadb:latest
args:
[
"--transaction-isolation=READ-COMMITTED",
"--log-bin=binlog",
"--binlog-format=ROW",
]
environment:
MYSQL_ROOT_PASSWORD: your_root_password
MYSQL_DATABASE: nextcloud
MYSQL_USER: nextcloud
MYSQL_PASSWORD: slkdnflksnelkfnsdweoinv
volumes:
- name: nextcloud-db-data
hostPath:
path: /data/nextcloud-db
type: DirectoryOrCreate
ports:
- containerPort: 3306

View File

@@ -0,0 +1,54 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud
labels:
app: nextcloud
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud
template:
metadata:
labels:
app: nextcloud
spec:
containers:
- name: nextcloud
image: nextcloud:latest
environment:
- TZ=America/Denver
- OVERWRITEPROTOCOL=https
- MYSQL_PASSWORD=slkdnflksnelkfnsdweoinv
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=nextcloud-db
volumes:
- name: nextcloud-www
hostPath:
path: /data/nextcloud/html
type: DirectoryOrCreate
- name: music
hostPath:
path: /data/media/music
type: DirectoryOrCreate
- name: movies
hostPath:
path: /data/media/movies
type: DirectoryOrCreate
- name: tvshows
hostPath:
path: /data/media/tvshows
type: DirectoryOrCreate
- name: shared
hostPath:
path: /data/media/shared
type: DirectoryOrCreate
- name: audiobooks
hostPath:
path: /data/media/audiobooks
type: DirectoryOrCreate
ports:
- containerPort: 80
name: http