-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor example docs #164
Conversation
* init version of the TLS docs * including: * why tls is needed * what to do if you own a domain of if you don't * a troubleshooting * refactored version of the Janus readme
…ction. It is included
docs/examples/janus/README.md
Outdated
@@ -11,7 +11,11 @@ In this demo you will learn to: | |||
|
|||
## Prerequisites | |||
|
|||
The below installation instructions require an operational cluster running a supported version of Kubernetes (>1.22). Most hosted or private Kubernetes cluster services will work, but make sure that the cluster comes with a functional load-balancer integration (all major hosted Kubernetes services should support this). Otherwise, STUNner will not be able to allocate a public IP address for clients to reach your WebRTC infra. As a regrettable exception, Minikube is unfortunately not supported for this demo. The reason is that [Let's Encrypt certificate issuance is not available with nip.io](https://medium.com/@EmiiKhaos/there-is-no-possibility-that-you-can-get-lets-encrypt-certificate-with-nip-io-7483663e0c1b); later on you will learn more about why this is crucial above. | |||
See prerequisites [here](../../INSTALL.md#prerequisites). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of a separate section, can we just say that you need (1) a Kubernetes cluster (and link the Prereq seq above), and STUNner installed (and link the INSTALL.md).
This allows us to remove the "Installation" section later, as well as the part "To install the stable version of STUNner, please follow the instructions in this section." Let's just put all prereqs/installations/whatnot to the front: one sentence, clean and simple.
docs/examples/TLS.md
Outdated
First, you'll need to find the certificate and its related resources in your cluster. | ||
```console | ||
kubectl get certificate -A | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the extra linefeed here?
Thanks, this is really cool. Minor points:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Left some minor comments, otherwise looks good.
One additional TODO:
- add TLS.md to readthedocs (edit the mkdocs.yml)
@levaitamas I'm not sure if I should include it in the examples section or make it top-level like all the other larger documents. What do you say? |
Since it begins as This documentation sums up the TLS and certificate issues you will encounter deploying the examples., I would put it to the top of examples with a title: Configuring TLS for examples or sth like that. wdyt? |
…from the LiveKit server's config
Mediasoup and livekit demos done. mediasoup arch fig missing |
Jitsi done |
Great work! Added some minor suggestions, otherwise LGTM. |
@rg0now @levaitamas please review once more. |
docs/examples/neko/README.md
Outdated
To run this example, you need: | ||
* a [Kubernetes cluster](../../INSTALL.md#prerequisites), | ||
* a [deployed STUNner](../../INSTALL.md#installation-1) (presumably the latest stable version), | ||
* an [Ingress controller](../TLS.md#ingress) to ingest traffic into the cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the Ingress is optional
docs/examples/TLS.md
Outdated
|
||
The first step of secured traffic ingestion is obtaining a valid cert by installing a Kubernetes Ingress: this will be used during the validation of our certificates and to terminate client TLS encrypted contexts. | ||
|
||
Install an Ingress controller into your cluster. We used the official [nginx ingress](https://github.com/kubernetes/ingress-nginx), but this is not required. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Install an Ingress controller into your cluster. We used the official [nginx ingress](https://github.com/kubernetes/ingress-nginx), but this is not required. | |
Install an Ingress controller into your cluster. We used the official [nginx ingress](https://github.com/kubernetes/ingress-nginx), but other Ingress implementations might work (check their documentation for install steps). |
* a [Kubernetes cluster](../../INSTALL.md#prerequisites), | ||
* a [deployed STUNner](../../INSTALL.md#installation-1) (presumably the latest stable version), | ||
* an [Ingress controller](../TLS.md#ingress) to ingest traffic into the cluster, | ||
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. | |
* a [Cert-manager](../TLS.md#cert-manager) to automate TLS certificate management. |
docs/examples/janus/README.md
Outdated
* a [Kubernetes cluster](../../INSTALL.md#prerequisites), | ||
* a [deployed STUNner](../../INSTALL.md#installation-1) (presumably the latest stable version), | ||
* an [Ingress controller](../TLS.md#ingress) to ingest traffic into the cluster, | ||
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. | |
* a [Cert-manager](../TLS.md#cert-manager) to automate TLS certificate management. |
docs/examples/jitsi/README.md
Outdated
* a [Kubernetes cluster](../../INSTALL.md#prerequisites), | ||
* a [deployed STUNner](../../INSTALL.md#installation-1) (presumably the latest stable version), | ||
* an [Ingress controller](../TLS.md#ingress) to ingest traffic into the cluster, | ||
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. | |
* a [Cert-manager](../TLS.md#cert-manager) to automate TLS certificate management. |
docs/examples/livekit/README.md
Outdated
* a [Kubernetes cluster](../../INSTALL.md#prerequisites), | ||
* a [deployed STUNner](../../INSTALL.md#installation-1) (presumably the latest stable version), | ||
* an [Ingress controller](../TLS.md#ingress) to ingest traffic into the cluster, | ||
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. | |
* a [Cert-manager](../TLS.md#cert-manager) to automate TLS certificate management. |
docs/examples/mediasoup/README.md
Outdated
* a [Kubernetes cluster](../../INSTALL.md#prerequisites), | ||
* a [deployed STUNner](../../INSTALL.md#installation-1) (presumably the latest stable version), | ||
* an [Ingress controller](../TLS.md#ingress) to ingest traffic into the cluster, | ||
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* a [Cert-manager](../TLS.md#cert-manager) to secure traffic. | |
* a [Cert-manager](../TLS.md#cert-manager) to automate TLS certificate management. |
Excellent work, @davidkornel ! I love how you improve it with each iteration. I added some minor comments. |
Hi @rg0now @levaitamas I've included a skip install crds section in the INSTALL.md file. Please take a look and merge if it looks good. |
WIP
This PR aims to refactor the documentation of the examples. We can remove some redundant text by referring to existing sections of the official documentation under the
/docs
directory. The PR itself aims to figure out a better format for current/future examples to improve the user experience. Less reading means faster deployment. However, this takes away some information that reaches the users as they tend to skip referred docs. Also, I'm afraid users will lose it if they need to navigate between multiple docs.Note, that I tried to shorten the length of the example as much as possible, so we would have a starting point.
TODO:
Questions to figure out: