Skip to content

Instantly share code, notes, and snippets.

@thecloudranger
Created November 11, 2023 10:23
Show Gist options
  • Select an option

  • Save thecloudranger/ce46db6d1b1c2a957b863969eb5470b6 to your computer and use it in GitHub Desktop.

Select an option

Save thecloudranger/ce46db6d1b1c2a957b863969eb5470b6 to your computer and use it in GitHub Desktop.
MermaidJS diagram - Inner development loop for Kubernetes
sequenceDiagram
Participant D as Developer
Participant I as IDE
Participant Doc as Docker
Participant M as Minikube
Participant TC as Testcontainers
D->>I: Write Code/Tests
I-->>D: Run Unit Tests
D->>Doc: Build Images
D->>Skaffold: Deploy to Minikube
Skaffold->>M: Deploy Pods
D->>M: Debug on Kubernetes
alt App Crashing
D->>M: Check Pod Logs
D->>M: Stream Crash Logs
D->>M: Debug Shell in Pod
else High Latency
D->>M: Check Pod Metrics
D->>M: Review Events & Logs
D->>M: Packet Capture Network
end
M-->>D: Logs and Data
D->>Skaffold: Sync Code Changes
Skaffold->>M: Update Pods
D->>Doc: Run Testcontainers
TC-->>D: Results
alt integration tests pass
D->>M: Continue Debugging
else integration tests fail
D->>I: Fix Bugs
end
D->>Skaffold: Redeploy Pods
Skaffold->>M: Redeploy
D->>Doc: Re-run Testcontainers
TC-->>D: Results
D->>I: Continue Development
D->>Github: Commit Code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment