Migrated to ssdnodes
This commit is contained in:
86
k8s/deployments.yaml
Normal file
86
k8s/deployments.yaml
Normal file
@@ -0,0 +1,86 @@
|
||||
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:
|
||||
imagePullSecrets:
|
||||
- name: registry-auth
|
||||
containers:
|
||||
- name: notify-mongodb
|
||||
image: registry.k8s.astropenguin.net/mongodb:3.4.4-r0
|
||||
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:
|
||||
imagePullSecrets:
|
||||
- name: registry-auth
|
||||
containers:
|
||||
- name: web
|
||||
image: registry.k8s.astropenguin.net/notify:2020.09.27
|
||||
|
||||
---
|
||||
|
||||
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
|
32
k8s/ingress.yaml
Normal file
32
k8s/ingress.yaml
Normal 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
|
Reference in New Issue
Block a user