chore: k8s manifests and Gitea CI for ins-landing.containerverse.dev
Modelled on dynamic-qr: Traefik Gateway with Let's Encrypt, Longhorn PVC, 1 replica with Recreate, Calico network policies, and a rate limit on POST /api/leads. CI runs the tests in a Dockerfile stage before pushing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfmHGGiYUjNcvJoyzdf
This commit is contained in:
1 parent
0d50d3c09c
commit
91b6b31644
8 files changed
+590
-10
No files matched your search
@@ -0,0 +1,61 @@
|
||||
# Ingress rules for namespace ins-landing-page (enforced by Calico). Everything is denied unless
|
||||
# a policy below allows it. The kubelet's probes come from the pod's own node, which Calico always
|
||||
# allows, so they need no rule.
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: default-deny-ingress
|
||||
namespace: ins-landing-page
|
||||
spec:
|
||||
podSelector: {}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
---
|
||||
# Traefik (MicroK8s ingress addon, namespace `ingress`) to the app.
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: app-from-traefik
|
||||
namespace: ins-landing-page
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app: ins-landing-page
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: ingress
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: traefik
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 3000
|
||||
---
|
||||
# cert-manager's HTTP-01 solver pod: Traefik must reach it, or the certificate cannot be issued
|
||||
# or renewed.
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: acme-solver-from-traefik
|
||||
namespace: ins-landing-page
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
acme.cert-manager.io/http01-solver: "true"
|
||||
policyTypes:
|
||||
- Ingress
|
||||
ingress:
|
||||
- from:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: ingress
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: traefik
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 8089
|
||||
Reference in new issue
Block a user