98 lines
2.1 KiB
YAML
98 lines
2.1 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: squaremcp-site
|
|
namespace: fetcherpay
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: squaremcp-site
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: squaremcp-site
|
|
spec:
|
|
containers:
|
|
- name: squaremcp-site
|
|
image: localhost:32000/squaremcp-site:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8080
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 3
|
|
periodSeconds: 10
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: squaremcp-site
|
|
namespace: fetcherpay
|
|
spec:
|
|
selector:
|
|
app: squaremcp-site
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 8080
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: squaremcp-site-ingress
|
|
namespace: fetcherpay
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: letsencrypt-prod
|
|
nginx.ingress.kubernetes.io/proxy-buffering: "off"
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: squaremcp.com
|
|
http:
|
|
paths:
|
|
- path: /api/pilot-request
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: hermes-mcp
|
|
port:
|
|
number: 3456
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: squaremcp-site
|
|
port:
|
|
number: 80
|
|
- host: www.squaremcp.com
|
|
http:
|
|
paths:
|
|
- path: /api/pilot-request
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: hermes-mcp
|
|
port:
|
|
number: 3456
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: squaremcp-site
|
|
port:
|
|
number: 80
|
|
tls:
|
|
- hosts:
|
|
- squaremcp.com
|
|
- www.squaremcp.com
|
|
secretName: squaremcp-tls
|