Skip to content

Commit

Permalink
remove kroki and replace with SVGS for now (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilnick authored Nov 8, 2024
1 parent ca54963 commit 297bed5
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
1 change: 0 additions & 1 deletion docs/canonicalk8s/.sphinx/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ sphinx-notfound-page
sphinx-tabs
sphinxcontrib-jquery
sphinxcontrib-svg2pdfconverter[CairoSVG]
sphinxcontrib.kroki
sphinxext-opengraph
watchfiles
2 changes: 0 additions & 2 deletions docs/canonicalk8s/custom_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@
'canonical.terminal-output',
'notfound.extension',
'sphinxcontrib.cairosvgconverter',
'sphinxcontrib.kroki',
]

# Add custom required Python modules that must be added to the
Expand All @@ -179,7 +178,6 @@
# sphinxext-opengraph
custom_required_modules = [
'sphinxcontrib-svg2pdfconverter[CairoSVG]',
'sphinxcontrib.kroki'
]

# Add files or directories that should be excluded from processing.
Expand Down
5 changes: 0 additions & 5 deletions docs/src/_parts/template-explanation
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ The documentation also supports various diagrams-as-code options. We
prefer to use UML-style diagrams, but you can also use Mermaid or many
other types.

Diagrams like this are processed using the 'kroki' directive:

```{kroki} ../../assets/ck-cluster.puml
```

## Links

Explanations frequently include links to other documents. In particular, please
Expand Down
7 changes: 5 additions & 2 deletions docs/src/snap/explanation/clustering.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ and scheduling of workloads.

This is the overview of a {{product}} cluster:

```{kroki} ../../assets/ck-cluster.puml
```
![cluster6][]

## The Role of `k8sd` in Kubernetes Clustering

Expand Down Expand Up @@ -69,6 +68,10 @@ entire life-cycle. Their components include:
- **Container Runtime**: The software responsible for running containers. In
{{product}} the runtime is `containerd`.

<!-- IMAGES -->

[cluster6]: https://assets.ubuntu.com/v1/e6d02e9c-cluster6.svg

<!-- LINKS -->

[Kubernetes Components]: https://kubernetes.io/docs/concepts/overview/components/
Expand Down
7 changes: 5 additions & 2 deletions docs/src/snap/explanation/ingress.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ that routes traffic from outside of your cluster to services inside of your clus
Please do not confuse this with the Kubernetes Service LoadBalancer type
which operates at layer 4 and routes traffic directly to individual pods.

```{kroki} ../../assets/ingress.puml
```
![cluster6][]

With {{product}}, enabling Ingress is easy:
See the [default Ingress guide][Ingress].
Expand All @@ -73,6 +72,10 @@ the responsibility of implementation falls upon you.
You will need to create the Ingress resource,
outlining rules that direct traffic to your application's Kubernetes service.

<!-- IMAGES -->

[cluster6]: https://assets.ubuntu.com/v1/e6d02e9c-cluster6.svg

<!-- LINKS -->

[Ingress]: /snap/howto/networking/default-ingress
Expand Down
18 changes: 10 additions & 8 deletions docs/src/snap/reference/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ current design of {{product}}, following the [C4 model].
This overview of {{product}} demonstrates the interactions of
Kubernetes with users and with other systems.

```{kroki} ../../assets/overview.puml
```
![cluster2][]

Two actors interact with the Kubernetes snap:

Expand Down Expand Up @@ -52,8 +51,7 @@ distribution. We have identified the following:

Looking more closely at what is contained within the K8s snap itself:

```{kroki} ../../assets/k8s-container.puml
```
![cluster3][]

The `k8s` snap distribution includes the following:

Expand All @@ -74,8 +72,7 @@ The `k8s` snap distribution includes the following:
K8sd is the component that implements and exposes the operations functionality
needed for managing the Kubernetes cluster.

```{kroki} ../../assets/k8sd-component.puml
```
![cluster4][]

At the core of the `k8sd` functionality we have the cluster manager that is
responsible for configuring the services, workload and features we deem
Expand Down Expand Up @@ -107,8 +104,7 @@ This functionality is exposed via the following interfaces:
Canonical `k8s` Charms encompass two primary components: the [`k8s` charm][K8s
charm] and the [`k8s-worker` charm][K8s-worker charm].

```{kroki} ../../assets/charms-architecture.puml
```
![cluster1][]

Charms are instantiated on a machine as a Juju unit, and a collection of units
constitutes an application. Both `k8s` and `k8s-worker` units are responsible
Expand Down Expand Up @@ -140,6 +136,12 @@ and the sharing of observability data with the [`Canonical Observability Stack
(COS)`][COS docs]. This modular and integrated approach facilitates a robust
and flexible {{product}} deployment managed through Juju.

<!-- IMAGES -->

[cluster1]: https://assets.ubuntu.com/v1/dfc43753-cluster1.svg
[cluster2]: https://assets.ubuntu.com/v1/0e486a5d-cluster2.svg
[cluster3]: https://assets.ubuntu.com/v1/24fd1773-cluster3.svg
[cluster4]: https://assets.ubuntu.com/v1/24fd1773-cluster4.svg

<!-- LINKS -->
[C4 model]: https://c4model.com/
Expand Down
2 changes: 1 addition & 1 deletion docs/tools/custom_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
## Use them to extend the default features.

# Add extensions
custom_extensions = ['sphinxcontrib.kroki', ]
custom_extensions = [ ]

# Add MyST extensions
custom_myst_extensions = []
Expand Down

0 comments on commit 297bed5

Please sign in to comment.