72 lines
1.3 KiB
YAML
72 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: openlist
|
|
labels:
|
|
app: openlist
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: openlist
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: openlist
|
|
spec:
|
|
containers:
|
|
- name: openlist
|
|
image: docker.1ms.run/openlistteam/openlist:latest
|
|
securityContext:
|
|
runAsUser: 0
|
|
ports:
|
|
- containerPort: 5244
|
|
protocol: TCP
|
|
env:
|
|
- name: UMASK
|
|
value: "022"
|
|
volumeMounts:
|
|
- name: openlist-data
|
|
mountPath: /opt/openlist/data
|
|
volumes:
|
|
- name: openlist-data
|
|
hostPath:
|
|
path: /opt/docker/openlist/data
|
|
type: DirectoryOrCreate
|
|
nodeSelector:
|
|
machine: "kevisual"
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: openlist
|
|
labels:
|
|
app: openlist
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: 5244
|
|
targetPort: 5244
|
|
protocol: TCP
|
|
name: http
|
|
selector:
|
|
app: openlist
|
|
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: openlist-https
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`openlist.kevisual.cn`)
|
|
kind: Rule
|
|
services:
|
|
- name: openlist
|
|
port: 5244
|
|
tls:
|
|
certResolver: letsencrypt
|