-
Notifications
You must be signed in to change notification settings - Fork 36
/
argocd.d2
executable file
·102 lines (88 loc) · 2.68 KB
/
argocd.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
94
95
96
97
98
99
100
101
102
#!/usr/bin/env d2 --theme 200
#
# Author: Hari Sekhon
# Date: 2024-07-04 17:06:29 +0200 (Thu, 04 Jul 2024)
#
# 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
#
# ============================================================================ #
# A r g o C D - G i t O p s f o r K u b e r n e t e s
# ============================================================================ #
direction: right
title: {
label: ArgoCD - GitOps for Kubernetes
near: top-center
shape: text
style.font-size: 40
style.underline: true
}
classes: {
argocd: {
label: ArgoCD
icon: https://diagrams.mingrammer.com/img/resources/onprem/gitops/argocd.png
shape: image
}
cicd: {
label: CI/CD
icon: https://diagrams.mingrammer.com/img/resources/onprem/ci/github-actions.png
shape: image
}
devops: {
label: DevOps
icon: https://cdn-icons-png.flaticon.com/512/6463/6463383.png
shape: image
}
git: {
label: Git\nrepo
icon: https://icons.terrastruct.com/dev%2Fgit.svg
shape: image
}
docker: {
label: Docker
# icon: https://diagrams.mingrammer.com/img/resources/onprem/container/docker.png
icon: https://icons.terrastruct.com/dev%2Fdocker.svg
shape: image
}
k8s: {
label: Kubernetes
icon: https://icons.terrastruct.com/azure%2F_Companies%2FKubernetes.svg
shape: image
}
container-registry: {
label: Container Registry
# square corners
# icon: https://icons.terrastruct.com/aws%2FCompute%2FAmazon-EC2-Container-Registry.svg
# round corners
# icon: https://diagrams.mingrammer.com/img/resources/aws/compute/ec2-container-registry.png
icon: https://icons.terrastruct.com/gcp%2FProducts%20and%20services%2FDeveloper%20Tools%2FContainer%20Registry.svg
shape: image
}
dash: {
style.stroke-dash: 5
style.animated: true
}
}
devops.class: devops
git.class: git
cicd.class: cicd
docker.class: docker
argocd.class: argocd
container-registry.class: container-registry
k8s.class: k8s
devops -> git: push code {class: dash}
git -> cicd: trigger {class: dash}
cicd -> git: git commit updated\nk8s image version {class: dash}
cicd -> docker: build {class: dash}
docker -> container-registry: push docker image {class: dash}
container-registry -> k8s: k8s pulls docker image {class: dash}
argocd -> git: poll {class: dash}
git -> argocd: git pull updates {class: dash}
argocd -> k8s: update k8s objects {class: dash}