gcloud-lab/apps/base/osint-dashboard/templates/nats/service.yaml
Sirius Devops 8255467313 feat: add OSINT Dashboard Kubernetes infrastructure
- Helm chart scaffold (Chart.yaml, values.yaml, _helpers.tpl)
- Namespace + RBAC manifests
- PostgreSQL (CNPG, 3 replicas, PostGIS + TimescaleDB)
- NATS JetStream (3 replicas, persistent, custom subjects)
- Redis Sentinel (1 primary + 2 replicas, HA)
- MinIO distributed (4 replicas, bucket init job)
- Gateway API HTTPRoute + cert-manager TLS certificates
- Monitoring stack (Prometheus, Grafana, Alertmanager, exporters)
- NetworkPolicies (default deny + per-component policies)
- GitHub Actions CI/CD pipeline (lint, template, security scan)
- Flux CD staging overlay
2026-05-21 13:25:15 +00:00

60 lines
1.5 KiB
YAML

{{- if .Values.nats.enabled }}
apiVersion: v1
kind: Service
metadata:
name: nats
namespace: {{ .Values.namespace }}
labels:
{{- include "osint-dashboard.labels" . | nindent 4 }}
app.kubernetes.io/component: message-broker
spec:
type: ClusterIP
ports:
- port: {{ .Values.nats.ports.client }}
targetPort: {{ .Values.nats.ports.client }}
protocol: TCP
name: client
selector:
app.kubernetes.io/name: osint-dashboard
app.kubernetes.io/component: message-broker
---
apiVersion: v1
kind: Service
metadata:
name: nats-ws
namespace: {{ .Values.namespace }}
labels:
{{- include "osint-dashboard.labels" . | nindent 4 }}
app.kubernetes.io/component: message-broker
spec:
type: ClusterIP
ports:
- port: {{ .Values.nats.ports.websocket }}
targetPort: {{ .Values.nats.ports.websocket }}
protocol: TCP
name: websocket
selector:
app.kubernetes.io/name: osint-dashboard
app.kubernetes.io/component: message-broker
---
apiVersion: v1
kind: Service
metadata:
name: nats-cluster
namespace: {{ .Values.namespace }}
labels:
{{- include "osint-dashboard.labels" . | nindent 4 }}
app.kubernetes.io/component: message-broker
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
spec:
clusterIP: None
ports:
- port: {{ .Values.nats.ports.cluster }}
targetPort: {{ .Values.nats.ports.cluster }}
protocol: TCP
name: cluster
selector:
app.kubernetes.io/name: osint-dashboard
app.kubernetes.io/component: message-broker
{{- end }}