Full deployment manifests (Namespace, Deployment, Service, Certificate, IngressRoute) for 4 new FlowerCore services with port 8080, ClusterIP on port 80, cert-manager step-ca-acme TLS, and /metrics/prometheus health probes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
101 lines
2.0 KiB
YAML
101 lines
2.0 KiB
YAML
# FlowerCore Chat — AI chat service
|
|
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: fc-chat
|
|
labels:
|
|
app.kubernetes.io/part-of: bluejay-infra
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: chat-web
|
|
namespace: fc-chat
|
|
labels:
|
|
app: chat-web
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: chat-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: chat-web
|
|
spec:
|
|
containers:
|
|
- name: chat-web
|
|
image: localhost/fc-chat-web:v202604132015
|
|
imagePullPolicy: Never
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
env:
|
|
- name: ASPNETCORE_ENVIRONMENT
|
|
value: Production
|
|
- name: ASPNETCORE_URLS
|
|
value: "http://+:8080"
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /metrics/prometheus
|
|
port: 8080
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /metrics/prometheus
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: chat-web
|
|
namespace: fc-chat
|
|
spec:
|
|
selector:
|
|
app: chat-web
|
|
ports:
|
|
- port: 80
|
|
targetPort: 8080
|
|
name: http
|
|
---
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: chat-web-tls
|
|
namespace: fc-chat
|
|
spec:
|
|
secretName: chat-web-tls
|
|
issuerRef:
|
|
name: step-ca-acme
|
|
kind: ClusterIssuer
|
|
dnsNames:
|
|
- chat.iamworkin.lan
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: chat-web
|
|
namespace: fc-chat
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`chat.iamworkin.lan`)
|
|
kind: Rule
|
|
services:
|
|
- name: chat-web
|
|
port: 80
|
|
tls:
|
|
secretName: chat-web-tls
|