diff --git a/docs/cluster.html b/docs/cluster.html index 3d576a70..07853ed9 100644 --- a/docs/cluster.html +++ b/docs/cluster.html @@ -110,4 +110,4 @@

There is no depth limit of nesting. Feel free to create nested clusters as deep as you want.

-
Last updated on 2/3/2020
Nodes
\ No newline at end of file +
Last updated on 2020-2-3
Nodes
\ No newline at end of file diff --git a/docs/cluster/index.html b/docs/cluster/index.html index 3d576a70..07853ed9 100644 --- a/docs/cluster/index.html +++ b/docs/cluster/index.html @@ -110,4 +110,4 @@

There is no depth limit of nesting. Feel free to create nested clusters as deep as you want.

-
Last updated on 2/3/2020
Nodes
\ No newline at end of file +
Last updated on 2020-2-3
Nodes
\ No newline at end of file diff --git a/docs/diagram.html b/docs/diagram.html index 2bb72260..a50aef58 100644 --- a/docs/diagram.html +++ b/docs/diagram.html @@ -86,4 +86,4 @@ with Diagram("Simple Diagram", show=False): EC2("web") -
Last updated on 2/3/2020
ExamplesNodes
\ No newline at end of file +
Last updated on 2020-2-3
ExamplesNodes
\ No newline at end of file diff --git a/docs/diagram/index.html b/docs/diagram/index.html index 2bb72260..a50aef58 100644 --- a/docs/diagram/index.html +++ b/docs/diagram/index.html @@ -86,4 +86,4 @@ with Diagram("Simple Diagram", show=False): EC2("web") -
Last updated on 2/3/2020
ExamplesNodes
\ No newline at end of file +
Last updated on 2020-2-3
ExamplesNodes
\ No newline at end of file diff --git a/docs/examples.html b/docs/examples.html index cad820a9..f5b2f833 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -161,4 +161,39 @@ pubsub >> flow

message collecting diagram

-
Last updated on 2/3/2020
InstallationDiagrams
\ No newline at end of file +

Exposed Pod with 3 Replicas on k8s

+
from diagrams import Diagram
+from diagrams.k8s.clusterconfig import HPA
+from diagrams.k8s.compute import Deployment, Pod, ReplicaSet
+from diagrams.k8s.network import Ingress, Service
+
+with Diagram("Exposed Pod with 3 Replicas", show=False):
+    net = Ingress("domain.com") >> Service("svc")
+    net >> [Pod("pod1"),
+            Pod("pod2"),
+            Pod("pod3")] << ReplicaSet("rs") << Deployment("dp") << HPA("hpa")
+
+
+

exposed pod with 3 replicas diagram

+

Stateful Architecture on k8s

+
from diagrams import Cluster, Diagram
+from diagrams.k8s.compute import Pod, StatefulSet
+from diagrams.k8s.network import Service
+from diagrams.k8s.storage import PV, PVC, StorageClass
+
+with Diagram("Stateful Architecture", show=False):
+    with Cluster("App Cluster"):
+        svc = Service("svc")
+        sts = StatefulSet("sts")
+
+        apps = []
+        for _ in range(3):
+            pod = Pod("pod")
+            pvc = PVC("pvc")
+            pod - sts - pvc
+            apps.append(svc >> pod >> pvc)
+
+    apps << PV("pv") << StorageClass("sc")
+
+

stateful architecture diagram

+
Last updated on 2020-2-7
InstallationDiagrams
\ No newline at end of file diff --git a/docs/examples/index.html b/docs/examples/index.html index cad820a9..f5b2f833 100644 --- a/docs/examples/index.html +++ b/docs/examples/index.html @@ -161,4 +161,39 @@ pubsub >> flow

message collecting diagram

-
Last updated on 2/3/2020
InstallationDiagrams
\ No newline at end of file +

Exposed Pod with 3 Replicas on k8s

