Cluster egress to github.com is fronted by a step-ca TLS proxy that returns 404 page not found for unmatched routes — git clone of the public FlowerCore.Notes repo failed inside the pod even with GIT_SSL_NO_VERIFY=true. Rather than chase the egress NetworkPolicy / proxy config, bake the docs corpus directly into the image at /srv/flowercore-notes/docs. The corpus is just *.md + *.html (369 files, 2.7 MB uncompressed) — small enough that re-baking on every deploy is fine and avoids any runtime network dependency. Manifest changes: - Image bump: v202604240040search -> v202604240050corpus - Removed initContainers (clone-notes-corpus is now redundant) - Removed notes-corpus emptyDir + its volumeMounts - Vector-store PVC mount stays. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
119 lines
2.4 KiB
YAML
119 lines
2.4 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: intranet
|
|
---
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: intranet-vector-store
|
|
namespace: intranet
|
|
spec:
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
storageClassName: longhorn
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: intranet-web
|
|
namespace: intranet
|
|
labels:
|
|
app: intranet-web
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: intranet-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: intranet-web
|
|
spec:
|
|
containers:
|
|
- name: intranet-web
|
|
image: localhost/fc-intranet-web:v202604240050corpus
|
|
imagePullPolicy: Never
|
|
ports:
|
|
- containerPort: 5300
|
|
name: http
|
|
env:
|
|
- name: ASPNETCORE_ENVIRONMENT
|
|
value: Production
|
|
- name: ASPNETCORE_URLS
|
|
value: "http://+:5300"
|
|
resources:
|
|
requests:
|
|
memory: "256Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "1Gi"
|
|
cpu: "1000m"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 5300
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /health
|
|
port: 5300
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
volumeMounts:
|
|
- name: vector-store
|
|
mountPath: /data
|
|
volumes:
|
|
- name: vector-store
|
|
persistentVolumeClaim:
|
|
claimName: intranet-vector-store
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: intranet-web
|
|
namespace: intranet
|
|
spec:
|
|
selector:
|
|
app: intranet-web
|
|
ports:
|
|
- port: 5300
|
|
targetPort: 5300
|
|
name: http
|
|
---
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: intranet-tls
|
|
namespace: intranet
|
|
spec:
|
|
secretName: intranet-tls
|
|
issuerRef:
|
|
name: step-ca-acme
|
|
kind: ClusterIssuer
|
|
dnsNames:
|
|
- intranet.iamworkin.lan
|
|
---
|
|
apiVersion: traefik.io/v1alpha1
|
|
kind: IngressRoute
|
|
metadata:
|
|
name: intranet
|
|
namespace: intranet
|
|
spec:
|
|
entryPoints:
|
|
- websecure
|
|
routes:
|
|
- match: Host(`intranet.iamworkin.lan`)
|
|
kind: Rule
|
|
services:
|
|
- name: intranet-web
|
|
port: 5300
|
|
tls:
|
|
secretName: intranet-tls
|