# piomin/course-kubernetes-microservices architecture

> Architecture diagram of the GitHub repository piomin/course-kubernetes-microservices, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/piomin/course-kubernetes-microservices
- Repository: https://github.com/piomin/course-kubernetes-microservices

## Overview

This repository is a course collection of Kotlin examples for running microservices on Kubernetes, not one unified application. The documented application examples cover Kubernetes best practices, inter-service communication and gateway use, and service mesh. The tree identifies the services and deployment entry points, but no source excerpts were provided, so internal calls and traffic routes cannot be verified; speculative relationships are shown as dashed with no evidence path.

Main entry points: [`simple-microservices/employee-service/src/main/kotlin/pl/piomin/samples/kubernetes/employee`](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/employee-service/src/main/kotlin/pl/piomin/samples/kubernetes/employee) (Employee service), [`simple-microservices/department-service/src/main/kotlin/pl/piomin/samples/kubernetes/department`](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/department-service/src/main/kotlin/pl/piomin/samples/kubernetes/department) (Department service), [`simple-microservices/organization-service/src/main/kotlin/pl/piomin/samples/kubernetes/organization`](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/organization-service/src/main/kotlin/pl/piomin/samples/kubernetes/organization) (Organization service), [`simple-microservices/k8s`](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/k8s) (Ingress gateway)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_examples["Application examples"]
  node_best["Best practices app"]
  node_department["Department service"]
  node_employee["Employee service"]
  node_organization["Organization service"]
  node_sampleutil["Utility app"]
end

subgraph group_platform["Kubernetes platform"]
  node_gateway["Ingress gateway"]
  node_mesh["Service mesh<br/>[istio.yaml]"]
  node_cluster{{"Kubernetes cluster"}}
end

node_operator(("Example user"))

node_operator -.->|"runs example"| node_best
node_operator -.->|"runs example"| node_department
node_operator -.->|"runs example"| node_employee
node_operator -.->|"runs example"| node_organization
node_operator -.->|"runs example"| node_sampleutil
node_department -.->|"communicates"| node_employee
node_employee -.->|"communicates"| node_organization
node_gateway -.->|"routes traffic"| node_department
node_gateway -.->|"routes traffic"| node_employee
node_gateway -.->|"routes traffic"| node_organization
node_mesh -.->|"configures"| node_cluster
node_best -.->|"runs on"| node_cluster
node_department -.->|"runs on"| node_cluster
node_employee -.->|"runs on"| node_cluster
node_organization -.->|"runs on"| node_cluster
node_sampleutil -.->|"runs on"| node_cluster

click node_best "https://github.com/piomin/course-kubernetes-microservices/blob/master/best-practices/src/main/kotlin/pl/piomin/samples/kubernetes/BestPracticesOnKubernetesApp.kt"
click node_department "https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/department-service/src/main/kotlin/pl/piomin/samples/kubernetes/department"
click node_employee "https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/employee-service/src/main/kotlin/pl/piomin/samples/kubernetes/employee"
click node_organization "https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/organization-service/src/main/kotlin/pl/piomin/samples/kubernetes/organization"
click node_sampleutil "https://github.com/piomin/course-kubernetes-microservices/tree/master/spring-util-app/src/main/kotlin/pl/piomin/samples/kubernetes"
click node_gateway "https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/k8s"
click node_mesh "https://github.com/piomin/course-kubernetes-microservices/blob/master/simple-microservices/department-service/k8s/istio.yaml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_best,node_department,node_employee,node_organization,node_sampleutil,node_operator toneBlue
class node_gateway,node_mesh,node_cluster toneAmber
```

## Components

### Application examples

- [Best practices app](https://github.com/piomin/course-kubernetes-microservices/blob/master/best-practices/src/main/kotlin/pl/piomin/samples/kubernetes/BestPracticesOnKubernetesApp.kt): `best-practices/src/main/kotlin/pl/piomin/samples/kubernetes/BestPracticesOnKubernetesApp.kt`
- [Department service](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/department-service/src/main/kotlin/pl/piomin/samples/kubernetes/department): `simple-microservices/department-service/src/main/kotlin/pl/piomin/samples/kubernetes/department`
- [Employee service](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/employee-service/src/main/kotlin/pl/piomin/samples/kubernetes/employee): `simple-microservices/employee-service/src/main/kotlin/pl/piomin/samples/kubernetes/employee`
- [Organization service](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/organization-service/src/main/kotlin/pl/piomin/samples/kubernetes/organization): `simple-microservices/organization-service/src/main/kotlin/pl/piomin/samples/kubernetes/organization`
- [Utility app](https://github.com/piomin/course-kubernetes-microservices/tree/master/spring-util-app/src/main/kotlin/pl/piomin/samples/kubernetes): `spring-util-app/src/main/kotlin/pl/piomin/samples/kubernetes`

### Kubernetes platform

- [Ingress gateway](https://github.com/piomin/course-kubernetes-microservices/tree/master/simple-microservices/k8s): `simple-microservices/k8s`
- [Service mesh](https://github.com/piomin/course-kubernetes-microservices/blob/master/simple-microservices/department-service/k8s/istio.yaml): `simple-microservices/department-service/k8s/istio.yaml`
- **Kubernetes cluster**

### Other components

- **Example user**

## Connections

- Example user → Best practices app: runs example
- Example user → Department service: runs example
- Example user → Employee service: runs example
- Example user → Organization service: runs example
- Example user → Utility app: runs example
- Department service → Employee service: communicates
- Employee service → Organization service: communicates
- Ingress gateway → Department service: routes traffic
- Ingress gateway → Employee service: routes traffic
- Ingress gateway → Organization service: routes traffic
- Service mesh → Kubernetes cluster: configures
- Best practices app → Kubernetes cluster: runs on
- Department service → Kubernetes cluster: runs on
- Employee service → Kubernetes cluster: runs on
- Organization service → Kubernetes cluster: runs on
- Utility app → Kubernetes cluster: runs on
