Add Train Ticket example

This commit is contained in:
Philippe Merle
2024-12-28 10:40:12 +01:00
parent 616f88457a
commit 8a63e297d7
10 changed files with 3052 additions and 0 deletions

View File

@@ -123,6 +123,7 @@ New mappings can be easily defined in custom configuration files and provided to
* [official Kubernetes Cassandra example](examples/cassandra/)
* [minikube architecture diagrams](examples/minikube/)
* [Train Ticket](examples/train-ticket/)
## License

View File

@@ -0,0 +1,25 @@
# Train Ticket Example
This example is based on [Train TicketA Benchmark Microservice System](https://github.com/FudanSELab/train-ticket/).
Used Train Ticket manifests come from [here](https://github.com/FudanSELab/train-ticket/tree/master/deployment/kubernetes-manifests/k8s-with-jaeger).
## Instructions
Generate the Kubernetes architecture diagrams:
```sh
$ ./generate.sh
```
## Generated architecture diagrams
Architecture diagram for [ts-deployment-part1.yml](ts-deployment-part1.yml):
![ts-deployment-part1.png](ts-deployment-part1.png)
Architecture diagram for [ts-deployment-part2.yml](ts-deployment-part2.yml):
![ts-deployment-part2.png](ts-deployment-part2.png)
Architecture diagram for [ts-deployment-part3.yml](ts-deployment-part3.yml):
![ts-deployment-part3.png](ts-deployment-part3.png)
All-in-one architecture diagram:
![train-ticket.png](train-ticket.png)

View File

@@ -0,0 +1,9 @@
#! /bin/sh
BIN=../../bin
# Generate the Kubernetes architecture diagrams.
$BIN/kube-diagrams ts-deployment-part1.yml
$BIN/kube-diagrams ts-deployment-part2.yml
$BIN/kube-diagrams ts-deployment-part3.yml
$BIN/kube-diagrams -o train-ticket ts-deployment-part*.yml

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@@ -0,0 +1,43 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ts-ui-dashboard
spec:
selector:
matchLabels:
app: ts-ui-dashboard
replicas: 1
template:
metadata:
labels:
app: ts-ui-dashboard
spec:
containers:
- name: ts-ui-dashboard
image: codewisdom/ts-ui-dashboard-with-jaeger:v1
imagePullPolicy: Always
ports:
- containerPort: 8080
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi
---
apiVersion: v1
kind: Service
metadata:
name: ts-ui-dashboard
spec:
type: NodePort
ports:
- name: http
port: 8080
nodePort: 32677
selector:
app: ts-ui-dashboard
---