mirror of
https://github.com/philippemerle/KubeDiagrams.git
synced 2026-05-21 09:52:47 +00:00
Add Train Ticket example
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
25
examples/train-ticket/README.md
Normal file
25
examples/train-ticket/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Train Ticket Example
|
||||
|
||||
This example is based on [Train Ticket:A 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):
|
||||

|
||||
|
||||
Architecture diagram for [ts-deployment-part2.yml](ts-deployment-part2.yml):
|
||||

|
||||
|
||||
Architecture diagram for [ts-deployment-part3.yml](ts-deployment-part3.yml):
|
||||

|
||||
|
||||
All-in-one architecture diagram:
|
||||

|
||||
9
examples/train-ticket/generate.sh
Executable file
9
examples/train-ticket/generate.sh
Executable 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
|
||||
BIN
examples/train-ticket/train-ticket.png
Normal file
BIN
examples/train-ticket/train-ticket.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 295 KiB |
BIN
examples/train-ticket/ts-deployment-part1.png
Normal file
BIN
examples/train-ticket/ts-deployment-part1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 154 KiB |
1012
examples/train-ticket/ts-deployment-part1.yml
Normal file
1012
examples/train-ticket/ts-deployment-part1.yml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
examples/train-ticket/ts-deployment-part2.png
Normal file
BIN
examples/train-ticket/ts-deployment-part2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 159 KiB |
1962
examples/train-ticket/ts-deployment-part2.yml
Normal file
1962
examples/train-ticket/ts-deployment-part2.yml
Normal file
File diff suppressed because it is too large
Load Diff
BIN
examples/train-ticket/ts-deployment-part3.png
Normal file
BIN
examples/train-ticket/ts-deployment-part3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
43
examples/train-ticket/ts-deployment-part3.yml
Normal file
43
examples/train-ticket/ts-deployment-part3.yml
Normal 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
|
||||
---
|
||||
Reference in New Issue
Block a user