file rename and linkage
This commit is contained in:
parent
9e75d16af1
commit
86686350e5
@ -1,7 +1,7 @@
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-ingress
|
name: nextcloud
|
||||||
namespace: nextcloud
|
namespace: nextcloud
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
@ -12,5 +12,5 @@ spec:
|
|||||||
- match: Host(`newcloud.steffenillium.de`)
|
- match: Host(`newcloud.steffenillium.de`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: nextcloud-service
|
- name: nextcloud
|
||||||
port: 80
|
port: 80
|
@ -6,8 +6,8 @@ namespace: nextcloud
|
|||||||
resources:
|
resources:
|
||||||
- nextcloud.yaml
|
- nextcloud.yaml
|
||||||
# - nextcloud-app-pvc.yaml
|
# - nextcloud-app-pvc.yaml
|
||||||
- nextcloud-app-service.yaml
|
- service.yaml
|
||||||
# - nextcloud-db-pvc
|
# - nextcloud-db-pvc
|
||||||
- nextcloud-ingress.yaml
|
- ingress.yaml
|
||||||
- nextcloud-secret-sealed.yaml
|
- secret-sealed.yaml
|
||||||
- nextcloud-namespace.yaml
|
- namespace.yaml
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nextcloud-app-pvc
|
|
||||||
name: nextcloud-app-pvc
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 150Gi
|
|
||||||
status: {}
|
|
@ -1,12 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: nextcloud-db-pvc
|
|
||||||
name: nextcloud-db-pvc
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
@ -2,23 +2,23 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nextcloud-app
|
app: nextcloud
|
||||||
name: nextcloud-app
|
name: nextcloud
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: nextcloud-app
|
app: nextcloud
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: nextcloud-app
|
app: nextcloud
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- image: mariadb
|
- image: mariadb
|
||||||
name: nextcloud-db
|
name: mariadb
|
||||||
args:
|
args:
|
||||||
- --transaction-isolation=READ-COMMITTED
|
- --transaction-isolation=READ-COMMITTED
|
||||||
- --binlog-format=ROW
|
- --binlog-format=ROW
|
||||||
@ -46,7 +46,8 @@ spec:
|
|||||||
cpu: "0.2"
|
cpu: "0.2"
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 3306
|
- name: mariadb
|
||||||
|
containerPort: 3306
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/mysql
|
- mountPath: /var/lib/mysql
|
||||||
@ -59,10 +60,11 @@ spec:
|
|||||||
cpu: "0.1"
|
cpu: "0.1"
|
||||||
memory: "2Gi"
|
memory: "2Gi"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 6379
|
- name: redis
|
||||||
|
containerPort: 6379
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
- image: nextcloud
|
- image: nextcloud
|
||||||
name: nextcloud-app
|
name: nextcloud
|
||||||
env:
|
env:
|
||||||
- name: MYSQL_DATABASE
|
- name: MYSQL_DATABASE
|
||||||
value: nextcloud
|
value: nextcloud
|
||||||
@ -82,7 +84,7 @@ spec:
|
|||||||
name: nextcloud-secret
|
name: nextcloud-secret
|
||||||
key: MYSQL_PASSWORD
|
key: MYSQL_PASSWORD
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: nextcloud
|
||||||
containerPort: 80
|
containerPort: 80
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources: {}
|
resources: {}
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: nextcloud-service
|
name: nextcloud
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: http
|
targetPort: nextcloud
|
||||||
selector:
|
selector:
|
||||||
app: nextcloud-app
|
app: nextcloud
|
Loading…
x
Reference in New Issue
Block a user