mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
k8s replace seafile-caddy with ingress-nginx
This commit is contained in:
parent
285647dda9
commit
964777c21d
|
@ -1,46 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.expose: localhost
|
||||
kompose.service.expose.ingress-class-name: nginx
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/send-timeout: "36000"
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: seafile-caddy
|
||||
name: seafile-caddy
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
io.kompose.service: seafile-caddy
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.expose: localhost
|
||||
kompose.service.expose.ingress-class-name: nginx
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/send-timeout: "36000"
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.network/compose-default: "true"
|
||||
io.kompose.network/compose-seafile-net: "true"
|
||||
io.kompose.service: seafile-caddy
|
||||
spec:
|
||||
containers:
|
||||
- image: ggogel/seafile-caddy:2.7.5
|
||||
name: seafile-caddy
|
||||
ports:
|
||||
- containerPort: 80
|
||||
protocol: TCP
|
||||
resources: {}
|
||||
restartPolicy: Always
|
||||
status: {}
|
|
@ -1,30 +0,0 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.expose: localhost
|
||||
kompose.service.expose.ingress-class-name: nginx
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/send-timeout: "36000"
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: seafile-caddy
|
||||
name: seafile-caddy
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: localhost
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
service:
|
||||
name: seafile-caddy
|
||||
port:
|
||||
number: 80
|
||||
path: /
|
||||
pathType: Prefix
|
||||
status:
|
||||
loadBalancer: {}
|
|
@ -1,24 +0,0 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
annotations:
|
||||
kompose.service.expose: localhost
|
||||
kompose.service.expose.ingress-class-name: nginx
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/send-timeout: "36000"
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
io.kompose.service: seafile-caddy
|
||||
name: seafile-caddy
|
||||
spec:
|
||||
ports:
|
||||
- name: "80"
|
||||
port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
io.kompose.service: seafile-caddy
|
||||
status:
|
||||
loadBalancer: {}
|
58
k8s/seafile-ingress.yaml
Normal file
58
k8s/seafile-ingress.yaml
Normal file
|
@ -0,0 +1,58 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: seafile-ingress
|
||||
annotations:
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
nginx.ingress.kubernetes.io/proxy-connect-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-read-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/proxy-send-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/send-timeout: "36000"
|
||||
nginx.ingress.kubernetes.io/rewrite-target: "/$2"
|
||||
spec:
|
||||
rules:
|
||||
- host: localhost
|
||||
http:
|
||||
paths:
|
||||
- path: /()(.*)
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: seahub
|
||||
port:
|
||||
number: 8000
|
||||
- path: /seafhttp(/|$)(.*)
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: seafile-server
|
||||
port:
|
||||
number: 8082
|
||||
- path: /seafdav(/|$)(.*)
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: seafile-server
|
||||
port:
|
||||
number: 8080
|
||||
- path: /notification/ping(/|$)(.*)
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: seafile-server
|
||||
port:
|
||||
number: 8083
|
||||
- path: /notification(/|$)(.*)
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: seafile-server
|
||||
port:
|
||||
number: 8083
|
||||
- path: /media
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: seahub-media
|
||||
port:
|
||||
number: 80
|
Loading…
Reference in a new issue