- 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
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
{{- if .Values.redis.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: redis-master
|
|
namespace: {{ .Values.namespace }}
|
|
labels:
|
|
{{- include "osint-dashboard.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: redis
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: {{ .Values.redis.ports.redis }}
|
|
targetPort: {{ .Values.redis.ports.redis }}
|
|
protocol: TCP
|
|
name: redis
|
|
selector:
|
|
app.kubernetes.io/name: osint-dashboard
|
|
app.kubernetes.io/component: redis
|
|
redis-role: master
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: redis-replica
|
|
namespace: {{ .Values.namespace }}
|
|
labels:
|
|
{{- include "osint-dashboard.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: redis
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: {{ .Values.redis.ports.redis }}
|
|
targetPort: {{ .Values.redis.ports.redis }}
|
|
protocol: TCP
|
|
name: redis
|
|
selector:
|
|
app.kubernetes.io/name: osint-dashboard
|
|
app.kubernetes.io/component: redis
|
|
redis-role: replica
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: redis-sentinel
|
|
namespace: {{ .Values.namespace }}
|
|
labels:
|
|
{{- include "osint-dashboard.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: redis
|
|
spec:
|
|
type: ClusterIP
|
|
ports:
|
|
- port: {{ .Values.redis.ports.sentinel }}
|
|
targetPort: {{ .Values.redis.ports.sentinel }}
|
|
protocol: TCP
|
|
name: sentinel
|
|
selector:
|
|
app.kubernetes.io/name: osint-dashboard
|
|
app.kubernetes.io/component: redis
|
|
redis-role: sentinel
|
|
{{- end }}
|