diff --git a/README.md b/README.md index b46298d..033b0d3 100644 --- a/README.md +++ b/README.md @@ -105,38 +105,6 @@ maven { |---------|-------------| | `make port-forward` | Port forward services to localhost | -## 🌐 Service Access - -### PostgreSQL Database -- **Namespace**: `databases` -- **Credentials**: `app/app` -- **Database**: `app` -- **Port**: `5432` - -```bash -# Port forward to access locally -kubectl port-forward -n databases svc/postgresql 5432:5432 -``` - -### Agones Game Server Platform -- **Namespace**: `games` -- **CRDs**: `fleets.agones.dev`, `gameservers.agones.dev` - -```bash -# Check Agones status -kubectl get fleets -n games -kubectl get gameservers -n games -``` - -### Dummy HTTP Server (Testing) -- **URL**: http://localhost/demo -- **Namespace**: `infra` - -```bash -# Test the server -curl http://localhost/demo -``` - ## 🐛 Quick Troubleshooting ```bash diff --git a/helmfile.yaml b/helmfile.yaml index 30c1ce1..8593774 100644 --- a/helmfile.yaml +++ b/helmfile.yaml @@ -4,6 +4,8 @@ repositories: url: https://charts.bitnami.com/bitnami - name: agones url: https://agones.dev/chart/stable + - name: nats + url: https://nats-io.github.io/k8s/helm/charts # Helm releases in deployment order releases: @@ -39,3 +41,13 @@ releases: wait: true timeout: 300 + # NATS messaging system + - name: nats + namespace: infra + chart: nats/nats + values: + - values/nats.values.yaml + # Wait for NATS to be ready before proceeding + wait: true + timeout: 300 + diff --git a/values/nats.values.yaml b/values/nats.values.yaml new file mode 100644 index 0000000..7bd253d --- /dev/null +++ b/values/nats.values.yaml @@ -0,0 +1,45 @@ +# NATS configuration for local development +# Minimal single-node setup with JetStream persistence + +config: + cluster: + enabled: false + + jetstream: + enabled: true + fileStore: + pvc: + enabled: true + size: 1Gi + storageClassName: local-path + +# Single replica for local development +container: + image: + pullPolicy: IfNotPresent + env: + # Disable advertise to avoid issues in k3d + NATS_NO_ADVERTISE: "true" + +# Resource limits for local development +resources: + requests: + cpu: 50m + memory: 64Mi + limits: + cpu: 250m + memory: 256Mi + +# Single NATS server replica +replicaCount: 1 + +# Disable NATS monitoring for local development +promExporter: + enabled: false + +# Service configuration +service: + enabled: true + ports: + nats: + enabled: true