Linter additions and adding ingress controllers to the diagrams
This commit is contained in:
@@ -7,8 +7,9 @@ from diagrams import Cluster
|
||||
from diagrams import Diagram
|
||||
from diagrams.k8s.compute import Pod
|
||||
from diagrams.k8s.network import Service
|
||||
from diagrams.custom import Custom
|
||||
from diagrams.k8s.network import Ingress
|
||||
from diagrams.generic.compute import Rack
|
||||
from diagrams.generic.blank import Blank
|
||||
|
||||
from personal import Gitea
|
||||
from personal import StaticSite
|
||||
@@ -21,7 +22,10 @@ if __name__ == '__main__':
|
||||
git = Gitea('Gitea') >> nginx
|
||||
tmp = StaticSite('Temper Blog') >> nginx
|
||||
dev = StaticSite('Dev Blog') >> nginx
|
||||
_ = nginx >> Blank()
|
||||
with Cluster('Namespace - playground'):
|
||||
s = Pod('Sanity') >> Service('sanity.shockrah.xyz')
|
||||
u = Pod('Uptime') >> Service('uptime.shockrah.xyz')
|
||||
p = Pod('Wiki') >> Service('wiki.shockrah.xyz')
|
||||
ingress = Ingress('Nginx Controller')
|
||||
s = Pod('Sanity') >> Service('sanity.shockrah.xyz') >> ingress
|
||||
u = Pod('Uptime') >> Service('uptime.shockrah.xyz') >> ingress
|
||||
p = Pod('Wiki') >> Service('wiki.shockrah.xyz') >> ingress
|
||||
_ = ingress >> Blank()
|
||||
|
||||
Reference in New Issue
Block a user