76
apps/nextcloud/base/deployment.yaml
Normal file
76
apps/nextcloud/base/deployment.yaml
Normal file
@@ -0,0 +1,76 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nextcloud
|
||||
namespace: nextcloud
|
||||
labels:
|
||||
app.kubernetes.io/name: nextcloud
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: nextcloud
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: nextcloud
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
containers:
|
||||
- name: nextcloud
|
||||
image: nextcloud/all-in-one:latest
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
env:
|
||||
- name: SKIP_DOMAIN_VALIDATION
|
||||
value: "true"
|
||||
- name: APACHE_PORT
|
||||
value: "11000"
|
||||
- name: APACHE_IP_BINDING
|
||||
value: "0.0.0.0"
|
||||
ports:
|
||||
- protocol: TCP
|
||||
containerPort: 80
|
||||
name: 80-tcp
|
||||
- protocol: TCP
|
||||
containerPort: 8080
|
||||
name: 8080-tcp
|
||||
- protocol: TCP
|
||||
containerPort: 8443
|
||||
name: 8443-tcp
|
||||
- protocol: TCP
|
||||
containerPort: 3478
|
||||
name: 3478-tcp
|
||||
- protocol: UDP
|
||||
containerPort: 3478
|
||||
name: 3478-udp
|
||||
volumeMounts:
|
||||
- name: nextcloud_aio_mastercontainer
|
||||
mountPath: /mnt/docker-aio-config
|
||||
- name: nextcloud_aio_nextcloud
|
||||
mountPath: /mnt/ncdata
|
||||
- name: nextcloud_storagebox
|
||||
mountPath: /mnt/storagebox
|
||||
- name: docker-socket
|
||||
mountPath: /var/run/docker.sock
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: nextcloud_aio_mastercontainer
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/nextcloud/config
|
||||
type: Directory
|
||||
- name: nextcloud_aio_nextcloud
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/nextcloud/data
|
||||
type: Directory
|
||||
- name: nextcloud_storagebox
|
||||
hostPath:
|
||||
path: /mnt/nfs/AppData/nextcloud/storagebox
|
||||
type: Directory
|
||||
- name: docker-socket
|
||||
hostPath:
|
||||
path: /var/run/docker.sock
|
||||
type: Socket
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
21
apps/nextcloud/base/ingress.yaml
Normal file
21
apps/nextcloud/base/ingress.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: nextcloud-ingress
|
||||
namespace: nextcloud
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "false"
|
||||
nginx.ingress.kubernetes.io/use-regex: "true"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: "nextcloud.cluster.edward.sydney"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/"
|
||||
backend:
|
||||
service:
|
||||
name: nextcloud
|
||||
port:
|
||||
number: 8080
|
||||
6
apps/nextcloud/base/kustomization.yaml
Normal file
6
apps/nextcloud/base/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ./deployment.yaml
|
||||
- ./service.yaml
|
||||
- ./ingress.yaml
|
||||
25
apps/nextcloud/base/service.yaml
Normal file
25
apps/nextcloud/base/service.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nextcloud
|
||||
namespace: nextcloud
|
||||
labels:
|
||||
app.kubernetes.io/name: nextcloud
|
||||
spec:
|
||||
selector:
|
||||
app.kubernetes.io/name: nextcloud
|
||||
type: ClusterIP
|
||||
internalTrafficPolicy: Cluster
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
||||
name: 80-tcp
|
||||
- protocol: TCP
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
name: 8080-tcp
|
||||
- protocol: TCP
|
||||
port: 8443
|
||||
targetPort: 8443
|
||||
name: 8443-tcp
|
||||
12
apps/nextcloud/env/k3s-cluster/config.json
vendored
Normal file
12
apps/nextcloud/env/k3s-cluster/config.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"appName": "nextcloud",
|
||||
"userGivenName": "nextcloud",
|
||||
"namespace": "nextcloud",
|
||||
"destNamespace": "nextcloud",
|
||||
"destServer": "https://kubernetes.default.svc",
|
||||
"srcPath": "apps/nextcloud/env/k3s-cluster",
|
||||
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
|
||||
"srcTargetRevision": "",
|
||||
"labels": null,
|
||||
"annotations": null
|
||||
}
|
||||
4
apps/nextcloud/env/k3s-cluster/kustomization.yaml
vendored
Normal file
4
apps/nextcloud/env/k3s-cluster/kustomization.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../base
|
||||
@@ -21,6 +21,7 @@ resources:
|
||||
- ./minio.yaml
|
||||
- ./mongodb.yaml
|
||||
- ./new-relic.yaml
|
||||
- ./nextcloud.yaml
|
||||
- ./nexus.yaml
|
||||
- ./postgresql.yaml
|
||||
- ./prometheus.yaml
|
||||
|
||||
9
resources/namespaces/base/nextcloud.yaml
Normal file
9
resources/namespaces/base/nextcloud.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-options: Prune=false
|
||||
creationTimestamp: null
|
||||
name: nextcloud
|
||||
spec: {}
|
||||
status: {}
|
||||
Reference in New Issue
Block a user