-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathkubernetes_traefik_ingress_gke.d2
executable file
·93 lines (89 loc) · 2.61 KB
/
kubernetes_traefik_ingress_gke.d2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#!/usr/bin/env d2 --theme 200
#
# Author: Hari Sekhon
# Date: 2023-05-03 07:25:16 +0100 (Wed, 03 May 2023)
#
# vim:ts=2:sts=2:sw=2:et:filetype=d2
#
# https://github.com/HariSekhon/Diagrams-as-Code
#
# License: see accompanying Hari Sekhon LICENSE file
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
title: {
label: Traefik Kubernetes Ingress on GKE
near: top-center
shape: text
style.font-size: 40
style.underline: true
}
classes: {
users: {
icon: https://icons.terrastruct.com/essentials%2F359-users.svg
# icon: https://diagrams.mingrammer.com/img/resources/onprem/client/users.png
shape: image
}
load_balancer: {
icon: https://diagrams.mingrammer.com/img/resources/gcp/network/load-balancing.png
# icon: https://icons.terrastruct.com/gcp%2FProducts%20and%20services%2FNetworking%2FCloud%20Load%20Balancing.svg
shape: image
}
cloud_dns: {
# icon: https://diagrams.mingrammer.com/img/resources/gcp/network/dns.png
icon: https://icons.terrastruct.com/gcp%2FProducts%20and%20services%2FNetworking%2FCloud%20DNS.svg
shape: image
}
k8s_svc: {
icon: https://diagrams.mingrammer.com/img/resources/k8s/network/svc.png
shape: image
}
k8s_pod: {
icon: https://diagrams.mingrammer.com/img/resources/k8s/compute/pod.png
shape: image
}
traefik: {
icon: https://diagrams.mingrammer.com/img/resources/onprem/network/traefik.png
shape: image
}
gke: {
icon: https://diagrams.mingrammer.com/img/resources/gcp/compute/kubernetes-engine.png
# icon: https://icons.terrastruct.com/gcp%2FProducts%20and%20services%2FCompute%2FKubetnetes%20Engine.svg
shape: image
}
}
Users.class: users
# Users.near: top-center
GCP: {
_.Users -> Cloud Load Balancer
_.Users -> Cloud DNS
Cloud Load Balancer.class: load_balancer
Cloud DNS.class: cloud_dns
GKE: {
GKE.class: gke
_.Cloud Load Balancer -> Traefik Ingress
Traefik Ingress.class: traefik
WebApp 1: {
WebApp 1 service.class: k8s_svc
_.Traefik Ingress -> WebApp 1 service
Pod 1.class: k8s_pod
Pod 2.class: k8s_pod
Pod 3.class: k8s_pod
WebApp 1 service -> Pod 1
WebApp 1 service -> Pod 2
WebApp 1 service -> Pod 3
}
WebApp 2: {
WebApp 2 service.class: k8s_svc
_.Traefik Ingress -> WebApp 2 service
Pod 1.class: k8s_pod
Pod 2.class: k8s_pod
Pod 3.class: k8s_pod
WebApp 2 service -> Pod 1
WebApp 2 service -> Pod 2
WebApp 2 service -> Pod 3
}
}
}