Esempio n. 1
0
kibana = Process("Kibana Visualising Dashboard")
elastic_search_monitoring = Process("Elasticsearch Monitoring")
logstash = Process("Logstash")
heartbeat = Process("Heartbeat")
apm_server = Process("Apm Server")

# Boundraries
hosted_services = Boundary("LetterApp DMZ")
mongo_atlas = Boundary("Mongo Atlas Cluster")
aws = Boundary("AWS VPC")
external_services = Boundary("External Services")
internet = Boundary("Internet")
frontend = Boundary("Frontend")
backend = Boundary("Backend")
monitoring_vpc = Boundary("Monitoring VPC")
monitoring_vpc.inBoundary = hosted_services

# Add elements to boundraries
monitong_elements = [
    kibana, elastic_search_monitoring, logstash, heartbeat, apm_server
]
for element in monitong_elements:
    element.inBoundary = monitoring_vpc

# internet_elements = [web_user, administrator, mobile_client, direct_api, browser]
# for service in internet_elements:
#     service.inBoundary = internet

# flask_services = [identity_service, image_service, resources_service, search_service]
# other_hosted_services = [elastic_search_resources, eureka_service_discovery, nginx_backend_server]
# for service in flask_services + other_hosted_services:
Esempio n. 2
0
eu = Actor("End User")

# Server & OS Components

etcd = Datastore("N-ary etcd servers")
apiserver = Server("kube-apiserver")
kubelet = Server("kubelet")
kubeproxy = Server("kube-proxy")
scheduler = Server("kube-scheduler")
controllers = Server("CCM/KCM")
pods = Server("Pods")
iptables = Process("iptables")

# Component <> Boundary Relations
etcd.inBoundary = mcdata
mcdata.inBoundary = apisrv
apiserver.inBoundary = apisrv
kubelet.inBoundary = worker
kubeproxy.inBoundary = worker
pods.inBoundary = contain
scheduler.inBoundary = mcomps
controllers.inBoundary = mcomps
pods.inBoundary = contain
iptables.inBoundary = worker
miu.inBoundary = apisrv
ia.inBoundary = contain
ea.inBoundary = inet
admin.inBoundary = apisrv
dev.inBoundary = inet
eu.inBoundary = inet