+
from diagrams import Diagram
+from diagrams.k8s.clusterconfig import HPA
+from diagrams.k8s.compute import Deployment, Pod, ReplicaSet
+from diagrams.k8s.network import Ingress, Service
+
+with Diagram("Exposed Pod with 3 Replicas", show=False):
+    net = Ingress("domain.com") >> Service("svc")
+    net >> [Pod("pod1"),
+            Pod("pod2"),
+            Pod("pod3")] << ReplicaSet("rs") << Deployment("dp") << HPA("hpa")
+
+
+

exposed pod with 3 replicas diagram

+

Stateful Architecture on k8s

+
from diagrams import Cluster, Diagram
+from diagrams.k8s.compute import Pod, StatefulSet
+from diagrams.k8s.network import Service
+from diagrams.k8s.storage import PV, PVC, StorageClass
+
+with Diagram("Stateful Architecture", show=False):
+    with Cluster("App Cluster"):
+        svc = Service("svc")
+        sts = StatefulSet("sts")
+
+        apps = []
+        for _ in range(3):
+            pod = Pod("pod")
+            pvc = PVC("pvc")
+            pod - sts - pvc
+            apps.append(svc >> pod >> pvc)
+
+    apps << PV("pv") << StorageClass("sc")
+
+

stateful architecture diagram

+
Last updated on 2020-2-7
InstallationDiagrams
\ No newline at end of file diff --git a/docs/installation.html b/docs/installation.html index 79308dfe..661b3d54 100644 --- a/docs/installation.html +++ b/docs/installation.html @@ -84,4 +84,4 @@

It will be saved as web_service.png on your working directory.

Next

See more Examples or see Guides page for more details.

-
Last updated on 2/3/2020
Examples
\ No newline at end of file +
Last updated on 2020-2-3
Examples
\ No newline at end of file diff --git a/docs/installation/index.html b/docs/installation/index.html index 79308dfe..661b3d54 100644 --- a/docs/installation/index.html +++ b/docs/installation/index.html @@ -84,4 +84,4 @@

It will be saved as web_service.png on your working directory.

Next

See more Examples or see Guides page for more details.

-
Last updated on 2/3/2020
Examples
\ No newline at end of file +
Last updated on 2020-2-3
Examples
\ No newline at end of file diff --git a/docs/node.html b/docs/node.html index aa5b973d..59d86ca6 100644 --- a/docs/node.html +++ b/docs/node.html @@ -144,4 +144,4 @@

You can't connect two lists directly because shift/arithmetic operations between lists are not allowed in Python.

-
Last updated on 2/3/2020
DiagramsClusters
\ No newline at end of file +
Last updated on 2020-2-3
DiagramsClusters
\ No newline at end of file diff --git a/docs/node/index.html b/docs/node/index.html index aa5b973d..59d86ca6 100644 --- a/docs/node/index.html +++ b/docs/node/index.html @@ -144,4 +144,4 @@

You can't connect two lists directly because shift/arithmetic operations between lists are not allowed in Python.

-
Last updated on 2/3/2020
DiagramsClusters
\ No newline at end of file +
Last updated on 2020-2-3
DiagramsClusters
\ No newline at end of file diff --git a/en/index.html b/en/index.html index c8ab144c..264e6252 100644 --- a/en/index.html +++ b/en/index.html @@ -1,5 +1,5 @@ Diagrams · Diagram as Code
\ No newline at end of file diff --git a/img/exposed_pod_with_3_replicas_diagram.png b/img/exposed_pod_with_3_replicas_diagram.png new file mode 100644 index 00000000..78b7e3e0 Binary files /dev/null and b/img/exposed_pod_with_3_replicas_diagram.png differ diff --git a/img/stateful_architecture_diagram.png b/img/stateful_architecture_diagram.png new file mode 100644 index 00000000..e3c6c571 Binary files /dev/null and b/img/stateful_architecture_diagram.png differ diff --git a/index.html b/index.html index 2cecc12a..4bc7db2d 100644 --- a/index.html +++ b/index.html @@ -1,5 +1,5 @@ Diagrams · Diagram as Code
\ No newline at end of file