- Fix PostgreSQL topologySpreadConstraints label selector (cnpg.io/cluster) - Fix Ingress HTTPRoutes: route API and WS traffic to correct backends - Fix API NetworkPolicy port mismatch (4000 -> 8000) - Fix MinIO bucket index syntax (_0 -> 0) in ConfigMap - Add postgresql.port and postgresql.database to values.yaml - Add container-level securityContext to API deployment - Restrict monitoring NetworkPolicy ingress to monitoring namespace - Enable readOnlyRootFilesystem for MinIO container - Add activeDeadlineSeconds (3600s) to all 4 CronJobs
58 lines
1.6 KiB
YAML
58 lines
1.6 KiB
YAML
{{- if .Values.ingress.enabled }}
|
|
{{- range $host := .Values.ingress.hosts }}
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: {{ $host.host | replace "." "-" | trunc 50 | trimSuffix "-" }}
|
|
namespace: {{ $.Values.namespace }}
|
|
labels:
|
|
{{- include "osint-dashboard.labels" $ | nindent 4 }}
|
|
spec:
|
|
parentRefs:
|
|
- name: external-http-gateway
|
|
hostnames:
|
|
- "{{ $host.host }}"
|
|
rules:
|
|
{{- range $rule := $host.paths }}
|
|
- matches:
|
|
- path:
|
|
type: PathPrefix
|
|
value: {{ $rule.path }}
|
|
backendRefs:
|
|
{{- if eq $host.host "dashboard.siriusdevops.com" }}
|
|
- name: dashboard-web
|
|
port: 3000
|
|
{{- else if eq $host.host "api.siriusdevops.com" }}
|
|
- name: {{ include "osint-dashboard.fullname" $ }}-api
|
|
port: 8000
|
|
{{- else if eq $host.host "ws.siriusdevops.com" }}
|
|
- name: {{ include "osint-dashboard.fullname" $ }}-api
|
|
port: 8000
|
|
{{- else }}
|
|
- name: dashboard-web
|
|
port: 3000
|
|
{{- end }}
|
|
weight: 100
|
|
{{- end }}
|
|
---
|
|
{{- end }}
|
|
|
|
# TLS Certificate resources
|
|
{{- range $tls := .Values.ingress.tls }}
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: {{ $tls.secretName }}
|
|
namespace: {{ $.Values.namespace }}
|
|
labels:
|
|
{{- include "osint-dashboard.labels" $ | nindent 4 }}
|
|
spec:
|
|
secretName: {{ $tls.secretName }}
|
|
issuerRef:
|
|
name: {{ $.Values.ingress.certManager.clusterIssuerName }}
|
|
kind: ClusterIssuer
|
|
dnsNames:
|
|
{{- toYaml $tls.hosts | nindent 4 }}
|
|
---
|
|
{{- end }}
|
|
{{- end }}
|