118 lines
2.3 KiB
YAML
118 lines
2.3 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress
|
|
namespace: vibe-stonk
|
|
annotations:
|
|
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
|
nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
|
nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
# nginx.ingress.kubernetes.io/rewrite-target: /
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: stock.lab.gg
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: /
|
|
backend:
|
|
service:
|
|
name: service
|
|
port:
|
|
number: 60003
|
|
- pathType: Prefix
|
|
path: /api
|
|
backend:
|
|
service:
|
|
name: api-service
|
|
port:
|
|
number: 60004
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: service
|
|
namespace: vibe-stonk
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: static
|
|
ports:
|
|
- protocol: TCP
|
|
port: 60003
|
|
targetPort: 80
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: vibe-stonk
|
|
name: static
|
|
labels:
|
|
app: app
|
|
spec:
|
|
replicas: 4
|
|
selector:
|
|
matchLabels:
|
|
app: static
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: static
|
|
spec:
|
|
tolerations:
|
|
- key: "worker"
|
|
effect: "NoSchedule"
|
|
imagePullSecrets:
|
|
- name: regsecret
|
|
containers:
|
|
- name: static
|
|
image: registry.geniuscartel.xyz/stonk/static:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: api-service
|
|
namespace: vibe-stonk
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: api
|
|
ports:
|
|
- protocol: TCP
|
|
port: 60004
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: vibe-stonk
|
|
name: api
|
|
labels:
|
|
app: app
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: api
|
|
spec:
|
|
tolerations:
|
|
- key: "worker"
|
|
effect: "NoSchedule"
|
|
imagePullSecrets:
|
|
- name: regsecret
|
|
containers:
|
|
- name: api-container
|
|
image: registry.geniuscartel.xyz/stonk/api:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
---
|