mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-30 11:38:12 +00:00
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>
21 lines
638 B
YAML
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 }}
|