nanochat/helm/samosachaat/templates/chat-api-service.yaml
Manmohan Sharma 53f547fdef
feat(ci): CI/CD pipeline and Helm umbrella chart for samosaChaat (#8)
Adds GitHub Actions workflows for per-service CI (paths-filter gated),
dev image builds to ECR via OIDC, RC*-tag UAT promotion with image
re-tagging and Helm deploy, v*-tag blue/green prod release with smoke
test + ingress swap, and a nightly docker-compose integration suite.

Ships a Helm umbrella chart (dev/uat/prod values) with Deployments,
ClusterIP Services, ALB Ingress (samosachaat.art + grafana host), HPAs
for chat-api/inference in prod, PDBs, ConfigMap/Secret wiring, and an
alembic db-migrate Helm hook job.

Wires commitlint + husky for Conventional Commits at the repo root.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-16 12:09:43 -07:00

21 lines
638 B
YAML

{{- if .Values.chatApi.enabled -}}
{{- $svcName := include "samosachaat.svcName" (dict "root" . "svc" "chat-api") -}}
apiVersion: v1
kind: Service
metadata:
name: {{ $svcName }}
namespace: {{ include "samosachaat.namespace" . }}
labels:
{{- include "samosachaat.labels" . | nindent 4 }}
{{- include "samosachaat.selectorLabels" (dict "root" . "svc" "chat-api") | nindent 4 }}
spec:
type: ClusterIP
selector:
{{- include "samosachaat.selectorLabels" (dict "root" . "svc" "chat-api") | nindent 4 }}
ports:
- name: http
port: {{ .Values.chatApi.port }}
targetPort: http
protocol: TCP
{{- end }}