Skip to content

Commit

Permalink
move to @InteropIO packages
Browse files Browse the repository at this point in the history
  • Loading branch information
kirilpopov committed Mar 27, 2024
1 parent 3e03643 commit 18adb24
Show file tree
Hide file tree
Showing 13 changed files with 1,604 additions and 953 deletions.
13 changes: 8 additions & 5 deletions 1-basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ Use [this article](https://minikube.sigs.k8s.io/docs/start/) to setup minikube.
cd '.\1. basic'
kubectl apply -f ./kubernetes
```

3. Run the following to tunnel the services to your local machine:
```bash
minikube tunnel
```

This should make the services available at `http://localhost/server/` and `http://localhost/admin-ui/`.

You should be able to login in `Admin UI` with the default credentials `admin` and `admin`.
## Configurations

In the kubernetes folder you will find the following files:
Expand All @@ -52,7 +58,7 @@ In the kubernetes folder you will find the following files:
| API_PORT | Port of the Server API | 4345 | |
| API_BASE | Base of the API - use this to prefix endpoints of the API | "" | |
| API_NAME | Name of the Server instance - used for logging purposes | local | |
| API_STORE_TYPE | Store type - currently the only option is mongo | mongo | mongo, postgresql, mssql |
| API_STORE_TYPE | Store type | mongo | mongo, postgresql, mssql |
| API_STORE_MONGO | Connection string to the selected store type | mongodb://localhost:27017/server | |
| API_AUTH_METHOD | Auth method | none | none, basic, auth0 |
| API_AUTH_EXCLUSIVE_USERS | List of users that can access the server without being part of the GLUE42_SERVER_ADMIN group | [] | |
Expand All @@ -78,7 +84,4 @@ In the kubernetes folder you will find the following files:
| REACT_APP_AUTH0_DOMAIN | [Only if REACT_APP_AUTH=auth0] Auth0 Domain | mongodb://localhost:27017/server | |
| REACT_APP_AUTH0_CLIENT_ID | [Only if REACT_APP_AUTH=auth0] Auth0 Client ID | mongodb://localhost:27017/server | |
| REACT_APP_AUTH0_AUDIENCE | [Only if REACT_APP_AUTH=auth0] Auth0 Audience | mongodb://localhost:27017/server | |
| REACT_APP_AUTH0_REDIRECT_URL| [Only if REACT_APP_AUTH=auth0] Auth0 Redirect URL | mongodb://localhost:27017/server | |



| REACT_APP_AUTH0_REDIRECT_URL| [Only if REACT_APP_AUTH=auth0] Auth0 Redirect URL | mongodb://localhost:27017/server | |
3 changes: 2 additions & 1 deletion 1-basic/kubernetes/_1_environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ data:
SERVER_NAME: "ioManager"
SERVER_PORT: "4356"
SERVER_TOKEN_SECRET: "mV|GuHok*+as2fg|I0Wy^"
API_STORE_MONGO: mongodb://admin:uUa4nPAxLfWw@server-db-svc:27017/g42-home?authSource=admin
API_STORE_TYPE: mongo
API_STORE_MONGO: mongodb://admin:uUa4nPAxLfWw@server-db-svc:27017/manager?authSource=admin
API_AUTH_METHOD_BASIC_USERS: "[\"admin:admin\"]"
API_AUTH_METHOD: basic
---
Expand Down
2 changes: 1 addition & 1 deletion 1-basic/kubernetes/_4_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
claimName: server-logs-pvc
containers:
- name: server-container
image: ghcr.io/glue42/server:0.20.0
image: ghcr.io/interopio/manager:1.2.0
imagePullPolicy: Always
envFrom:
- configMapRef:
Expand Down
2 changes: 1 addition & 1 deletion 1-basic/kubernetes/_5_admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ spec:
spec:
containers:
- name: admin-ui-container
image: ghcr.io/glue42/server-admin-ui:1.0.0
image: ghcr.io/interopio/manager-admin-ui:1.2.0
imagePullPolicy: Always
envFrom:
- configMapRef:
Expand Down
11 changes: 3 additions & 8 deletions 2-advanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
- [🌐 Deployment to Production Kubernetes](#-deployment-to-production-kubernetes)
- [🔧 Modifying the Template](#-modifying-the-template)
- [Databases](#databases)
- [Switching to PostgreSQL](#switching-to-postgresql)
- [Authentication](#authentication)

# 🔍 Overview
Expand Down Expand Up @@ -69,7 +68,7 @@ By default the server is configured with none authentication, which means it tru

To change the list you need to modify the file `services/server/src/config.ts` and change the value of the `auth_exclusive_users` var.

If you want to switch to another authentication check the [Authentication](#authentication) section in our docs.
If you want to switch to another authentication check the [Authentication]([#authentication](https://docs.interop.io/manager/authentication/overview/index.html)) section in our docs.

# 🚀 Getting Started

Expand Down Expand Up @@ -145,12 +144,8 @@ After making these changes, you can then deploy to your chosen Kubernetes servic

## Databases

By default, this package is integrated with a **MongoDB** database. However, io.Manager supports a variety of databases, granting flexibility based on your requirements and deployment environment.

### Switching to PostgreSQL

*PLACEHOLDER*: Instructions on how to switch to PostgreSQL will be provided here.
By default, this package is integrated with a **MongoDB** database. However, io.Manager supports a variety of databases, granting flexibility based on your requirements and deployment environment. Check the [Databases](https://docs.interop.io/manager/databases/overview/index.html) section in our documentation for more information.

## Authentication

*PLACEHOLDER*: Instructions on how to implement different authentication flows will be provided here.
By default, this packages comes with **none** authentication. However, io.Manager supports a variety of authentication methods, including **Basic**, **JWT**, and **OAuth2**. Check the [Authentication](https://docs.interop.io/manager/authentication/overview/index.html) section in our documentation for more information.
Loading

0 comments on commit 18adb24

Please sign in to comment.