fc-messageboard: deploy latest web image via gitops

This commit is contained in:
Andrew Stoltz
2026-04-22 15:48:05 -05:00
parent c0547a9964
commit 3c1d212251

View File

@@ -7,6 +7,21 @@ metadata:
labels: labels:
app.kubernetes.io/part-of: bluejay-infra app.kubernetes.io/part-of: bluejay-infra
--- ---
apiVersion: v1
kind: ConfigMap
metadata:
name: messageboard-web-config
namespace: fc-messageboard
data:
ASPNETCORE_ENVIRONMENT: Production
ASPNETCORE_URLS: http://+:8080
ASPNETCORE_FORWARDEDHEADERS_ENABLED: "true"
Security__AllowedOrigins__0: https://messageboard.iamworkin.lan
FlowerCore__Database__ConnectionStrings__Sqlite: Data Source=/data/messageboard.db
OTEL_SERVICE_NAME: FlowerCore.MessageBoard
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector.monitoring.svc.cluster.local:4317
OTEL_EXPORTER_OTLP_PROTOCOL: grpc
---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@@ -16,6 +31,8 @@ metadata:
app: messageboard-web app: messageboard-web
spec: spec:
replicas: 1 replicas: 1
strategy:
type: Recreate
selector: selector:
matchLabels: matchLabels:
app: messageboard-web app: messageboard-web
@@ -23,19 +40,27 @@ spec:
metadata: metadata:
labels: labels:
app: messageboard-web app: messageboard-web
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/path: "/metrics/prometheus"
spec: spec:
containers: containers:
- name: messageboard-web - name: messageboard-web
image: localhost/fc-messageboard-web:v202604132015 image: localhost/fc-messageboard-web:latest
imagePullPolicy: Never imagePullPolicy: Never
ports: ports:
- containerPort: 8080 - containerPort: 8080
name: http name: http
env: envFrom:
- name: ASPNETCORE_ENVIRONMENT - configMapRef:
value: Production name: messageboard-web-config
- name: ASPNETCORE_URLS - secretRef:
value: "http://+:8080" name: messageboard-web-secrets
optional: true
volumeMounts:
- name: data
mountPath: /data
resources: resources:
requests: requests:
memory: "128Mi" memory: "128Mi"
@@ -45,16 +70,36 @@ spec:
cpu: "500m" cpu: "500m"
livenessProbe: livenessProbe:
httpGet: httpGet:
path: /metrics/prometheus path: /health
port: 8080 port: 8080
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 30 periodSeconds: 30
timeoutSeconds: 5
failureThreshold: 3
readinessProbe: readinessProbe:
httpGet: httpGet:
path: /metrics/prometheus path: /health
port: 8080 port: 8080
initialDelaySeconds: 5 initialDelaySeconds: 10
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 6
volumes:
- name: data
persistentVolumeClaim:
claimName: messageboard-web-data
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: messageboard-web-data
namespace: fc-messageboard
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
--- ---
apiVersion: v1 apiVersion: v1
kind: Service kind: Service