🚀 add files

This commit is contained in:
2024-06-13 15:29:45 +01:00
commit e59bb3780f
7 changed files with 337 additions and 0 deletions
+50
View File
@@ -0,0 +1,50 @@
apiVersion: v1
kind: Namespace
metadata:
name: nextcloud
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nextcloud-redis
namespace: nextcloud
spec:
replicas: 1
selector:
matchLabels:
app: nextcloud-redis
template:
metadata:
labels:
app: nextcloud-redis
spec:
containers:
- name: broker
image: docker.io/library/redis:7
imagePullPolicy: IfNotPresent
volumeMounts:
- name: redisdata
mountPath: /data
ports:
- name: redis
containerPort: 6379
volumes:
- name: redisdata
hostPath:
path: /opt/kubernetes/Nextcloud_kube/data/redisdata
---
apiVersion: v1
kind: Service
metadata:
name: redis
namespace: nextcloud
spec:
selector:
app: nextcloud-redis
ports:
- protocol: TCP
port: 6379
targetPort: redis