2020-09-27 00:22:41 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: StatefulSet
|
|
|
|
metadata:
|
|
|
|
name: notify-mongodb
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: notify
|
|
|
|
srv: mongodb
|
|
|
|
serviceName: notify-mongodb
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: notify
|
|
|
|
srv: mongodb
|
|
|
|
spec:
|
2022-03-15 21:28:56 +00:00
|
|
|
imagePullSecrets:
|
|
|
|
- name: registry-auth
|
2020-09-27 00:22:41 +00:00
|
|
|
containers:
|
|
|
|
- name: notify-mongodb
|
2022-03-15 21:28:56 +00:00
|
|
|
image: registry.k8s.astropenguin.net/mongodb:3.4.4-r0
|
2020-09-27 00:22:41 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: mongodata
|
|
|
|
mountPath: /data/db
|
|
|
|
volumeClaimTemplates:
|
|
|
|
- metadata:
|
|
|
|
name: mongodata
|
|
|
|
spec:
|
|
|
|
accessModes: [ "ReadWriteOnce" ]
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
storage: 1Gi
|
|
|
|
storageClassName: local-storage
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: notify
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: notify
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: notify
|
|
|
|
srv: node
|
|
|
|
spec:
|
2022-03-15 21:28:56 +00:00
|
|
|
imagePullSecrets:
|
|
|
|
- name: registry-auth
|
2020-09-27 00:22:41 +00:00
|
|
|
containers:
|
|
|
|
- name: web
|
2022-03-15 21:28:56 +00:00
|
|
|
image: registry.k8s.astropenguin.net/notify:2020.09.27
|
2020-09-27 00:22:41 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: notify-web
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: notify
|
|
|
|
srv: node
|
|
|
|
ports:
|
|
|
|
- name: app
|
|
|
|
port: 15602
|
|
|
|
targetPort: 15602
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: notify-mongodb
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
app: notify
|
|
|
|
srv: mongodb
|
|
|
|
ports:
|
|
|
|
- port: 27017
|
|
|
|
targetPort: 27017
|