<?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 0xKatana on Medium]]></title>
        <description><![CDATA[Stories by 0xKatana on Medium]]></description>
        <link>https://medium.com/@0xkatana?source=rss-b8ea92aada81------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DqWVvfPyhns62-j2f0O3kg.jpeg</url>
            <title>Stories by 0xKatana on Medium</title>
            <link>https://medium.com/@0xkatana?source=rss-b8ea92aada81------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:26:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@0xkatana/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[Road to Kubestronaut EP2: KCNA 97% in 45 Minutes]]></title>
            <link>https://0xkatana.medium.com/road-to-kubestronaut-ep2-kcna-97-in-45-minutes-b9cc1cb222e0?source=rss-b8ea92aada81------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9cc1cb222e0</guid>
            <category><![CDATA[kubestronaut]]></category>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[kcna]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[0xKatana]]></dc:creator>
            <pubDate>Fri, 04 Sep 2026 14:57:33 GMT</pubDate>
            <atom:updated>2026-09-04T14:57:33.645Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aeVe5f7978TEe0c9oOxfuw.png" /><figcaption>KCNA certificate</figcaption></figure><p><em>Part 2 of the Road to Kubestronaut series. Part 1 covered the CKA (88%). This part covers the KCNA (97%, finished in 45 minutes, taken three days after the CKA). The full Kubestronaut set is five certifications: KCNA, CKA, CKAD, CKS, KCSA.</em></p><p>KCNA is 60 multiple-choice questions in 90 minutes, pass mark 75%. Two domains Kubernetes Fundamentals (44%) and Container Orchestration (28%) account for 43 of 60 questions.</p><p>After a CKA pass, preparation of 2–3 hours is sufficient. Without prior hands-on experience, plan three weeks.</p><h3>1. Exam structure</h3><p>Table 1 lists the exam parameters as published by the Linux Foundation and CNCF in September 2026. Confirm price and retake policy before booking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVahVav6qpwx_4NhU8rDIw.png" /><figcaption>Table 1 : KCNA parameters (image; Medium strips markdown tables).</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*arJplJ6wznzAJHL65FDR-A.png" /><figcaption>Table 2 compares the CKA and KCNA formats.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zkqTlFlSLMXrtiSVjluX5g.png" /><figcaption>Figure 1 shows domain weights. Fundamentals and Orchestration together determine the outcome for most candidates.</figcaption></figure><h3>2. Kubernetes Fundamentals (44%)</h3><h3>2.1 Containers</h3><p>A container is an isolated Linux process. Namespaces control visibility (process, network, mount). Control groups limit usage (CPU, memory). The union filesystem provides layered images.</p><p>An OCI image consists of read-only layers and a manifest. Containers start quickly and lose local state on restart, which is why persistent data requires volumes.</p><h3>2.2 Cluster architecture</h3><p>The standard request path is: kubectl to API Server, API Server to etcd, scheduler binds Pod to Node, kubelet on that Node observes the binding through the API and starts containers through the container runtime, then reports status.</p><p>Controllers reconcile observed state toward desired state.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4iBNBUgdM_KPWe8REKHTog.png" /><figcaption>Table 3 — Component responsibilities (image).</figcaption></figure><p>Reference commands used during preparation:</p><pre>kubectl cluster-info<br>kubectl get nodes -o wide<br>kubectl get pods -o wide --all-namespaces<br>kubectl get svc,endpoints -l app=web<br>kubectl explain [] --recursive // this will safe you <br>kubectl create // fast imperative approach for scafolding</pre><h3>2.3 Pods, workloads, services</h3><p>Pod phases are Pending, Running, Succeeded, and Failed. Additional statuses include CrashLoopBackOff, ImagePullBackOff, and Unknown.</p><p>Pending indicates scheduling, image pull, or unbound volume. Running indicates containers started; it does not imply readiness or reachability. Succeeded (exit 0) and Failed (non-zero exit) apply primarily to Jobs.</p><p>Liveness probes determine restart. Readiness probes determine Service membership. Startup probes provide grace for slow starts. InitContainers complete before application containers.</p><pre>readinessProbe:<br>  httpGet: { path: /ready, port: 8080 }<br>  periodSeconds: 5<br>livenessProbe:<br>  httpGet: { path: /healthz, port: 8080 }</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtg2cGAxVSbBiCK88FBW3g.png" /><figcaption>Table 4 — Workload and Service selection (image).</figcaption></figure><p>When a Service has no traffic, check selector labels against pod labels first, then inspect Endpoints. Empty Endpoints with a Running pod indicates a selector mismatch.</p><h3>3. Container Orchestration (28%)</h3><h3>3.1 Scheduling</h3><p>Requests are the scheduling guarantee and influence quality of service. Limits are the enforcement cap. A pod whose requests exceed allocatable resources on every node remains Pending.</p><p>Node selection order of specificity: nodeSelector, node affinity (required or preferred), taints with tolerations, topology spread constraints. Taints repel; tolerations permit.</p><p>Quality of service ranks Guaranteed, then Burstable, then BestEffort. The kubelet evicts BestEffort first under pressure.</p><pre>resources:<br>  requests: { cpu: &quot;250m&quot;, memory: &quot;256Mi&quot; }<br>  limits:   { cpu: &quot;500m&quot;, memory: &quot;512Mi&quot; }</pre><h3>3.2 Scaling</h3><p>The Horizontal Pod Autoscaler changes replica count based on CPU or custom metrics and requires metrics-server. The Vertical Pod Autoscaler changes request size. Avoid using both on the same metric.</p><p>The Cluster Autoscaler changes node count when pods remain Pending for lack of placement. KEDA extends scaling to event sources.</p><pre>kubectl autoscale deployment web --cpu-percent=70 --min=2 --max=10</pre><h3>3.3 Storage</h3><p>The binding chain is StorageClass to PersistentVolume to PersistentVolumeClaim to Pod. A PersistentVolume is cluster storage. A Claim is a request. A StorageClass provisions dynamically.</p><p>ReadWriteOnce attaches to one node (for example EBS). ReadOnlyMany allows many readers. ReadWriteMany allows many writers (NFS, EFS, Azure Files, CephFS).</p><p>A Deployment with three replicas on a ReadWriteOnce volume leaves replicas Pending; use ReadWriteMany storage or a StatefulSet. Access modes describe topology, not authorization.</p><h3>3.4 Configuration</h3><p>ConfigMaps hold plain text. Secrets hold base64-encoded values and are not encrypted at rest by default; encryption requires KMS-backed etcd encryption, Sealed Secrets, or an external manager.</p><p>Both mount as environment variables (require restart on change) or volumes (kubelet synchronizes approximately every minute). The statement “Secrets are encrypted by default” is false and appears regularly.</p><h3>4. Application Delivery and Cloud Native Architecture (28% combined)</h3><h3>4.1 Delivery pipeline</h3><p>The pipeline stages are build, test and scan, push to registry, deploy, observe. Helm packages charts with values files and Go templating, with release history and rollback.</p><p>Kustomize applies base manifests with environment overlays as patches, without templating, and is built into kubectl. GitOps treats git as desired state; Argo CD and Flux reconcile toward it.</p><h3>4.2 Release strategies</h3><p>RollingUpdate is the Deployment default and replaces pods gradually. Blue-green runs two full environments and switches the Service selector; cost is doubled and rollback is immediate.</p><p>Canary shifts 1, then 10, then increasing percentages, typically weighted by mesh or ingress; tooling includes Flagger and Argo Rollouts.</p><h3>4.3 Observability</h3><p>Metrics describe current state (Prometheus scraping, Grafana dashboards, HPA input). Logs record prior events (Fluentd or Fluent Bit collection, Loki or ELK storage; kubectl logs -p for the previous container).</p><p>Traces follow latency across services (OpenTelemetry instrumentation, Jaeger or Tempo backends). Reference signals are latency, traffic, errors, and saturation.</p><h3>4.4 CNCF and service mesh</h3><p>CNCF maturity stages are Graduated, Incubating, and Sandbox. Representative graduated projects include Kubernetes, Prometheus, Envoy, Fluentd, containerd, and CoreDNS. Incubating includes Argo, KEDA, Backstage, Cilium, and Kyverno.</p><p>Sandbox holds experiments with unstable APIs. Maturity denotes process and adoption, not ranking. A service mesh (Istio, Linkerd, ambient Cilium) provides mutual TLS, traffic splitting, retries and timeouts, and telemetry without application changes.</p><h3>5. Preparation</h3><p>Two tracks were used. Track A (this attempt): CKA pass, one rest day, two hours of <a href="https://kube-dojo.github.io/"><strong>KubeDojo </strong></a>questions for domains 1–2 with a one-sentence cause for each miss, one timed mock for interface familiarity, then the exam. Total active preparation 2–3 hours.</p><p>Track B (recommended without CKA): three weeks at five hours per week — week 1 Fundamentals with labs on pods, services, Deployments; week 2 Orchestration with requests and limits, HPA, volumes, ConfigMaps and Secrets; week 3 delivery, architecture, and three timed mocks targeting 80 percent twice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q3u-mALOlt7MxmMndkbHwQ.png" /><figcaption>Table 5 — Resources used (image).</figcaption></figure><p>Mock method: 30 questions untimed for learning, review of each miss against documentation, 60 questions timed at 75 minutes for pacing, then targeted review of any domain below 70 percent.</p><p>Certification order. The CKA-first order used here was CKA, KCNA, then CKS while RBAC and NetworkPolicy are current, then CKAD, then KCSA. The standard beginner order is KCNA, CKA, CKAD, CKS, KCSA.</p><h3>6. Practice questions</h3><ol><li>Which component persists all cluster state: scheduler, etcd, kubelet, kube-proxy? etcd. Only the API Server writes to it; Raft quorum preserves consistency.</li><li>Pod is Running but Service Endpoints are empty. Check first? Service selector against pod labels.</li><li>Deployment with three replicas loses a node. Result? The ReplicaSet controller creates replacements on healthy nodes.</li><li>Difference between Secret and ConfigMap? Identical mounting; Secret values are base64-encoded and not encrypted at rest by default.</li><li>One log agent per node. Workload? DaemonSet.</li><li>Database requiring stable hostname and storage. Workload? StatefulSet.</li><li>Distinguish HPA, VPA, Cluster Autoscaler. Replica count; request size; node count.</li><li>Three-replica Deployment on an EBS-backed ReadWriteOnce volume. Result? Replicas beyond the first cannot attach; use ReadWriteMany storage or a StatefulSet.</li><li>Lowest-risk production release? Canary in increasing percentages. Blue-green requires double capacity; rolling is the default with slower rollback.</li><li>Map Prometheus, Fluentd, Jaeger. Metrics; logs; traces.</li><li>Graduated compared with Incubating? Process maturity and adoption, not quality ranking.</li><li>Pod Pending with Insufficient CPU. Cause? Requests exceed allocatable capacity; reduce requests, add capacity, or check taints and quota.</li></ol><h3>7. Exam procedure</h3><p>Night before: PSI system test, identification ready, desk cleared, wired network if available. During: first pass answering sub-minute questions and flagging scenario items (about 20 minutes); second pass on flagged items by eliminating two options first (about 10 minutes); final review of marked and multi-answer questions. Result appears on submission.</p><p>Common distractors: absolute terms (always, never, only, encrypted); Running equated with Ready; Secret equated with encrypted; access modes equated with authorization; scheduler equated with starter; LoadBalancer equated with NodePort rather than provisioning through it; graduated equated with best.</p><p>What required more work here: Domain 4 vocabulary (mesh, GitOps, Wasm) accounted for the two missed questions. One pass over the CNCF landscape page and the observability mapping .</p><p>Next: CKS (RBAC, Pod Security Standards, NetworkPolicies, image signing, runtime detection), then CKAD and KCSA.</p><p>links</p><ul><li><a href="https://kube-dojo.github.io/">kubedojo</a></li><li><a href="https://killercoda.com/">killercoda</a></li><li><a href="https://trainingportal.linuxfoundation.org/learn/course/kubernetes-and-cloud-native-associate-exam-kcna/">linux foundation offical KCNA</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9cc1cb222e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Road to Kubestronaut: Ep 1 CKA]]></title>
            <link>https://0xkatana.medium.com/road-to-kubestronaut-ep-1-cka-498e47aebe5a?source=rss-b8ea92aada81------2</link>
            <guid isPermaLink="false">https://medium.com/p/498e47aebe5a</guid>
            <category><![CDATA[cncf]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[kubernetes-certification]]></category>
            <category><![CDATA[cka]]></category>
            <dc:creator><![CDATA[0xKatana]]></dc:creator>
            <pubDate>Sat, 22 Aug 2026 23:24:40 GMT</pubDate>
            <atom:updated>2026-08-22T23:24:40.898Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Road to Kubestronaut: Ep 1 CKA</strong></p><p><em>Part 1 Certified Kubernetes Administrator (CKA) | Score: 88%</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BUhwqG2BUOYkryEuWyE1lA.png" /><figcaption>blog poster</figcaption></figure><p>This is the start of my Road to Kubestronaut series. The idea is straightforward: take every Kubernetes certification one at a time, document what I learn, and work through all of them until I earn Kubestronaut. Maybe even Golden Kubestronaut someday.</p><p>First stop: the Certified Kubernetes Administrator (CKA). I passed with 88% on my first attempt. Here’s how I prepared, what I used, where I stumbled, and what I’d change.</p><h3><strong>What the CKA actually is</strong></h3><p>The CKA is a hands-on exam. No multiple choice. You get a real Kubernetes cluster and real tasks. You have 2 hours, and everything is validated automatically.</p><p>The hardest part isn’t the Kubernetes knowledge. It’s time management. You can know exactly how to solve a problem and still burn 15 minutes if you don’t know where to look in the docs or how to navigate the exam environment efficiently.</p><p>The exam runs through PSI with remote proctoring. They’re strict about it. Before the exam started, I had to clear my desk completely. During the exam, I rested my hand on my mouth for a second and got a message from the proctor: “You can’t do that.”</p><p>They’re watching. But otherwise the experience was smooth enough.</p><p><strong>Key facts:</strong></p><pre>| Detail | Info |<br>| - -| - -|<br>| Format | Live Kubernetes cluster, practical tasks |<br>| Duration | 2 hours |<br>| Passing score | 67% |<br>| Cost | ~$395 USD (includes one free retake) |<br>| Proctoring | Remote via PSI |<br>| Documentation access | Full access to kubernetes.io |<br>| Validity | 3 years |</pre><h3><strong>My background</strong></h3><p>I wasn’t starting from zero. I’d been running Kubernetes in production, so I had context. But production experience doesn’t cover everything the CKA touches.</p><p>I had clear gaps:</p><p>- Storage (StorageClasses, PVs, PVCs)</p><p>- Network Policies</p><p>- Cluster troubleshooting</p><p>- etcd backups</p><p>- Some networking concepts I’d never needed in practice</p><p>- API Gateway-related topics</p><p>These showed up fast once I started doing exam-style labs. That’s the first thing I’d tell anyone: don’t study Kubernetes in general. Find your weak spots first.</p><h3><strong>Scheduling the exam</strong></h3><p>I kept pushing the date back. There’s always another topic to review, another lab to do, another page of docs to read. If you wait until you feel ready, you’ll never sit down for it.</p><p>So I picked a date and committed. I’d made excuses enough times. Once the clock is ticking, you focus. The nervousness fades after the first few questions.</p><h3><strong>How I prepared</strong></h3><p>I didn’t follow one single course. It was a mix of hands-on labs, video courses, documentation, and mock exams. The common thread: I practiced more than I watched.</p><h4><strong>KubeDojo (main curriculum)</strong></h4><p>KubeDojo was my primary curriculum. It’s a free, open-source cloud native curriculum with hands-on labs for Kubernetes, Linux, and Platform Engineering. The CKA course has 5 modules and 63 lessonscovering the full exam domain.</p><p>Website: <a href="https://kubedojo.com/">https://kubedojo.com</a></p><p>GitHub: <a href="https://github.com/kubedojo">https://github.com/kubedojo</a></p><p>All KubeDojo labs are hosted on Killer Coda, so you get the same interactive browser-based environment. The tasks are structured around individual concepts, which makes them great for building foundational skills. You practice things like creating a Deployment, configuring a Service, or setting up a PersistentVolume one at a time.</p><h4><strong>Killer Coda / Killer Shell</strong></h4><p>Killer Coda was created by <strong>Kim Wuestkamp </strong>and provides interactive browser-based Kubernetes environments. It hosts labs for KubeDojo, Chad Crowell’s exercises, and many other community resources.</p><p><strong>Killer Coda tasks are noticeably more CKA-heavy than KubeDojo.</strong> They combine multiple concepts into single scenarios and put you under time pressure. The free mocks at <a href="https://killercoda.com/">https://killercoda.com</a> were the closest thing to the real exam I found.</p><p>Killer Shell (https://killer.sh) is the paid exam simulator with 17 scenarios per session and detailed solutions. This is what I used for my final mock exams.</p><h4><strong>Chad Crowell’s CKA Exercises</strong></h4><p><strong>Chad Crowell</strong> (Principal SRE at Akamai) maintains a solid CKA practice exercises repo on GitHub (501 stars). His exercises also run on Killer Coda and map to all 5 CKA domains.</p><p>GitHub: <a href="https://github.com/chadmcrowell/CKA-Exercises">https://github.com/chadmcrowell/CKA-Exercises</a></p><h4><strong>Omkar Shelke</strong></h4><p>Omkar Shelke’s CKA content was another resource I referenced during preparation. His materials focus on practical, exam-oriented Kubernetes tasks.</p><h3><strong>Vim matters more than you think</strong></h3><p>Small thing, easy to overlook: you need to be comfortable with Vim. The exam environment is a remote desktop. You’re SSHing into servers and editing YAML in a terminal. Nano works too, but Vim is faster once you know the basics.</p><p>I already used Vim day-to-day, so this wasn’t a blocker for me. But if you’re not comfortable, spend a few hours learning the basics. You don’t need to master it. You just need to edit config files without fighting the editor.</p><h4><strong>Vim commands I used constantly during the exam:</strong></h4><pre>| Command | What it does |<br>| - -| - -|<br>| `i` | Enter insert mode |<br>| `Esc` | Back to normal mode |<br>| `:wq` | Save and quit |<br>| `:q!` | Quit without saving |<br>| `dd` | Delete a line |<br>| `yy` / `p` | Copy and paste a line |<br>| `/pattern` | Search |<br>| `:%s/old/new/g` | Find and replace all |<br>| `G` / `gg` | Jump to end / beginning of file |<br>| `u` | Undo |</pre><h3><strong>What I practiced</strong></h3><p>The CKA curriculum is broad. Here’s what I drilled:</p><p>Deployments, Services, PVs, PVCs, StorageClasses, StatefulSets, Network Policies, CNI configuration, Calico, Horizontal Pod Autoscaling, Ingress, Helm, Kustomize, etcd backups, cluster troubleshooting, node administration.</p><p>One thing that mattered more than I expected: troubleshooting broken clusters. The exam doesn’t just ask you to create a resource. A lot of the time, something is already broken and you need to figure out what and fix it. That’s a different skill from writing YAML from scratch.</p><h3><strong>The CKA exam domains:</strong></h3><pre>| Domain | Weight | Key topics |<br>| - -| - -| - -|<br>| Troubleshooting | 30% | Logs, control plane recovery, etcd restore, app debugging |<br>| Cluster Architecture | 25% | API server, etcd, kubeadm, upgrades |<br>| Services &amp; Networking | 20% | Services, Ingress, Network Policies, CoreDNS, CNI |<br>| Workloads &amp; Scheduling | 15% | Deployments, rolling updates, DaemonSets, HPA, resource limits |<br>| Storage | 10% | PVs, PVCs, StorageClasses, volume modes |<br>| Security | 10% | RBAC, ServiceAccounts, Secrets, PodSecurityStandards |</pre><h3><strong>The last four days</strong></h3><p>I gave myself four days before the exam for final prep. Mostly mock exams and gap-checking.</p><p>I started with the free Killer Shell mocks. They put you under time pressure with exam-style environments. My first mock went okay but not great. I made avoidable mistakes with namespaces and cluster context switching. Small things, but they cost time.</p><h4><strong>CKA-X (self-hosted mocks)</strong></h4><p>I found Sailor.sh CKA-X on Reddit. It’s a Docker Compose setup that runs mock exam environments locally. They have mocks for CKA, CKAD, and CKS. <a href="https://github.com/sailor-sh/CK-X">https://github.com/sailor-sh/CK-X</a></p><p>The hard CKA mock humbled me. These are harder than Killer Coda, which are already harder than KubeDojo. The questions stack multiple concepts together. One task had me create a StorageClass, then a PersistentVolume with node affinity and a host path, then a deployment, then wire them all together through a PVC. Each piece is simple on its own. Under a time limit, with all of them in one question, it’s a different story.</p><p>I repeated that mock more than once. Familiarity with the question style made me faster.</p><h4><strong>The day before</strong></h4><p>I took the second Killer Shell mock and scored around 90%. That gave me enough confidence to stop cramming. At that point I just wanted to keep my hands warm.</p><p>I also ran the PSI system test. Do this. You don’t want your first interaction with the exam interface to happen when the clock is already running.</p><h3><strong>Exam day</strong></h3><p>Started at 9 PM. Finished the questions with about 10 minutes left and used the rest to review everything. That review caught a couple of small mistakes. A wrong namespace here, a wrong resource name there. Under pressure, those slip through easily.</p><p>Two questions gave me trouble. One involved parsing kubectl output and I rushed the structure. The other was about a dead cluster with a broken scheduler pod. I couldn’t figure out what was wrong in the time I had.</p><p>That’s a lesson in itself: if a question is eating too much time, move on. Come back later if you can. Spending 20 minutes on one task while three easier ones wait is a bad trade.</p><h4><strong>88%</strong></h4><p>Twenty-four hours later, the result came through. CKA, 88%.</p><p>The feeling was mostly relief. After all the prep, the mock exams, the second-guessing, the procrastination it was done.</p><h3><strong>What I’d recommend</strong></h3><p>1. <strong>Schedule the exam.</strong> Stop waiting until you feel ready. Pick a date and work backward from it.</p><p>2. <strong>Practice more than you watch.</strong> The CKA is practical. You need to type commands, read error messages, and troubleshoot under time pressure. Passive learning doesn’t transfer to this exam.</p><p>3. <strong>Do timed mock exams.</strong> This was the single most valuable thing I did. Two hours goes fast when you’re solving problems.</p><p>4. <strong>Learn to navigate the docs quickly.</strong> You don’t need to memorize everything. You need to find things fast. Know the structure of kubernetes.io.</p><p>5. <strong>Know your weak areas.</strong> For me it was storage, network policies, and cluster admin tasks. Once I identified those, I stopped wasting time on things I already knew.</p><p>6. <strong>Get comfortable with Vim.</strong> You don’t need to be an expert. You need to edit YAML without the editor slowing you down.</p><p>7. <strong>Test the exam environment beforehand.</strong> Run the PSI check. Verify your connection. Don’t leave surprises for exam day.</p><p>8. <strong>Don’t freeze on hard questions.</strong> Move on. Come back if you have time. The points from easy questions you skip are worth more than the one you’re stuck on.</p><p><strong>Resources and references</strong></p><p>Everything below is verified and linked. Resources I personally used are marked with ★.</p><h4><strong>Official resources</strong></h4><pre>| Resource | Link |<br>| - -| - -|<br>| CKA exam page (Linux Foundation) | https://training.linuxfoundation.org/certification/certified-kubernetes-administrator-cka/ |<br>| Kubernetes documentation | https://kubernetes.io/docs/home/ |<br>| kubectl cheat sheet | https://kubernetes.io/docs/reference/kubectl/cheatsheet/ |<br>| kubeadm install guide | https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ |<br>| CNCF CKA overview | https://www.cncf.io/certification/cka/ |<br>| Kubernetes API reference | https://kubernetes.io/docs/reference/kubernetes-api/ |<br>| PSI system test | https://home.pearsonvue.com/cloud/cncf |<br>| Linux Foundation K8s Fundamentals (LFS258) | https://training.linuxfoundation.org/training/kubernetes-fundamentals/ |</pre><p><strong>Preparation platforms</strong></p><p><strong>Difficulty progression:</strong> KubeDojo (foundational) → Killer Coda (exam-heavy) → Killer Shell (exam simulator) → CKA-X (hardest)</p><pre>| Resource | Creator | Link |<br>| - -| - -| - -|<br>| ★ KubeDojo (main curriculum) | Open-source community | https://kubedojo.com |<br>| ★ KubeDojo (GitHub) | Open-source community | https://github.com/kubedojo |<br>| ★ Killer Coda (labs) | Kim Wuestkamp | https://killercoda.com |<br>| ★ Killer Shell (exam simulator) | Kim Wuestkamp | https://killer.sh |<br>| ★ Chad Crowell CKA Exercises | Chad Crowell | https://github.com/chadmcrowell/CKA-Exercises |<br>| Omkar Shelke CKA content | Omkar Shelke | |<br>| KodeKloud CKA course | Mumshad Mannambeth | https://kodekloud.com/courses/certified-kubernetes-administrator-cka/ |<br>| KodeKloud Kubernetes admin path | Mumshad Mannambeth | https://kodekloud.com/learning-path/kubernetes-administrator/ |<br>| Sailor.sh CKA-X mocks | Sailor.sh | https://github.com/sailor-sh |</pre><p><strong>Local practice</strong></p><pre>| Tool | Link |<br>| - -| - -|<br>| Minikube | https://minikube.sigs.k8s.io/docs/start/ |<br>| kind (Kubernetes in Docker) | https://kind.sigs.k8s.io/docs/user/quick-start/ |<br>| kubeadm | https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/ |</pre><p><strong>Practice exercises (GitHub)</strong></p><pre>| Repo | Stars | Link |<br>| - -| - -| - -|<br>| CKA practice exercises (alijahnas) | 1,367 | https://github.com/alijahnas/CKA-practice-exercises |<br>| CKA Exercises (chadmcrowell) | 501 | https://github.com/chadmcrowell/CKA-Exercises |<br>| Kubernetes Exercises (jayendrapatil) | 271 | https://github.com/jayendrapatil/kubernetes-exercises |<br>| Kubernetes The Hard Way | | https://github.com/kelseyhightower/kubernetes-the-hard-way |<br>| CNCF Curriculum | | https://github.com/cncf/curriculum |</pre><p><strong>Community</strong></p><pre>| Resource | Link |<br>| - -| - -|<br>| r/kubernetes | https://www.reddit.com/r/kubernetes/ |<br>| r/CKA | https://www.reddit.com/r/CKA/ |<br>| Kubernetes Slack | https://slack.k8s.io/ |<br>| CNCF Slack | https://cloud-native.slack.com/ |</pre><p><strong>YouTube resources</strong></p><pre>| - -| - -|<br>| CKA exam prep walkthrough | https://youtu.be/eGv6iPWQKyo |<br>| CKA exam tips and strategy | https://youtu.be/eGv6iPWQKyo |<br>| CKA finesse guide | https://youtu.be/8VK9NJ3pObU |</pre><p><strong>Quick reference: kubectl commands for exam day</strong></p><pre>```bash<br># Get everything<br>kubectl get pods,svc,ns,deploy,nodes,pv,pvc,sc,ingress -A<br># Debug a pod<br>kubectl describe pod &lt;name&gt; -n &lt;ns&gt;<br>kubectl logs &lt;pod&gt; -n &lt;ns&gt; - previous<br>kubectl exec -it &lt;pod&gt; - /bin/sh<br># Apply and manage<br>kubectl apply -f &lt;file&gt;<br>kubectl delete -f &lt;file&gt;<br>kubectl scale deploy &lt;name&gt; - replicas=N<br># Events (often tells you what&#39;s wrong)<br>kubectl get events - sort-by=.metadata.creationTimestamp -n &lt;ns&gt;<br># Cluster info<br>kubectl config use-context &lt;name&gt;<br>kubectl cluster-info<br>kubectl get nodes -o wide<br># Storage<br>kubectl get sc<br>kubectl get pv,pvc - all-namespaces<br># Quick pod creation<br>kubectl run nginx - image=nginx - restart=Never - dry-run=client -o yaml &gt; pod.yaml<br># Export existing resource<br>kubectl get deploy &lt;name&gt; -o yaml - export &gt; deploy.yaml<br># etcd backup/restore<br>ETCDCTL_API=3 etcdctl snapshot status /backup/etcd-snapshot.db - write-out=table<br>ETCDCTL_API=3 etcdctl snapshot restore /backup/etcd-snapshot.db - data-dir=/var/lib/etcd-restored<br>```<br> - -<br>## Finesse guide: exam day tricks<br>These are the small things that save minutes during the exam. Minutes add up.<br>### Mindset<br>Time is your most valuable resource. Speed is your best friend.<br>### Imperative first, declarative second<br>Always try creating resources imperatively before writing YAML. The `-h` flag is your best tool here:<br>```bash<br># This tells you EXACTLY what can be created imperatively, with examples<br>k create deployment nginx - image=nginx -h<br>k run pod nginx - image=nginx -h<br>```<br>The help output increases in detail with each base command. Use it.<br>If you need to add things before applying (like labels, annotations, or specific fields), combine ` - dry-run` with YAML output:<br>```bash<br># Generate the base YAML, then edit before applying<br>k create deployment nginx - image=nginx - dry-run=client -o yaml &gt; deploy.yaml<br># now edit the file, then apply<br>kubectl apply -f deploy.yaml<br></pre><p><strong>**Copying YAML from the docs is a last resort.**</strong> It’s slow. Imperative commands are faster.</p><p><strong>Understanding the Kubernetes docs</strong></p><p>You don’t need to memorize everything, but you need to know where things are.</p><p>- Mentally bookmark pages with templates that can’t be created imperatively (PersistentVolume, PersistentVolumeClaim, NetworkPolicy, etc.)</p><p>- Use `Ctrl+F` and search `kind: &lt;MY RESOURCE&gt;` to quickly find example YAML in any docs page</p><p>- The one-pager API reference at `kubernetes.io/docs/reference/kubernetes-api/` is useful for specific field details</p><h4><strong>Use shortnames</strong></h4><pre>Never type out a full resource name if you can help it:<br>| Short | Full |<br>| - -| - -|<br>| `cm` | `configmap` |<br>| `pvc` | `persistentvolumeclaim` |<br>| `pv` | `persistentvolume` |<br>| `np` | `networkpolicy` |<br>| `no` | `node` |<br>| `ns` | `namespace` |<br>| `sa` | `serviceaccount` |<br>| `ds` | `daemonset` |<br>| `rs` | `replicaset` |<br>| `hc` | `horizontalpodautoscaler` |<br>Check all shortnames with:<br>```bash<br>kubectl api-resources<br>```</pre><h3><strong>What’s next</strong></h3><p>The CKA isn’t about memorizing commands. It’s about being comfortable working with Kubernetes troubleshooting, reading errors, navigating docs, and managing your time.</p><p>The thing I learned wasn’t a kubectl flag. It was that you probably won’t ever feel ready. At some point you schedule the exam, accept that you’ll struggle with some parts, and go anyway.</p><p>I did that. Got 88% on my first attempt.</p><p>One step done. Next: KCNA</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LqnHLqaLX7I8T9YlMYkOhw.png" /><figcaption>my CKA Cert</figcaption></figure><p><em>This is the first part of my Road to Kubestronaut series. I’ll keep documenting each certification, how I prepared, what I used, and what I learned. Next up: KCNA.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=498e47aebe5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Audited the Same Codebase with Hawiyat Composer and Claude Opus 4.8]]></title>
            <link>https://0xkatana.medium.com/we-audited-the-same-codebase-with-hawiyat-composer-and-claude-opus-4-8-0304295587d7?source=rss-b8ea92aada81------2</link>
            <guid isPermaLink="false">https://medium.com/p/0304295587d7</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[benchmark]]></category>
            <category><![CDATA[claude]]></category>
            <dc:creator><![CDATA[0xKatana]]></dc:creator>
            <pubDate>Wed, 10 Jun 2026 02:37:00 GMT</pubDate>
            <atom:updated>2026-06-10T02:37:00.789Z</atom:updated>
            <content:encoded><![CDATA[<p>We benchmarked two AI agents against the same harness layer: Hawiyat Composer (max) and Claude Opus 4.8 (high). We used <strong>Claude Code</strong> as the orchestration tool that manages the benchmark environment and runs both agents.</p><p>Hawiyat Composer is a specialized AI agent for software engineering built by <a href="https://hawiya.org/">Hawiya</a>. Claude Opus 4.8 is Anthropic’s flagship reasoning model from <a href="https://claude.ai/">Claude</a>. The two sit at very different price points and quota structures, so we wanted to see how they compare head-to-head on a real code audit task.</p><p>The full benchmark setup, prompt, and submission format are documented in <a href="https://github.com/Hawiyat-Org/hawiyat-agents-benchmarks/blob/main/AGENTS.md">AGENTS.md</a>.</p><h3>TL;DR</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*n1NC6flTywHFmt_S.png" /></figure><p>Both missed the exact same three bugs. Claude Opus 4.8 found two extra issues not in the original set. Hawiyat Composer fixed the broken build that Claude left untouched.</p><h3>Our Setup</h3><h3>The Codebase</h3><p>We built a full-stack TypeScript monorepo with 20 seeded bugs:</p><ul><li><strong>Frontend:</strong> TanStack Start (React, TanStack Router, TanStack Query)</li><li><strong>Backend:</strong> Hono API server with Zod validation</li><li><strong>Database:</strong> Prisma ORM with SQLite</li><li><strong>Monorepo:</strong> pnpm workspaces + Turborepo</li></ul><h3>Bug Distribution</h3><p>The bugs follow the established SWE-bench pattern (<a href="https://github.com/SWE-bench/SWE-bench.git">reference</a>) and are distributed across difficulty levels:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/0*0NPi0RTCrZFIfxxl.png" /></figure><p>The bugs are not labeled. There are no TODO comments. No BUG markers. The agents had to find them the same way a human engineer would: by reading the code, running the tests, and noticing what does not make sense.</p><h3>How We Ran the Test</h3><p>Each agent received the same prompt:</p><blockquote><em>Clone this repo, follow AGENTS.md, and submit your fixes as a PR with your model name in the title.</em></blockquote><p>Each run happened in its own isolated environment with no shared state. We tracked tokens, quota usage, wall-clock time, and bugs found.</p><h3>About the Models</h3><p><strong>Hawiyat Composer</strong> is not a single model. It is a smart router and optimization layer built on top of a collection of frontier models. The Hawiyat team designed it to keep costs low by routing requests to the most efficient model for each task. It is offered at three subscription tiers with monthly usage limits.</p><p>The architecture supports a 1M context window, but the team currently limits it to 200K tokens to balance cost and quality. This trade-off is intentional: 200K tokens is sufficient for most code review tasks while keeping the subscription price accessible.</p><p>For this benchmark, we ran Hawiyat Composer at <strong>max</strong> reasoning level, which activates its full routing pipeline and largest available context window.</p><p><strong>Claude Opus 4.8</strong> is Anthropic’s flagship reasoning model, run as a single model with no routing layer. We ran it at the <strong>high</strong> reasoning level. The single-model architecture is part of why it consumes more tokens and burns through daily quotas faster than Hawiyat Composer.</p><h3>Results</h3><h3>Bugs Found</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*JI4Kqt3yMjgusa9X.png" /></figure><p>Both agents found and correctly fixed the same core set: missing await, wrong status codes, TOCTOU races, middleware leaks, N+1 queries, missing transactions, unhandled promise rejections, and TanStack Query cache issues.</p><h3>The Three Bugs Both Missed</h3><p>All three missed bugs share a common thread: they are not obvious from error messages or stack traces. They look like working code.</p><ol><li><strong>N+1 in </strong><strong>posts.ts.</strong> The /posts/:id/with-author endpoint does a separate findUnique call for the author. This is the exact same pattern as the analytics N+1 that both agents found. They fixed one instance and missed the other because it appeared in a different endpoint context.</li><li><strong>Promise.all fail-fast in </strong><strong>dashboard.ts.</strong> The dashboard fetches users, posts, and benchmarks with Promise.all. If one fetch fails, the entire response crashes. Neither agent replaced it with Promise.allSettled — a defensive programming habit that neither model has internalized.</li><li><strong>undefined filter in </strong><strong>users.ts.</strong> When no email query parameter is provided, the Prisma query where: { email: undefined } returns zero results instead of all users. This is a subtle framework-specific behavior that both agents overlooked.</li></ol><h3>Extra Findings</h3><p>Claude Opus 4.8 discovered two genuine bugs outside our planted set:</p><ul><li>The Hono RPC client had a double /api prefix causing 404s on all typed client calls.</li><li>The AppType was not re-exported from the API package entry, breaking typed RPC routes.</li></ul><p>Hawiyat Composer fixed pre-existing tsconfig issues that prevented pnpm build from passing. This was not one of our 20 bugs, but without it the benchmark was broken.</p><h3>Quota and Time</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*KaLOGmmVBsS1Nmi3.png" /></figure><p>Both agents finished in about an hour. Claude Opus 4.8 spent twice as much compute time thinking, but the wall-clock difference was only two minutes.</p><h3>Quota Efficiency</h3><p>Hawiyat Composer used 2.5% of its monthly subscription for 16 bugs — roughly 33 full benchmark runs per month on a single plan.</p><p>Claude Opus 4.8 used 54% of its daily quota for 17 bugs — roughly 2.5 full benchmark runs per day before hitting the cap.</p><p>The billing models are fundamentally different: a monthly subscription with a predictable ceiling versus daily usage limits that reset. Monthly subscriptions suit high-volume screening. Daily quotas work for individual deep audits.</p><h3>Code Changes</h3><p>Both agents produced surgical diffs. No large refactors. No rewrites.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*lh931vCiK87msKob.png" /></figure><h3>Convergent Failure Analysis</h3><p>The most striking result is not the score difference. It is the overlap.</p><p>Both agents missed the exact same three bugs. This is not random. These three bugs represent failure modes that frontier models consistently struggle with:</p><ul><li><strong>Cross-file pattern transfer.</strong> The N+1 in posts.ts is structurally identical to the one in analytics.ts. Both agents found the first instance and missed the second. The pattern did not transfer across file boundaries.</li><li><strong>Defensive programming gaps.</strong> Promise.allSettled instead of Promise.all is an engineering habit, not a bug fix. Neither model applied the defensive pattern unprompted.</li><li><strong>Framework-specific knowledge.</strong> Prisma’s undefined filter behavior is a framework quirk that looks like correct code unless you know the gotcha. Both agents treated it as working code.</li></ul><p>The bugs they found break production loudly — crashes, timeouts, wrong status codes. The bugs they missed break production quietly — gradually degrading data quality and user experience over time.</p><h3>Limitations</h3><p>This is one benchmark with one run per agent. We did not run statistical significance tests. The results are directional, not definitive.</p><p>Hawiyat Composer’s 20 claimed fixes included changes that were not in our original 20 bugs. Whether this counts as over-claiming depends on whether you count only planted bugs or every fixable issue in the codebase. We scored only planted bugs.</p><p>Claude Opus 4.8’s 54% daily quota consumption means a single benchmark run uses roughly half a day’s allocation. Results will vary by plan tier and workload.</p><h3>Conclusion</h3><p>The choice between these two agents depends on the job.</p><p>For high-volume screening or cost-sensitive work, <strong>Hawiyat Composer at max</strong> is the value pick. It found 16 of 20 bugs for 2.5% of a monthly subscription, finished in under an hour, and fixed the broken build that made the benchmark runnable in the first place.</p><p>For a single thorough pass, <strong>Claude Opus 4.8 at high</strong> produced the most complete report. It surfaced 17 of 20 original bugs plus two extra legitimate issues, and it was the only run to catch the RPC double-prefix and the missing AppType export.</p><p>The broader finding is that the missed bugs are not model-specific. They are pattern-specific. Both agents failed on the same three categories: cross-file consistency, defensive programming, and framework edge cases. These are the kinds of problems that slip through any automated review — whether the reviewer is a frontier model or a human engineer working against a deadline.</p><p>The benchmark is open source. Clone it, run your own agent, and see what it misses.</p><p><strong>Related links:</strong></p><ul><li><a href="https://github.com/Hawiyat-Org/hawiyat-agents-benchmarks/pull/1">PR #1: Hawiyat Composer results</a></li><li><a href="https://github.com/Hawiyat-Org/hawiyat-agents-benchmarks/pull/2">PR #2: Claude Opus 4.8 results</a></li><li><a href="https://github.com/Hawiyat-Org/hawiyat-agents-benchmarks">Benchmark repository</a></li><li><a href="https://github.com/Hawiyat-Org/hawiyat-agents-benchmarks/blob/main/AGENTS.md">Agent instructions (AGENTS.md)</a></li><li><a href="https://github.com/SWE-bench/SWE-bench.git">SWE-bench reference</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0304295587d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NexHunt CTF 2025 Infrastructure Postmortem]]></title>
            <link>https://0xkatana.medium.com/nexhunt-ctf-2025-infrastructure-postmortem-c4d9cb0c1416?source=rss-b8ea92aada81------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4d9cb0c1416</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[postmortem]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[ctf]]></category>
            <category><![CDATA[infrastructure]]></category>
            <dc:creator><![CDATA[0xKatana]]></dc:creator>
            <pubDate>Wed, 24 Dec 2025 16:01:19 GMT</pubDate>
            <atom:updated>2025-12-25T19:35:31.638Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Authors:</strong> 0xkatana<br><strong>Date:</strong> December 15, 2025<br><strong>Tags:</strong> postmortem, infrastructure</p><p>public-challenges-repo: <a href="https://github.com/n3xusss/NexHunt-ctf-2025-writeups">github.com/n3xusss/NexHunt-ctf-2025-writeups</a></p><h3>Introduction</h3><figure><img alt="nexhunt-main-site" src="https://cdn-images-1.medium.com/max/1024/1*ujQcy9037MCEHgO1-BdHmA.png" /><figcaption>nexhunt-main-page</figcaption></figure><p>This year marked the our first global ctf <a href="https://ctftime.org/event/3037">NexHunt CTF</a>, the ctf was public to participants from around the world with ctf-time. As first-time organizers, we aimed to make a high-quality CTF experience with challenging problems and stable infrastructure and aim for a good ctfd weight. However,the ctf event was stable for a first-time and we hade a huge ammount of players thank you guys we had almost 2k players and 1k team , we encountered some infrastructure challenges during the event. This postmortem documents our experiences, challenges, and lessons learned to improve future iterations, we got uptime of 99.92% for the whole ctf event.</p><p>I was the <strong>main system administrator</strong>, managing the infrastructure and the challenges repository.<br> Special thanks to <strong>L4ZEX</strong> for help with challenge setup and monitoring, <strong>NIL</strong> for continuous challenge monitoring, and <strong>Houssem</strong>, <strong>Duty</strong>, and the rest of the team for their support and contribution, and thx to our sponsor <a href="https://hawiyat.org/"><strong>hawiyat.org</strong></a></p><h3>Event Statistics</h3><ul><li><strong>Participants:</strong> 1,909 users registered</li><li><strong>Teams:</strong> 997 teams registered</li><li><strong>Unique IP addresses:</strong> 36,095</li><li><strong>Total possible points:</strong> 15,153</li><li><strong>Challenges:</strong> 62</li><li><strong>Most solved challenge:</strong> HuntMe1 with 410 solves</li><li><strong>Least solved challenge:</strong> Labyrinth with 1 solve</li><li><strong>Event duration:</strong> 3 days (36 hours)</li><li><strong>Start time:</strong> December 11, 2025, 18:00 UTC</li><li><strong>Overall uptime:</strong> 99.85%</li></ul><h3>Category Breakdown</h3><ul><li><strong>Beginner:</strong> 6 challenges</li><li><strong>Blockchain:</strong> 4 challenges</li><li><strong>Crypto:</strong> 5 challenges</li><li><strong>Feedback:</strong> 1 challenge</li><li><strong>Forensics:</strong> 7 challenges</li><li><strong>Malware:</strong> 1 challenge</li><li><strong>Misc:</strong> 7 challenges</li><li><strong>OSINT:</strong> 7 challenges</li><li><strong>Pwn:</strong> 6 challenges</li><li><strong>Reverse:</strong> 9 challenges</li><li><strong>Web:</strong> 9 challenges</li></ul><h3>Submission Statistics</h3><ul><li><strong>Fails:</strong> 21,135</li><li><strong>Solves:</strong> 4,368</li></ul><h3>Point Distribution</h3><ul><li><strong>Beginner:</strong> 908 points</li><li><strong>Blockchain:</strong> 569 points</li><li><strong>Crypto:</strong> 1,684 points</li><li><strong>Feedback:</strong> 1 point</li><li><strong>Forensics:</strong> 2,366 points</li><li><strong>Malware:</strong> 500 points</li><li><strong>Misc:</strong> 1,132 points</li><li><strong>OSINT:</strong> 2,403 points</li><li><strong>Pwn:</strong> 1,816 points</li><li><strong>Reverse:</strong> 1,700 points</li><li><strong>Web:</strong> 2,074 points</li></ul><h3>Infrastructure Overview</h3><p>Our infrastructure consisted of two main servers:</p><ol><li><strong>Platform server:</strong> Running CTFd platform behind a cloudflare proxy , cdn and firewall and we used Google Gmail for email services by our hosting partner <a href="https://hawiyat.org/">Hawiyat.org</a></li><li><strong>Challenge server:</strong> A powerful Threadripper server (24 cores, 128GB RAM) provided by our hosting partner <a href="https://hawiyat.org/">Hawiyat.org</a></li></ol><p>We implemented Cloudflare as our WAF, CDN, and reverse proxy to protect the platform. The challenge deployment infrastructure was set up just 2 days prior to the event due to time constraints, which led to several issues that are detailed below.</p><p>The platform server hosted essential CTFd components including nginx, the CTFd application itself, Redis, and the database. During peak usage, the CTFd server reached a maximum of 25% CPU usage and 4GB RAM usage, but typically stabilized at under 10% usage most of the time. For future events, we plan to add more CTF containers for horizontal scalability, and enable Cloudflare caching early in the event to reduce server load.</p><p>The challenge server handled the heavy workload with more than 120 containers running on average, across a total of 15 services and Docker stacks. For each challenge that required deployment, we had a Dockerfile and a compose file. The compose files were specifically edited to support Docker Swarm deployment with replicas. In total, we had 17 challenges that needed deployments. Our automation used Docker Compose to build the image for each challenge by looping through all challenge folders.</p><p>The second stage involved creating a Docker stack from each compose file, with default replica counts of 5 for misc/pwn challenges and 7–10 replicas for web challenges. Docker Swarm provided load balancing between containers by exposing the port only. During peak usage, particularly due to resource leaks from some challenges, the server peaked at 70% CPU usage. However, after implementing resource limits of 0.5 CPU and 1GB of RAM per container, CPU usage stabilized at around 20%. The server utilized an average of 26GB of RAM during the event.</p><p>Nginx configuration with SSL and domains for challenges was ready in the middle of the CTF, but we hesitated to implement it due to the potential load on the nginx containers and the need to update all connection information for the challenges. As a result, we continued to use port-based access throughout the event. For future events, we plan to implement nginx properly to make the setup more production-ready.</p><h3>Monitoring Setup</h3><p>We used multiple combinations to monitor our servers and infrastructure. Our monitoring stack included:</p><ul><li><strong>Portainer</strong> for container management</li><li><strong>Uptime Kuma</strong> for uptime monitoring</li><li><strong>Bezel</strong> for notifications</li><li><strong>cloudf</strong>lare for tracking any downtime</li></ul><p>All monitoring tools were linked with our Discord server to notify us directly of any issues, ensuring rapid response to infrastructure problems.</p><h3>Container Management</h3><p>Portainer was connected to a node that is part of our Swarm cluster. It managed the following resources:</p><ul><li><strong>Stacks</strong>: 43 total (including infrastructure and challenge stacks)</li><li><strong>Services</strong>: 21 total</li><li><strong>Containers</strong>: 246 total (117 running, 129 stopped)</li><li><strong>Images</strong>: 70 total</li><li><strong>Volumes</strong>: 11 total</li><li><strong>Networks</strong>: 42 total</li></ul><p>Portainer was instrumental in managing our Docker Swarm cluster, which was running version 28.5.2 with 24 nodes and 135 GB of RAM available. We used it to manage challenge deployments, monitor container health, and perform scaling operations. Some resources located on other nodes in the cluster were managed via Portainer’s agent setup.</p><p>list of some Docker Swarm services managed during the CTF:</p><p><strong>ctf-00fashions_ctf-not-old-enough</strong></p><ul><li>Image: ctf-00fashions/ctf-not-old-enough:latest</li><li>Replicas: 10/ 10</li><li>Ports: 4777 → 1337</li><li>Created: 2025–12–12 14:22:20</li></ul><p><strong>ctf-dz-kitab</strong></p><ul><li>Image: ctf-dz-kitab:latest</li><li>Replicas: 10 / 10</li><li>Ports: 3999 → 3999</li><li>Created: 2025–12–12 05:10:40</li></ul><p><strong>ctf-archive-keeper</strong></p><ul><li>Image: ctf-archive-keeper:latest</li><li>Replicas: 5 / 5</li><li>Ports: 2711 → 1337</li><li>Created: 2025–12–11 17:43:11</li></ul><p><strong>ctf-autobashn</strong></p><ul><li>Image: ctf-autobashn:latest</li><li>Replicas: 5 / 5</li><li>Ports: 9126 → 1337</li><li>Created: 2025–12–11 17:43:36</li></ul><p><strong>ctf-below</strong></p><ul><li>Image: ctf-below:latest</li><li>Replicas: 10 / 10</li><li>Ports: 4132 → 1337</li><li>Created: 2025–12–12 19:08:22…..</li></ul><p>This setup allowed us to monitor and manage our 17 Docker Swarm services and over 120 running containers effectively throughout the event.</p><h3>Performance Statistics</h3><p>During the CTF, we served a total of 2 million requests through CTFd. Cloudflare cached 25% of these requests, which contributed to improved uptime and performance. Our final uptime accuracy reached 99.92% over the last 3 (36 hours) days of the event, with 100% uptime during the final day. The average response time was 190ms, demonstrating the effectiveness of our caching and infrastructure setup despite the high load.</p><p>The platform server performance during the event showed interesting patterns. The CTFd server components (nginx, CTFd, Redis, and database) reached a maximum of 25% CPU usage and 4GB RAM usage during peak times, but typically stabilized at under 10% usage. This indicates the platform server was well-sized for the load.</p><p>The challenge server, running more than 120 containers on average across 17 Docker services and stacks, showed more significant load. During peak usage, particularly when some challenges had resource leaks, the server reached 70% CPU usage. However, after implementing resource limits on containers, CPU usage stabilized at around 20%. The server maintained an average of 26GB of RAM usage during the event.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*2A9TPgnJMTQLc1a5.png" /><figcaption>cloudflare-summary</figcaption></figure><p><em>Cloudflare dashboard showing request volumes during the CTF</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/0*q5DsXhZ0LgDFiSeE.png" /><figcaption>uptime-stats</figcaption></figure><p><em>Uptime monitoring dashboard showing service availability</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MBpMei6X5dT8fEdp.png" /><figcaption>ctfd-srv-resources-usage-part-1</figcaption></figure><p><em>Platform server usage metrics at time A</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XWepSZfJWz_nUH_G.png" /><figcaption>ctfd-srv-resources-usage-part-2</figcaption></figure><p><em>Platform server usage metrics at time B</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ORQuCklwcjyedGGk.png" /><figcaption>challenges-srv-resources-usage-part-1</figcaption></figure><p><em>Challenge server usage metrics at time A</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hJl_AujAhMZ1av3D.png" /><figcaption>ctfd-srv-resources-usage-part-2</figcaption></figure><p><em>Challenge server usage metrics at time B</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/0*SJNFsIq0cUNWbrGz.png" /><figcaption>ctfd-response-time</figcaption></figure><p><em>Response time and uptime monitoring during the event</em></p><h3>Timeline of Major Incidents</h3><ul><li><strong>Dec 11, 18:00 UTC</strong> — CTF started with over 30k requests in first minute</li><li><strong>Dec 11, 18:01 UTC</strong> — Platform latency spikes to 4.5 seconds , spike in 500 errors</li><li><strong>Dec 11, 18:03 UTC</strong> — Platform stabilizes to sub-200ms response times</li><li><strong>Dec 11, 18:05 UTC</strong> — Email verification disabled due to Gmail limits</li><li><strong>Dec 11, 19:24 UTC</strong> — Web/gofrita taken down for maintenance</li><li><strong>Dec 11, 19:35 UTC</strong> — Web/super secure storage has a replicas problem taken down for maintenance and fixes by the author</li><li><strong>Dec 11, 21:08 UTC</strong> — Web/gofrita back online after maintenance</li><li><strong>Dec 11, 22:00 UTC</strong> — Super Secure Storage Web challenge taken down for maintenance</li><li><strong>Dec 11, 23:05 UTC</strong> — some web challenges with Docker swarm load balancer fails, services scaled to zero and comeback mainly ( web davelloper and super secure storage )</li><li><strong>Dec 12, 4:10 UTC</strong> — Website experienced 2-minute downtime due to DDoS attack, participants asked to stop DDoSing the site</li><li><strong>Dec 12, 4:13 UTC</strong> — Misconfigured Caching Rule cause outdated and wrong content to appear for some user</li><li><strong>Dec 12, 4:13 UTC</strong> — removed the caching rule and announcement for users with problems to clear their cache</li><li><strong>Dec 12, 7:47 UTC</strong> — Website experienced 4-minute downtime</li><li><strong>Dec 12, 12:00 UTC</strong> — PLANKTON-v2 down for maintenance</li><li><strong>Dec 12, 12:43 UTC</strong> — PLANKTON-V2 back online after maintenance</li><li><strong>Dec 13, 1:43 UTC</strong> — PLANKTON-v2 down for maintenance again</li><li><strong>Dec 13, 2:16 UTC</strong> — PLANKTON-V2 back online after second maintenance</li><li><strong>Dec 12–13</strong> — Second phase of CTF mostly stable with minimal noticeable problems some downtime for web/pwn challengs but not a big deal</li></ul><h3>Challenges Faced During the Event</h3><h3>Platform Load Issues</h3><p>As soon as the CTF started, we experienced a surge in traffic with over 30,000 requests in the first minute. This caused our platform latency to spike to 4.5 seconds. However, the system stabilized after approximately 3 minutes, returning to sub-200ms response times. this was to the lack of the cache hits from the cdn and no ratelimiting rules</p><h3>Email Limitations</h3><p>We quickly hit Google Gmail’s daily email limits after sending over 1,000 emails. This made email delivery slow and unreliable, particularly for verification emails. We had to disable email verification within the first hour of the competition to prevent further issues.</p><h3>DDoS Attacks</h3><p>We experienced multiple downtime periods caused by DDoS attacks that bypassed Cloudflare’s anti-DDoS and bot protection. At 4:40 PM on December 12th, a DDoS attack caused a 2-minute website downtime. We issued an announcement asking participants to stop DDoSing the site. Another attack at 7:47 PM on December 12th caused a 4-minute downtime. Although Cloudflare’s protection caught most attacks, some smart endpoints were exploited. Despite these attacks, we maintained an overall uptime of 99.85% over the 3-day event.</p><h3>Cloudflare Caching Issues</h3><p>During one incident, we accidentally enabled an aggressive cache-all rule in Cloudflare, which negatively impacted user experience. Players received cached pages and cookies from other users, causing scoreboard mix-ups and challenges appearing as solved when they weren’t. At 4:54 PM on December 12th, we issued a Discord announcement asking participants to clear their browser cache and cookies to resolve the issue.</p><h3>Docker Swarm Load Balancer Issues</h3><p>Our challenges were deployed using a combination of Docker Swarm services and stacks. For each challenge that required deployment, we had a Dockerfile and a compose file. The compose files were specifically edited to support Docker Swarm deployment with replicas. In total, we had 17 challenges that needed deployments. Our automation used Docker Compose to build the image for each challenge by looping through all challenge folders.</p><p>The second stage involved creating a Docker stack from each compose file, with default replica counts of 5 for misc/pwn challenges and 7–10 replicas for web challenges. Docker Swarm provided load balancing between containers by exposing the port only. We used Portainer UI to manage scaling and redeployment of challenges that needed it.</p><p>However, we encountered issues with Docker Swarm’s port load balancer failing to forward traffic. The resolution required scaling down services to zero and then rescaling them and reassign the ports.</p><p>Interestingly, nginx/caddy configuration with SSL and domains for challenges was ready in the middle of the CTF, but we hesitated to implement it due to the potential load on the nginx/caddy containers and the need to update all connection information for the challenges. As a result, we continued to use port-based access throughout the event instead of implementing nginx/caddy for more production-ready load balancing. i’m going for a Treafik setup next time since it is the most im familliar to</p><p>Initially, most containers didn’t have resource limits, but we later limited them to 0.5 CPU and 1GB of RAM to prevent resource exhaustion issues.</p><h3>Challenge-Specific Issues</h3><p>Multiple web challenges experienced failures throughout the event. Most notably “Super Secure Storage” Web challenge that was taken down for maintenance on December 11th at 9:12 PM (as announced in Discord). Additionally, “web/gofrita” had to be taken down for maintenance at 7:24 PM on December 11th, but was brought back online by 10:08 PM the same day.</p><p>Another significant challenge issue was “PLANKTON-v2” which went down for maintenance at 12:00 AM on December 13th, but was restored by 12:43 AM the same day. PLANKTON-v2 experienced additional maintenance periods later that day, going down again at 1:43 AM and being restored by 2:16 AM (as announced in Discord).</p><p>Some challenges, particularly “Labyrinth,” caused very high resource usage since containers weren’t properly limited. This caused our challenge server’s CPU usage to reach 70%. Implementing resource limits on containers and scaling to more instances resolved the issue.</p><h3>Resource Management</h3><p>Since we didn’t have time to set up proper instancer plugins (most challenges didn’t require instances), we used Docker Swarm services and stacks with load balancers. Our automation process involved two stages: first, using Docker Compose to build images for each challenge by looping through all challenge folders, and second, creating Docker stacks from each compose file with specific replica counts (5 for misc/pwn challenges, 7–10 for web challenges).</p><p>We used Portainer UI extensively to manage scaling and redeployment of challenges that needed it. Challenge scaling or redeployment were mostly done through Portainer UI, which provided us with real-time visibility into container status, resource usage, and service health. Portainer allowed us to effectively manage our 43 total stacks, 21 services, and 246 containers (117 running, 129 stopped) throughout the event.</p><p>Portainer’s interface gave us detailed insights into each service’s replica count and resource allocation. For example, we could see that ctf-gofrita was running 8 replicas on port 3333, while ctf-secure-storage had 10 replicas on port 6213. This visibility was crucial when troubleshooting container issues and optimizing resource allocation during the event.</p><p>Initially, most containers didn’t have resource limits, which led to some challenges consuming excessive resources. We later implemented resource limits of 0.5 CPU and 1GB of RAM per container to prevent resource exhaustion issues, particularly after noticing high resource usage from challenges like “Labyrinth” which caused the challenge server’s CPU to reach 70%.</p><p>Additionally, nginx configuration with SSL and domains for challenges was ready in the middle of the CTF, but we chose not to implement it due to concerns about the potential load on the nginx containers and the need to update all connection information for the challenges. This decision was made to maintain stability during the event rather than risk potential issues from the infrastructure change.</p><h3>Conclusion</h3><p>During the event, our infrastructure handled significant load. The platform server running CTFd components (nginx, CTFd, Redis, and database) peaked at 25% CPU usage and 4GB RAM, but typically ran at under 10% CPU usage. The challenge server, running over 120 containers across 15 services and Docker stacks on average, reached 70% CPU usage during peak times due to some resource-hungry challenges, but we were able to stabilize it at around 20% CPU usage after implementing container resource limits. The challenge server utilized an average of 26GB of RAM throughout the event.</p><p>Although we had to implement many systems during the final 2 days before the CTF, we managed to keep the platform running with only minimal downtime. The experience taught us valuable lessons about infrastructure planning, resource management, and the importance of stress testing before the event.</p><p>From a technical standpoint, we learned that our Docker Swarm automation process, which involved building images by looping through challenge folders and creating Docker stacks with specific replica counts (5 for misc/pwn, 7–10 for web), was effective but would benefit from nginx integration for production-ready load balancing. We had nginx configuration with SSL and domains ready mid-CTF but chose not to deploy it to maintain stability. For future events, we plan to have this infrastructure ready from the start.</p><p>We also learned the importance of setting resource limits from the beginning (0.5 CPU and 1GB of RAM per container) rather than implementing them reactively after resource exhaustion issues occur. Portainer (version 2.33.6) proved invaluable for monitoring and managing our infrastructure, handling 43 stacks, 21 services, and 246 containers across our 24-node Docker Swarm cluster with 135GB of RAM. The real-time visibility it provided allowed us to respond quickly to scaling needs, particularly for challenges like ctf-gofrita (8 replicas) and ctf-secure-storage (10 replicas).</p><p>Additionally, we plan to add more CTF containers to enable better horizontal scalability and implement Cloudflare caching earlier in the event to reduce server load.also im planning to use LGTM stack for monitoring next time .</p><p>Overall GG to the team we made a good event that a lot of people enjoyed in a short amount of time shoutout to nexus , cascroot , hawiyat , hope to see you guys in next events</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4d9cb0c1416" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>