Skip to content

Commit

Permalink
Merge pull request #242 from grycap/dev-gmolto
Browse files Browse the repository at this point in the history
Documentation revamp
  • Loading branch information
catttam authored Jun 4, 2024
2 parents 1512417 + d56c429 commit 6c335e5
Show file tree
Hide file tree
Showing 47 changed files with 615 additions and 455 deletions.
19 changes: 14 additions & 5 deletions docs/about.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# About
# Acknowledgements

OSCAR has been developed by the
[Grid and High Performance Computing Group (GRyCAP)](https://www.grycap.upv.es/)
Expand All @@ -9,10 +9,19 @@ from the [Universitat Politècnica de València (UPV)](http://www.upv.es/).
[![i3M)](images/i3m.png)](https://www.i3m.upv.es/)
[![UPV](images/upv.png)](http://www.upv.es/)

This development is partially funded by the
[EGI Strategic and Innovation Fund](https://www.egi.eu/about/egi-council/egi-strategic-and-innovation-fund/)
and it can be deployed in the EGI Platform through the
[EGI Applications on Demand portal](https://www.egi.eu/services/applications-on-demand/).
OSCAR has been supported by the following projects:

- [EGI Strategic and Innovation Fund](https://documents.egi.eu/public/ShowDocument?docid=3298).
- OSCARISER (Open Serverless Computing for the Adoption of Rapid Innovation on Secure Enterprise-ready Resources). Project PDC2021-120844-I00 funded by MICIU/AEI/10.13039/501100011033 and by the European Union NextGenerationEU/PRTR
- SERCLOCO (Serverless Scientific Computing Across the Hybrid Cloud Continuum). Grant PID2020-113126RB-I00 funded by MICIU/AEI/10.13039/501100011033.
- [AI-SPRINT](http://ai-sprint-project.eu) (AI in Secure Privacy-Preserving Computing Continuum) that has received funding from the European Union’s Horizon 2020 Research and Innovation Programme under Grant 101016577.
- [AI4EOSC](http://ai4eosc.eu) (Artificial Intelligence for the European Open Science Cloud) that has received funding from the European Union’s Horizon Europe Research and Innovation Programme under Grant 101058593.
- [interTwin](https://www.intertwin.eu) (An interdisciplinary Digital Twin Engine for science) that has received funding from the European Union’s Horizon Europe Programme under Grant 101058386.






## Contact

Expand Down
7 changes: 3 additions & 4 deletions docs/api.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# OpenAPI Specification
# OSCAR API

OSCAR exposes a secure REST API available at the Kubernetes master's node IP
through an ingress. This API has been described following the
[OpenAPI Specification](https://www.openapis.org/) and it can be
consulted below.
through an Ingress Controller. This API has been described following the
[OpenAPI Specification](https://www.openapis.org/) and it is available below.

!!swagger api.yaml!!
5 changes: 4 additions & 1 deletion docs/deploy-ec3.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# Deployment with EC3

> ❗️
> The deployment of OSCAR with EC3 is deprecated. Please, consider using the [IM Dashboard](deploy-im-dashboard.md).
In order to deploy an elastic Kubernetes cluster with the OSCAR platform, it
is preferable to use the
[IM Dashboard](https://appsgrycap.i3m.upv.es:31443/im-dashboard).
[IM Dashboard](https://im.egi.eu).
Alternatively, you can also use [EC3](https://github.com/grycap/ec3), a tool
that deploys elastic virtual clusters. EC3 uses the
[Infrastructure Manager (IM)](https://www.grycap.upv.es/im) to deploy such
Expand Down
2 changes: 1 addition & 1 deletion docs/deploy-helm.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Deployment on an existing Kubernetes cluster using Helm
# Deployment with Helm

OSCAR can also be deployed on any existing Kubernetes cluster through its
[helm chart](https://github.com/grycap/helm-charts/tree/master/oscar).
Expand Down
77 changes: 40 additions & 37 deletions docs/deploy-im-dashboard.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Deployment with the IM Dashboard
# Deployment with IM

An OSCAR cluster can be easily deployed on multiple Cloud back-ends without
requiring any installation by using the
An OSCAR cluster can be easily deployed on multiple Cloud platforms via the
[Infrastructure Manager](https://www.grycap.upv.es/im)'s
Dashboard
([IM Dashboard](https://appsgrycap.i3m.upv.es:31443/im-dashboard/login)). This
is a managed service provided by the [GRyCAP](https://www.grycap.upv.es)
([IM Dashboard](https://im.egi.eu)). This
is a managed service provided by [EGI](https://www.egi.eu) and operated by the [GRyCAP](https://www.grycap.upv.es)
research group at the [Universitat Politècnica de València](https://www.upv.es)
to deploy customized virtual infrastructures across many Cloud providers.

Expand All @@ -16,19 +15,19 @@ services (e.g. MinIO).

This example shows how to deploy an OSCAR cluster on
[Amazon Web Services (AWS)](https://aws.amazon.com) with two nodes. Thanks to
the IM, the very same procedure applies to deploy the OSCAR cluster in an
the IM, the very same procedure allows to deploy the OSCAR cluster in an
on-premises Cloud (such as OpenStack) or any other Cloud provider supported
by the IM.

These are the steps:

1. Access the [IM Dashboard](https://appsgrycap.i3m.upv.es:31443/im-dashboard/login)
1. Access the [IM Dashboard](https://im.egi.eu)

![login](images/im-dashboard/im-dashboard-00.png)

You will need to authenticate via
[EGI Check-In](https://www.egi.eu/services/check-in/), which supports
mutiple Identity Providers (IdP).
mutiple Identity Providers (IdP). There is no need to register and the service is provided free of charge.

1. Configure the Cloud Credentials

Expand All @@ -43,41 +42,49 @@ These are the steps:

![credentials](images/im-dashboard/im-dashboard-00-4.png)

In our case we indicate an identifier for the set of credentials,
In our case, we indicate an identifier for the set of credentials,
[the Access Key ID and the Secret Access Key](https://docs.aws.amazon.com/general/latest/gr/aws-sec-cred-types.html)
for an [IAM](https://aws.amazon.com/iam/) user that has privileges to
deploy Virtual Machines in [Amazon EC2](https://aws.amazon.com/ec2).
deploy Virtual Machines in [Amazon EC2](https://aws.amazon.com/ec2). With the default values indicated in this tutorial, you will need privileges to deploy the following instance types: ```t3a.xlarge``` for the front-end node and ```t3a.medium``` for the working node.

1. Select the OSCAR template

![template](images/im-dashboard/im-dashboard-01.png)


There are optional features than can be included in the OSCAR cluster to fit particular user needs. We'll skip them.

![template-config](images/im-dashboard/im-dashboard-01-2.png)



1. Customize and deploy the OSCAR cluster

In this panel you can specify the number of Working Nodes (WNs) of the
cluster together with the computational requirements for each node. We
leave the default values.
- Number of WNs in the oscar cluster: Number of working nodes.
- Number of CPUs for the front-end node: Number of CPUs in the primary node.
- Amount of Memory for the front-end node: RAM in the primary node.
- Flavor name of the front-end node. Only required in case of special flavors i.e. with GPUs: Type of instance that will be selected in the front node.
- Number of CPUs for the WNs: number of CPUs per working node.
- Amount of Memory for the WNs: RAM per working node.
- Flavor name of the WNs. Only required in case of special flavors i.e. with GPUs: Type of instance that will be selected in the working nodes.
- Size of the extra HD added to the instance: Extra memory in the primary node.

- Number of WNs in the OSCAR cluster.
- Number of CPUs for the front-end node.
- Amount of Memory (RAM) for the front-end node
- Flavor name of the front-end node. This is only required in case of special flavors (i.e. with GPUs): Instance type that will be selected for the front-end node.
- Number of CPUs for the WNs (Working Nodes).
- Amount of Memory (RAM) for the WNs.
- Flavor name of the WNs. Again, this is only required in case of special flavors
- Size of the extra HD (Hard Disk) added to the node.
![template-hw](images/im-dashboard/im-dashboard-02.png)

In this panel, specify the passwords to be employed to access the
Kubernetes Web UI (Dashboard), to access the OSCAR web UI and to access
the MinIO dashboard. These tokens can also be used for programmatic access
In the following panel, specify the passwords to be employed to access the
Kubernetes Web UI (Dashboard), to access OSCAR and to access
the MinIO dashboard. These passwords/tokens can also be used for programmatic access
to the respective services.

- Access Token for the Kubernetes admin user: It is the token to connect to the Dashboard of Kubernetes.
- OSCAR password: password to OSCAR.
- MinIO password 8 characters min.: password to MinIO.
- Email to be used in the Lets Encrypt issuer: It is an Email linked with the certificates in case the user has any questions.
- ID of the user that creates the infrastructure: unique identifier. Do not touch.
- VO to support: It supports OIDC log in. If there is nothing, only can connect the user who deploys, in case there is a VO, it can be the user who deploys and all people in the VO.
- Access Token for the Kubernetes admin user: Used to connect to the Kubernetes Dashboard.
- OSCAR password: To log in to the OSCAR cluster as an admin user.
- MinIO password (8 characters min.).
- Email to be used in the Let's Encrypt issuer.
- ID of the user that creates the infrastructure.
- VO (Virtual Organization) to support: It supports OIDC (OpenID Connect) log in. If empty, only the user who deploys the cluster can log in. If a VO is specified, all the members of the VO can log in the OSCAR cluster.
- Flag to add NVIDIA support: if you want to use NVIDIA.
- Flag to install Apache YuniKorn: if you are going to use YuniKorn.
![template-param](images/im-dashboard/im-dashboard-03.png)
Expand All @@ -100,8 +107,8 @@ These are the steps:
1. Check the status of the deployment OSCAR cluster

You will see that the OSCAR cluster is being deployed and the
infrastructure reaches the status "running". The process will not finish
until it reaches the state "configured".
infrastructure reaches the status "running". The process will finish
when it reaches the state "configured".

![status-general](images/im-dashboard/im-dashboard-05.png)

Expand All @@ -115,17 +122,13 @@ These are the steps:
Once reached the "configured" state, see the "Outputs" to obtain the
different endpoints:

* console_minio_endpoint: This endpoint brings access to the MinIO web
user interface.
* dashboard_endpoint: This endpoint redirects to the Kubernetes dashboard
where the OSCAR cluster is deployed.
* local_oscarui_endpoint: This endpoint is where the OSCAR backend is
listening. It supports authentication only via basic-auth.
* console_minio_endpoint: To access the MinIO web UI.
* dashboard_endpoint: To access the Kubernetes dashboard.
* local_oscarui_endpoint: To access the OSCAR UI. It supports username/password authentication.
* minio_endpoint: Endpoint where the MinIO API is listening. If you
access it through a web browser, you will be redirected to
"console_minio_endpoint".
* oscarui_endpoint: Public endpoint of the OSCAR web user interface. It
supports OIDC connections via EGI Check-in, as well as basic auth.
* oscarui_endpoint: To access the OSCAR UI. This one supports both username/password authentication and authentication via EGI Check-In for the user who deployed the OSCAR cluster and the users belonging to the VO specified at deployment time, if any.

![outputs](images/im-dashboard/im-dashboard-07.png)

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy-ansible.md → docs/deploy-k3s-ansible.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ansible playbook to deploy K3s and the OSCAR platform
# Deployment on K3s with Ansible

The folder
[`deploy/ansible`](https://github.com/grycap/oscar/tree/master/deploy/ansible)
Expand Down
17 changes: 17 additions & 0 deletions docs/devel-docs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Documentation development

OSCAR uses [MKDocs](https://www.mkdocs.org) for the documentation. In particular, [Material for MKDocs](https://squidfunk.github.io/mkdocs-material/).

Install the following dependencies:

```sh
pip install mkdocs mkdocs-material mkdocs-render-swagger-plugin
```

The from the main folder `oscar` run:

```sh
mkdocs serve
```

The documentation will be available in [http://127.0.0.1:8000](http://127.0.0.1:8000)
54 changes: 0 additions & 54 deletions docs/egi-integration.md

This file was deleted.

Loading

0 comments on commit 6c335e5

Please sign in to comment.