🚀 add files
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: nextcloud
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nextcloud-webserver
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nextcloud-webserver
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nextcloud-webserver
|
||||
spec:
|
||||
nodeName: kube-master
|
||||
containers:
|
||||
- name: nextcloud-webserver
|
||||
# image: nextcloud:apache
|
||||
# image: nextcloud:28.0.5-apache
|
||||
# image: nextcloud:28.0.6-apache
|
||||
image: nextcloud:29.0.1-apache
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: webserver-port
|
||||
env:
|
||||
#- name: REDIS_HOST
|
||||
# value: "redis://redis:6379"
|
||||
- name: POSTGRES_HOST
|
||||
value: "db"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
httpHeaders:
|
||||
- name: host
|
||||
value: nextcloud.tryton.geeraert.eu
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 3
|
||||
|
||||
volumeMounts:
|
||||
- name: nextcloud-webserver
|
||||
mountPath: /var/www/html
|
||||
|
||||
|
||||
volumes:
|
||||
- name: nextcloud-webserver
|
||||
persistentVolumeClaim:
|
||||
claimName: nextcloud-webserver
|
||||
securityContext:
|
||||
fsGroup: 33
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: webserver
|
||||
namespace: nextcloud
|
||||
spec:
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
# targetPort: webserver-port
|
||||
protocol: TCP
|
||||
# nodePort: 31236
|
||||
# type: NodePort
|
||||
selector:
|
||||
app: nextcloud-webserver
|
||||
Reference in New Issue
Block a user