Skip to content
Snippets Groups Projects
Commit b4e6126d authored by trantzas's avatar trantzas
Browse files

fixed notations in CRIDGE documentation #9

parent d203a8b8
No related branches found
No related tags found
No related merge requests found
Pipeline #7604 passed
...@@ -162,54 +162,7 @@ Bugzilla should have the following components under the specified product: ...@@ -162,54 +162,7 @@ Bugzilla should have the following components under the specified product:
Also in the 'Main Site Operations' product, a version named 'unspecified' must be created. Also in the 'Main Site Operations' product, a version named 'unspecified' must be created.
### 5. Configure osportalapi container (NFV services) *(conditional)* ### 5. Configure CRIDGE container *(optional)*
Change the respective fields:
- If you made changes to mysql and keycloak credentials.
- If you want to change logging level (TRACE / DEBUG / INFO / WARN / ERROR).
> ***If you are using a non-local domain, replace everywhere the http://keycloak:8080 with the respective {{protocol://domain.name}}, as well as "spring.portal.main.domain" property.***
In folder `org.etsi.osl.main/compose/` edit the file `docker-compose.yaml`
```
SPRING_APPLICATION_JSON: '{
"spring.datasource.username":"root",
"spring.datasource.password":"letmein",
"spring-addons.issuers[0].uri": "http://keycloak:8080/auth/realms/openslice",
"spring.security.oauth2.resourceserver.jwt.issuer-uri": "http://keycloak:8080/auth/realms/openslice",
"springdoc.oAuthFlow.authorizationUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth",
"springdoc.oAuthFlow.tokenUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token",
"spring.portal.main.domain": "http://localhost",
"logging.level.org.springframework" : "INFO"
}'
```
### 6. Configure osscapi container (TMF API service) *(conditional)*
Change the respective fields:
- If you made changes to mysql and keycloak credentials.
- If you want to change logging level (TRACE / DEBUG / INFO / WARN / ERROR).
> **If you are using a non-local domain, replace everywhere the http://keycloak:8080 with the respective {{protocol://domain.name}}.**
In folder `org.etsi.osl.main/compose/` edit the file `docker-compose.yaml`
```
SPRING_APPLICATION_JSON: '{
"spring.datasource.username":"root",
"spring.datasource.password":"letmein",
"spring-addons.issuers[0].uri": "http://keycloak:8080/auth/realms/openslice",
"spring.security.oauth2.resourceserver.jwt.issuer-uri": "http://keycloak:8080/auth/realms/openslice",
"springdoc.oAuthFlow.authorizationUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth",
"springdoc.oAuthFlow.tokenUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token",
"logging.level.org.springframework" : "INFO"
}'
```
### 7. Configure CRIDGE container
If you want to create and manage Kubernetes Custom Resources (CRs), you will have to provide: If you want to create and manage Kubernetes Custom Resources (CRs), you will have to provide:
...@@ -226,7 +179,7 @@ volumes: ...@@ -226,7 +179,7 @@ volumes:
> **The above configuration works for the default kubeconf file names. It explicitly expects a file named `config` within the `/root/.kube` directory of the created container.** > **The above configuration works for the default kubeconf file names. It explicitly expects a file named `config` within the `/root/.kube` directory of the created container.**
Optionally, if you want to use custom kubeconf file names you will have to sync volumes by files and not entire directories, e.g. Optionally, if you want to use custom kubeconf file names, you will have to sync volumes by files and not entire directories, e.g.
```yaml ```yaml
volumes: volumes:
...@@ -234,6 +187,7 @@ volumes: ...@@ -234,6 +187,7 @@ volumes:
``` ```
OpenSlice also offers management support of *multiple Kubernetes Clusters* simultaneously. For this, you will have to: OpenSlice also offers management support of *multiple Kubernetes Clusters* simultaneously. For this, you will have to:
- add all the respective kubeconf files into the `org.etsi.osl.main/compose/kubedir` directory. - add all the respective kubeconf files into the `org.etsi.osl.main/compose/kubedir` directory.
- create a copy of CRIDGE service in the deployment file and map the appropriate volumes. *Mind the need for a different service and container name*. - create a copy of CRIDGE service in the deployment file and map the appropriate volumes. *Mind the need for a different service and container name*.
...@@ -255,6 +209,53 @@ cridge-cluster2: ...@@ -255,6 +209,53 @@ cridge-cluster2:
> Note the same `/root/.kube/config` container's path for the proper functionality. See the above note for explanation. > Note the same `/root/.kube/config` container's path for the proper functionality. See the above note for explanation.
### 6. Configure osportalapi container (NFV services) *(conditional)*
Change the respective fields:
- If you made changes to mysql and keycloak credentials.
- If you want to change logging level (TRACE / DEBUG / INFO / WARN / ERROR).
> ***If you are using a non-local domain, replace everywhere the http://keycloak:8080 with the respective {{protocol://domain.name}}, as well as "spring.portal.main.domain" property.***
In folder `org.etsi.osl.main/compose/` edit the file `docker-compose.yaml`
```
SPRING_APPLICATION_JSON: '{
"spring.datasource.username":"root",
"spring.datasource.password":"letmein",
"spring-addons.issuers[0].uri": "http://keycloak:8080/auth/realms/openslice",
"spring.security.oauth2.resourceserver.jwt.issuer-uri": "http://keycloak:8080/auth/realms/openslice",
"springdoc.oAuthFlow.authorizationUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth",
"springdoc.oAuthFlow.tokenUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token",
"spring.portal.main.domain": "http://localhost",
"logging.level.org.springframework" : "INFO"
}'
```
### 7. Configure osscapi container (TMF API service) *(conditional)*
Change the respective fields:
- If you made changes to mysql and keycloak credentials.
- If you want to change logging level (TRACE / DEBUG / INFO / WARN / ERROR).
> ***If you are using a non-local domain, replace everywhere the http://keycloak:8080 with the respective {{protocol://domain.name}}.***
In folder `org.etsi.osl.main/compose/` edit the file `docker-compose.yaml`
```
SPRING_APPLICATION_JSON: '{
"spring.datasource.username":"root",
"spring.datasource.password":"letmein",
"spring-addons.issuers[0].uri": "http://keycloak:8080/auth/realms/openslice",
"spring.security.oauth2.resourceserver.jwt.issuer-uri": "http://keycloak:8080/auth/realms/openslice",
"springdoc.oAuthFlow.authorizationUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/auth",
"springdoc.oAuthFlow.tokenUrl": "http://keycloak:8080/auth/realms/openslice/protocol/openid-connect/token",
"logging.level.org.springframework" : "INFO"
}'
```
## Configure nginx ## Configure nginx
......
...@@ -119,6 +119,7 @@ By default, the deployment process copies the `org.etsi.osl.main/kubernetes/helm ...@@ -119,6 +119,7 @@ By default, the deployment process copies the `org.etsi.osl.main/kubernetes/helm
> **The above configuration works for the default kubeconf file names. It explicitly expects a file named `config` within the `org.etsi.osl.main/kubernetes/helm/openslice/files/org.etsi.osl.cridge` directory. If you are working with custom kubeconf file names, you will have to rename them.** > **The above configuration works for the default kubeconf file names. It explicitly expects a file named `config` within the `org.etsi.osl.main/kubernetes/helm/openslice/files/org.etsi.osl.cridge` directory. If you are working with custom kubeconf file names, you will have to rename them.**
OpenSlice also offers management support of *multiple Kubernetes Clusters* simultaneously. For this, you will have to: OpenSlice also offers management support of *multiple Kubernetes Clusters* simultaneously. For this, you will have to:
- add all the respective kubeconf files into the `org.etsi.osl.main/compose/kubedir` directory. - add all the respective kubeconf files into the `org.etsi.osl.main/compose/kubedir` directory.
- create a copy of the `cridge.yaml` and `cridge-config.yaml` in `\org.etsi.osl.main\kubernetes\helm\openslice\templates` directory for every Cluster. *Mind the need for different naming*. - create a copy of the `cridge.yaml` and `cridge-config.yaml` in `\org.etsi.osl.main\kubernetes\helm\openslice\templates` directory for every Cluster. *Mind the need for different naming*.
- update every `cridge-config.yaml` file to get the appropriate kubeconf file for every Cluster. - update every `cridge-config.yaml` file to get the appropriate kubeconf file for every Cluster.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment