<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shanmuka Srinivas on Medium]]></title>
        <description><![CDATA[Stories by Shanmuka Srinivas on Medium]]></description>
        <link>https://medium.com/@shanmukasrinivaschcodes?source=rss-53d0a8a745d6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*qUnTMRM4YtcjQyui</url>
            <title>Stories by Shanmuka Srinivas on Medium</title>
            <link>https://medium.com/@shanmukasrinivaschcodes?source=rss-53d0a8a745d6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 16:34:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shanmukasrinivaschcodes/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What It Actually Takes to Run Weaviate in Production on AKS]]></title>
            <link>https://medium.com/beyond-localhost/what-it-actually-takes-to-run-weaviate-in-production-on-aks-69bba4201580?source=rss-53d0a8a745d6------2</link>
            <guid isPermaLink="false">https://medium.com/p/69bba4201580</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[product]]></category>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Shanmuka Srinivas]]></dc:creator>
            <pubDate>Sun, 30 Aug 2026 14:31:01 GMT</pubDate>
            <atom:updated>2026-08-30T14:31:01.256Z</atom:updated>
            <content:encoded><![CDATA[<p>A raw-manifest, production-hardened walkthrough for running Weaviate on Azure Kubernetes Service.</p><p>Weaviate is a vector database, and vector databases are stateful — every pod holds a slice of data that has to survive restarts, rescheduling, and scaling. Running one on Kubernetes means you’re not just deploying a container; you’re deploying persistent storage, a clustering protocol, and a network boundary that all need to line up correctly.</p><p>Helm charts hide a lot of that wiring behind default values. This walkthrough skips Helm entirely and builds the deployment from raw Kubernetes manifests instead — so every piece is visible and intentional.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s-1J2dk2T_ovrjGyDB8cKA.png" /><figcaption>Weaviate AKS Architecture</figcaption></figure><p>Everything sits inside a VNet boundary for network isolation. The AKS cluster provides compute, and inside that a dedicated namespace runs Weaviate as a StatefulSet rather than a plain Deployment — each pod gets its own stable identity and its own persistent volume, and a headless service lets the pods find each other directly for clustering rather than going through a load-balanced ClusterIP.</p><h3>The deployment flow</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Raz7GcMLxebdHK2eAuRYYg.png" /><figcaption>Weaviate AKS Deploy Flow</figcaption></figure><p>Four stages: provision the cluster, apply the core manifests that give Weaviate identity and storage, expose it to the outside world, then verify it actually came up healthy.</p><h3>1. Create the AKS cluster</h3><p>Sized for a vector workload — memory-heavy nodes matter more than raw CPU count here:</p><pre>az aks create \<br>  --resource-group weaviate-rg \<br>  --name weaviate-aks \<br>  --node-count 3 \<br>  --node-vm-size Standard_D4s_v3 \<br>  --enable-managed-identity \<br>  --generate-ssh-keys</pre><pre>az aks get-credentials --resource-group weaviate-rg --name weaviate-aks</pre><h3>2. Namespace</h3><pre># namespace.yaml<br>apiVersion: v1<br>kind: Namespace<br>metadata:<br>  name: weaviate</pre><h3>3. PersistentVolumeClaim template</h3><p>Backed by Azure’s premium managed disk class — worth the extra cost once query latency matters under load:</p><pre># pvc.yaml<br>apiVersion: v1<br>kind: PersistentVolumeClaim<br>metadata:<br>  name: weaviate-data<br>  namespace: weaviate<br>spec:<br>  accessModes:<br>    - ReadWriteOnce<br>  storageClassName: managed-csi-premium<br>  resources:<br>    requests:<br>      storage: 50Gi</pre><h3>4. Headless service</h3><p>Required for Weaviate’s clustering protocol — pods need to address each other directly rather than through a load-balanced ClusterIP:</p><pre># headless-service.yaml<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: weaviate-headless<br>  namespace: weaviate<br>spec:<br>  clusterIP: None<br>  selector:<br>    app: weaviate<br>  ports:<br>    - name: http<br>      port: 8080<br>    - name: grpc<br>      port: 50051</pre><h3>5. StatefulSet</h3><p>Not a Deployment. A Deployment treats pods as interchangeable — if one dies, Kubernetes spins up a fresh one with a random name and no guarantee it gets the same storage back, which is fine for stateless workloads but fatal for a database. A StatefulSet instead gives each pod a fixed, predictable name (weaviate-0, weaviate-1, weaviate-2), starts and stops them in order, and reattaches each one to the <em>same</em> persistent volume every time it restarts, which is exactly what Weaviate needs: stable disk-backed data, and a stable hostname so nodes can find each other and cluster reliably. volumeClaimTemplates gives every replica its own PVC automatically:</p><p>The quick-start version of this manifest — no resource limits, no probes, no anti-affinity, the API key sitting in plaintext — will run. It just won’t survive a noisy neighbour, a slow disk, or an accidental two-pods-on-one-node scheduling decision. Here’s the version built to survive those:</p><pre># api-key-secret.yaml<br>apiVersion: v1<br>kind: Secret<br>metadata:<br>  name: weaviate-api-key<br>  namespace: weaviate<br>type: Opaque<br>stringData:<br>  api-key: &quot;your-secret-api-key&quot;<br>---<br># statefulset.yaml<br>apiVersion: apps/v1<br>kind: StatefulSet<br>metadata:<br>  name: weaviate<br>  namespace: weaviate<br>spec:<br>  serviceName: weaviate-headless<br>  replicas: 3<br>  podManagementPolicy: Parallel<br>  selector:<br>    matchLabels:<br>      app: weaviate<br>  template:<br>    metadata:<br>      labels:<br>        app: weaviate<br>    spec:<br>      affinity:<br>        podAntiAffinity:<br>          requiredDuringSchedulingIgnoredDuringExecution:<br>            - labelSelector:<br>                matchExpressions:<br>                  - key: app<br>                    operator: In<br>                    values: [&quot;weaviate&quot;]<br>              topologyKey: &quot;kubernetes.io/hostname&quot;<br>      securityContext:<br>        runAsNonRoot: true<br>        fsGroup: 1000<br>      containers:<br>        - name: weaviate<br>          image: cr.weaviate.io/semitechnologies/weaviate:1.24.0<br>          ports:<br>            - containerPort: 8080<br>            - containerPort: 50051<br>          env:<br>            - name: CLUSTER_HOSTNAME<br>              value: &quot;weaviate-node&quot;<br>            - name: AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED<br>              value: &quot;false&quot;<br>            - name: AUTHENTICATION_APIKEY_ENABLED<br>              value: &quot;true&quot;<br>            - name: AUTHENTICATION_APIKEY_ALLOWED_KEYS<br>              valueFrom:<br>                secretKeyRef:<br>                  name: weaviate-api-key<br>                  key: api-key<br>          resources:<br>            requests:<br>              cpu: &quot;1&quot;<br>              memory: &quot;2Gi&quot;<br>            limits:<br>              cpu: &quot;2&quot;<br>              memory: &quot;4Gi&quot;<br>          readinessProbe:<br>            httpGet:<br>              path: /v1/.well-known/ready<br>              port: 8080<br>            initialDelaySeconds: 20<br>            periodSeconds: 10<br>          livenessProbe:<br>            httpGet:<br>              path: /v1/.well-known/live<br>              port: 8080<br>            initialDelaySeconds: 30<br>            periodSeconds: 15<br>          volumeMounts:<br>            - name: weaviate-data<br>              mountPath: /var/lib/weaviate<br>  volumeClaimTemplates:<br>    - metadata:<br>        name: weaviate-data<br>      spec:<br>        accessModes: [&quot;ReadWriteOnce&quot;]<br>        storageClassName: managed-csi-premium<br>        resources:<br>          requests:<br>            storage: 50Gi</pre><p>Three changes carry the most weight here. <strong>Pod anti-affinity</strong> stops the scheduler from placing two Weaviate replicas on the same AKS node — without it, a single node failure could take out a majority of your cluster instead of just one pod. <strong>Resource requests and limits</strong> give the scheduler an honest picture of what each pod needs and stop one greedy pod from starving its neighbors of memory. And <strong>moving the API key into a </strong><strong>Secret</strong> — referenced via secretKeyRef instead of a bare value — keeps it out of kubectl describe output and plain-text manifests in version control.</p><h3>PodDisruptionBudget</h3><p>Node upgrades, cluster autoscaling, and routine AKS maintenance can evict pods. Without a PodDisruptionBudgetKubernetes is free to evict two or even all three Weaviate pods at once during a voluntary disruption, which can break quorum mid-upgrade:</p><pre># pdb.yaml<br>apiVersion: policy/v1<br>kind: PodDisruptionBudget<br>metadata:<br>  name: weaviate-pdb<br>  namespace: weaviate<br>spec:<br>  maxUnavailable: 1<br>  selector:<br>    matchLabels:<br>      app: weaviate</pre><h3>NetworkPolicy</h3><p>By default, any pod in the cluster can talk to Weaviate. Lock it down to just the ingress controller and pods within its own namespace (for clustering traffic):</p><pre># network-policy.yaml<br>apiVersion: networking.k8s.io/v1<br>kind: NetworkPolicy<br>metadata:<br>  name: weaviate-network-policy<br>  namespace: weaviate<br>spec:<br>  podSelector:<br>    matchLabels:<br>      app: weaviate<br>  policyTypes: [&quot;Ingress&quot;]<br>  ingress:<br>    - from:<br>        - podSelector: {}<br>        - namespaceSelector:<br>            matchLabels:<br>              kubernetes.io/metadata.name: ingress-nginx<br>      ports:<br>        - port: 8080<br>        - port: 50051</pre><h3>6. Public-facing service and ingress</h3><pre># service.yaml<br>apiVersion: v1<br>kind: Service<br>metadata:<br>  name: weaviate<br>  namespace: weaviate<br>spec:<br>  selector:<br>    app: weaviate<br>  ports:<br>    - port: 80<br>      targetPort: 8080<br>  type: ClusterIP<br>---<br># ingress.yaml<br>apiVersion: networking.k8s.io/v1<br>kind: Ingress<br>metadata:<br>  name: weaviate-ingress<br>  namespace: weaviate<br>  annotations:<br>    nginx.ingress.kubernetes.io/ssl-redirect: &quot;true&quot;<br>spec:<br>  tls:<br>    - hosts: [&quot;weaviate.yourdomain.com&quot;]<br>      secretName: weaviate-tls<br>  rules:<br>    - host: weaviate.yourdomain.com<br>      http:<br>        paths:<br>          - path: /<br>            pathType: Prefix<br>            backend:<br>              service:<br>                name: weaviate<br>                port:<br>                  number: 80</pre><h3>7. Apply and verify</h3><p>Order matters — the StatefulSet references the headless service by name, so the service has to exist first:</p><pre>kubectl apply -f namespace.yaml<br>kubectl apply -f pvc.yaml<br>kubectl apply -f headless-service.yaml<br>kubectl apply -f api-key-secret.yaml<br>kubectl apply -f statefulset.yaml<br>kubectl apply -f pdb.yaml<br>kubectl apply -f network-policy.yaml<br>kubectl apply -f service.yaml<br>kubectl apply -f ingress.yaml</pre><pre>kubectl get pods -n weaviate -w</pre><p>Once every pod shows Running, confirm readiness through the ingress, or locally via:</p><pre>kubectl port-forward svc/weaviate 8080:80 -n weaviate<br>curl http://localhost:8080/v1/.well-known/ready</pre><h3>Monitoring and backups — the two things people skip</h3><p>Weaviate exposes Prometheus-compatible metrics on port 2112 by default. If you&#39;re running the kube-prometheus-stack, a ServiceMonitor picks them up automatically:</p><pre># service-monitor.yaml<br>apiVersion: monitoring.coreos.com/v1<br>kind: ServiceMonitor<br>metadata:<br>  name: weaviate<br>  namespace: weaviate<br>spec:<br>  selector:<br>    matchLabels:<br>      app: weaviate<br>  endpoints:<br>    - port: metrics<br>      interval: 30s</pre><p>Watch at minimum: query latency, heap/memory usage per pod, and disk usage on the PVCs — vector indexes grow, and a full disk on a StatefulSet pod is a much worse day than a full disk on a stateless one.</p><p>For backups, don’t rely on the PVC alone. Azure Disk snapshots give you point-in-time recovery for each pod’s volume, and Weaviate also has a native backup module (backup-azure) that can write consistent snapshots to Azure Blob Storage — worth enabling before this holds anything you can&#39;t afford to lose.</p><h3>What tends to bite people</h3><p>A few things worth knowing before this goes anywhere near production:</p><ul><li><strong>Use</strong><strong>StatefulSet, not </strong><strong>Deployment.</strong> A plain Deployment doesn&#39;t preserve pod identity across restarts, which breaks Weaviate&#39;s clustering.</li><li><strong>Storage class matters.</strong> Azure’s default managed-csi is fine for a dev cluster, but managed-csi-premium earns its cost once you&#39;re serving real query volume.</li><li><strong>Watch the </strong><strong>nginx ingress config if you&#39;re routing under a sub-path.</strong> Using alias instead of root in the underlying nginx config has a known quirk where try_files silently falls through to index.html for every request — no error, just the wrong response. Keep the on-disk path structure matching the URL prefix and use root.</li><li><strong>Never leave anonymous access on</strong> past initial testing, and never leave the API key in plaintext — a Secret is the floor, not the ceiling.</li><li><strong>Anti-affinity isn’t optional at 3 replicas.</strong> Without it, AKS can happily stack two of your three Weaviate pods on the same node, and a single node failure takes out your quorum.</li><li><strong>Set a </strong><strong>PodDisruptionBudget.</strong> AKS node upgrades and autoscaling events will evict pods whether you&#39;re ready or not; a PDB is what keeps that from becoming a full outage.</li></ul><h3>Closing thoughts</h3><p>The gap between “it’s running” and “it’s production-ready” mostly comes down to the things that don’t show up in a quick-start guide: the right storage class, an ingress config that doesn’t quietly serve the wrong file, and something actually watching the metrics and backing up the data before you need it. None of it is exotic. What it buys you is the difference between a bad node day that’s invisible to your users, and one that takes your vector search down at 3 am. Get the StatefulSet foundation right, keep an eye on the details above, and the rest — scaling replicas, adding a gateway, tuning for query volume — is just more YAML on top of something that was already built to hold up.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=69bba4201580" width="1" height="1" alt=""><hr><p><a href="https://medium.com/beyond-localhost/what-it-actually-takes-to-run-weaviate-in-production-on-aks-69bba4201580">What It Actually Takes to Run Weaviate in Production on AKS</a> was originally published in <a href="https://medium.com/beyond-localhost">Beyond Localhost</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>