Migrated to ssdnodes

This commit is contained in:
斟酌 鵬兄 2022-03-16 06:28:56 +09:00
parent fd2b55f91b
commit 0c98d9da6a
2 changed files with 38 additions and 36 deletions

View File

@ -1,22 +1,3 @@
kind: PersistentVolume
apiVersion: v1
metadata:
name: notify-mongodb
labels:
type: local
app: notify
srv: mongodb
spec:
storageClassName: local-storage
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/notify"
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: StatefulSet
metadata: metadata:
@ -34,9 +15,11 @@ spec:
app: notify app: notify
srv: mongodb srv: mongodb
spec: spec:
imagePullSecrets:
- name: registry-auth
containers: containers:
- name: notify-mongodb - name: notify-mongodb
image: 192.168.80.4:32000/apps/mongodb:b00002 image: registry.k8s.astropenguin.net/mongodb:3.4.4-r0
volumeMounts: volumeMounts:
- name: mongodata - name: mongodata
mountPath: /data/db mountPath: /data/db
@ -67,9 +50,11 @@ spec:
app: notify app: notify
srv: node srv: node
spec: spec:
imagePullSecrets:
- name: registry-auth
containers: containers:
- name: web - name: web
image: 192.168.80.4:32000/sites/notify:b00001 image: registry.k8s.astropenguin.net/notify:2020.09.27
--- ---
@ -99,18 +84,3 @@ spec:
ports: ports:
- port: 27017 - port: 27017
targetPort: 27017 targetPort: 27017
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: notify-web
spec:
rules:
- host: notify.astropenguin.net
http:
paths:
- backend:
serviceName: notify-web
servicePort: 15602

32
k8s/ingress.yaml Normal file
View File

@ -0,0 +1,32 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: default-notify-web
namespace: ingress-https
spec:
ingressClassName: nginx
tls:
- hosts:
- notify.astropenguin.net
secretName: any-astro-prod
rules:
- host: notify.astropenguin.net
http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: default-notify-web
port:
number: 15602
---
kind: Service
apiVersion: v1
metadata:
name: default-notify-web
namespace: ingress-https
spec:
type: ExternalName
externalName: notify-web.default.svc.cluster.local