feat: 🏡 make apps
This commit is contained in:
54
pkg/resource/backup-seafile.yaml
Normal file
54
pkg/resource/backup-seafile.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: backup-seafile-deployment
|
||||
namespace: seafile
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: backup-seafile
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: backup-seafile
|
||||
spec:
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: ScheduleAnyway
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: backup-seafile
|
||||
containers:
|
||||
- name: backup-seafile
|
||||
image: hub.yizhisec.com/hybridscope/hs_backup_seafile:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 9027
|
||||
volumeMounts:
|
||||
- name: config-volume
|
||||
mountPath: /etc/hs_backup_seafile/config.yml
|
||||
subPath: config.yml
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: config-volume
|
||||
configMap:
|
||||
name: config-backup-seafile
|
||||
items:
|
||||
- key: config.yml
|
||||
path: config.yml
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: backup-seafile-service
|
||||
namespace: seafile
|
||||
spec:
|
||||
selector:
|
||||
app: backup-seafile
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 9027
|
||||
targetPort: 9027
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user