Newer
Older

Dimitrios Giannopoulos
committed
</nav>

Dimitrios Giannopoulos
committed
</li>
<li class="md-nav__item md-nav__item--nested">

Dimitrios Giannopoulos
committed
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_10" >

Dimitrios Giannopoulos
committed

Dimitrios Giannopoulos
committed
<label class="md-nav__link" for="__nav_10" id="__nav_10_label" tabindex="0">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">

Dimitrios Giannopoulos
committed
Contributing to OSL

Dimitrios Giannopoulos
committed
</span>
<span class="md-nav__icon md-icon"></span>
</label>

Dimitrios Giannopoulos
committed
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_10_label" aria-expanded="false">
<label class="md-nav__title" for="__nav_10">

Dimitrios Giannopoulos
committed
<span class="md-nav__icon md-icon"></span>

Dimitrios Giannopoulos
committed
Contributing to OSL

Dimitrios Giannopoulos
committed
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../contributing/developing/" class="md-nav__link">
<span class="md-ellipsis">
Developing
</span>
</a>
</li>
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
<li class="md-nav__item">
<a href="../contributing/documenting/" class="md-nav__link">
<span class="md-ellipsis">
Documenting
</span>
</a>
</li>

Dimitrios Giannopoulos
committed
</ul>
</nav>
</li>

Dimitrios Giannopoulos
committed
<li class="md-nav__item">
<a href="../terminology/" class="md-nav__link">
<span class="md-ellipsis">
Terminology
</span>
</a>
</li>

Dimitrios Giannopoulos
committed
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">

Dimitrios Giannopoulos
committed

Dimitrios Giannopoulos
committed

Dimitrios Giannopoulos
committed
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#intended-audience-openslice-administrators" class="md-nav__link">
<span class="md-ellipsis">
Intended Audience: OpenSlice administrators
</span>
</a>

Dimitrios Giannopoulos
committed
</li>
<li class="md-nav__item">
<a href="#requirements" class="md-nav__link">
<span class="md-ellipsis">
Requirements
</span>
</a>
<nav class="md-nav" aria-label="Requirements">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#hardware-requirements" class="md-nav__link">
<span class="md-ellipsis">
Hardware requirements

Dimitrios Giannopoulos
committed
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#software-requirements" class="md-nav__link">
<span class="md-ellipsis">
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
Software Requirements
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#exposure" class="md-nav__link">
<span class="md-ellipsis">
Exposure
</span>
</a>
<nav class="md-nav" aria-label="Exposure">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#option-1-load-balancer" class="md-nav__link">
<span class="md-ellipsis">
Option 1 - Load balancer
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#option-2-ingress" class="md-nav__link">
<span class="md-ellipsis">
Option 2 - Ingress

Dimitrios Giannopoulos
committed
</span>
</a>
</li>
</ul>
</nav>

Dimitrios Giannopoulos
committed
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
</li>
<li class="md-nav__item">
<a href="#additional-configuration" class="md-nav__link">
<span class="md-ellipsis">
Additional Configuration
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#preparing-the-environment" class="md-nav__link">
<span class="md-ellipsis">
Preparing the environment
</span>
</a>
<nav class="md-nav" aria-label="Preparing the environment">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#1-setting-up-a-kubernetes-cluster" class="md-nav__link">
<span class="md-ellipsis">
1. Setting Up A Kubernetes Cluster
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#2-installing-helm" class="md-nav__link">
<span class="md-ellipsis">
2. Installing Helm
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#downloading-the-project" class="md-nav__link">
<span class="md-ellipsis">
Downloading the project
</span>
</a>
<nav class="md-nav" aria-label="Downloading the project">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#1-create-a-new-folder-to-download-the-project" class="md-nav__link">
<span class="md-ellipsis">
1. Create a new folder to download the project
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#2-download-the-project-code" class="md-nav__link">
<span class="md-ellipsis">
2. Download the project code
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#3-prerequisites-before-deployment" class="md-nav__link">
<span class="md-ellipsis">
3. Prerequisites before deployment
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#configure-helm-chart" class="md-nav__link">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">
Configure Helm Chart

Dimitrios Giannopoulos
committed
</span>
</a>
<nav class="md-nav" aria-label="Configure Helm Chart">

Dimitrios Giannopoulos
committed
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#configuring-services" class="md-nav__link">
<span class="md-ellipsis">
Configuring Services
</span>
</a>
<nav class="md-nav" aria-label="Configuring Services">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#1-database-configuration" class="md-nav__link">
<span class="md-ellipsis">
1. Database Configuration
</span>
</a>
</li>
<li class="md-nav__item">

Dimitrios Giannopoulos
committed
<a href="#2-keycloak-configuration" class="md-nav__link">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">

Dimitrios Giannopoulos
committed
2. Keycloak Configuration

Dimitrios Giannopoulos
committed
</span>
</a>
</li>
<li class="md-nav__item">

Dimitrios Giannopoulos
committed
<a href="#3-cridge-configuration" class="md-nav__link">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">

Dimitrios Giannopoulos
committed
3. CRIDGE Configuration

Dimitrios Giannopoulos
committed
</span>
</a>
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
<nav class="md-nav" aria-label="3. CRIDGE Configuration">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#31-bundled-cridge-deployment-with-the-openslice-helm-chart-same-cluster-environment" class="md-nav__link">
<span class="md-ellipsis">
3.1 Bundled CRIDGE deployment with the OpenSlice Helm chart (same cluster environment)
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#32-standalone-cridge-deployment" class="md-nav__link">
<span class="md-ellipsis">
3.2 Standalone CRIDGE deployment
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#management-of-multiple-kubernetes-clusters" class="md-nav__link">
<span class="md-ellipsis">
Management of multiple Kubernetes Clusters
</span>
</a>
</li>
</ul>
</nav>

Dimitrios Giannopoulos
committed
</li>
<li class="md-nav__item">

Dimitrios Giannopoulos
committed
<a href="#4-external-services-configuration" class="md-nav__link">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">

Dimitrios Giannopoulos
committed
4. External Services Configuration

Dimitrios Giannopoulos
committed
</span>
</a>
</li>
<li class="md-nav__item">

Dimitrios Giannopoulos
committed
<a href="#5-application-and-logging-configuration" class="md-nav__link">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">

Dimitrios Giannopoulos
committed
5. Application and Logging Configuration

Dimitrios Giannopoulos
committed
</span>
</a>
</li>
<li class="md-nav__item">

Dimitrios Giannopoulos
committed
<a href="#6-ingress-and-root-url" class="md-nav__link">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">

Dimitrios Giannopoulos
committed
6. Ingress and Root URL

Dimitrios Giannopoulos
committed
</span>
</a>
</li>

Dimitrios Giannopoulos
committed
<li class="md-nav__item">
<a href="#7-persistent-volume-for-mysql" class="md-nav__link">
<span class="md-ellipsis">
7. Persistent Volume for MySQL
</span>
</a>

Dimitrios Giannopoulos
committed
</li>
<li class="md-nav__item">
<a href="#8-configuring-tcp-forwarding-for-artemis" class="md-nav__link">
<span class="md-ellipsis">
8. Configuring TCP Forwarding for Artemis
</span>
</a>

Dimitrios Giannopoulos
committed
</li>
</ul>
</nav>
</li>

Dimitrios Giannopoulos
committed
<li class="md-nav__item">

Dimitrios Giannopoulos
committed
<a href="#configure-web-ui" class="md-nav__link">
<span class="md-ellipsis">
Configure Web UI
</span>
</a>
</li>
<li class="md-nav__item">

Dimitrios Giannopoulos
committed
<a href="#configure-tmf-web-ui" class="md-nav__link">

Dimitrios Giannopoulos
committed
<span class="md-ellipsis">

Dimitrios Giannopoulos
committed
Configure TMF Web UI

Dimitrios Giannopoulos
committed
</span>
</a>
</li>
</ul>
</nav>

Dimitrios Giannopoulos
committed
</li>
<li class="md-nav__item">
<a href="#deploy-the-helm-chart" class="md-nav__link">
<span class="md-ellipsis">
Deploy the Helm Chart
</span>
</a>

Dimitrios Giannopoulos
committed
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
</li>
<li class="md-nav__item">
<a href="#validating-deployments-and-container-monitoring" class="md-nav__link">
<span class="md-ellipsis">
Validating deployments and container monitoring
</span>
</a>
<nav class="md-nav" aria-label="Validating deployments and container monitoring">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#checking-the-status-of-your-applications-deployment" class="md-nav__link">
<span class="md-ellipsis">
Checking the Status of your application's deployment
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#accessing-logs-for-troubleshooting" class="md-nav__link">
<span class="md-ellipsis">
Accessing Logs for Troubleshooting
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#post-installation-steps" class="md-nav__link">
<span class="md-ellipsis">
Post installation steps
</span>
</a>
<nav class="md-nav" aria-label="Post installation steps">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#configure-keycloak-server" class="md-nav__link">
<span class="md-ellipsis">
Configure Keycloak server
</span>
</a>
<nav class="md-nav" aria-label="Configure Keycloak server">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#1-configure-email" class="md-nav__link">
<span class="md-ellipsis">
1. Configure email
</span>
</a>
</li>
<li class="md-nav__item">
<a href="#2-add-an-openslice-admin-user" class="md-nav__link">
<span class="md-ellipsis">
2. Add an OpenSlice admin user
</span>
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#nfv-orchestrator-configuration" class="md-nav__link">
<span class="md-ellipsis">
NFV Orchestrator Configuration
</span>
</a>
</li>
</ul>
</nav>

Dimitrios Giannopoulos
committed
</li>
</ul>

Dimitrios Giannopoulos
committed
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">

Dimitrios Giannopoulos
committed
<h1 id="openslice-deployment-guide-with-kubernetes">OpenSlice Deployment Guide with Kubernetes</h1>

Dimitrios Giannopoulos
committed
<h2 id="intended-audience-openslice-administrators">Intended Audience: OpenSlice administrators</h2>

Dimitrios Giannopoulos
committed
<h2 id="requirements">Requirements</h2>
<h3 id="hardware-requirements">Hardware requirements</h3>

Dimitrios Giannopoulos
committed
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
<table>
<thead>
<tr>
<th><strong>Minimum Hardware Requirements</strong></th>
<th><strong>Recommended Hardware Requirements</strong></th>
</tr>
</thead>
<tbody>
<tr>
<td>4 CPU cores</td>
<td>8 CPU cores</td>
</tr>
<tr>
<td>8 GB RAM</td>
<td>16 GB RAM</td>
</tr>
<tr>
<td>30 GB storage</td>
<td>50 GB storage</td>
</tr>
</tbody>
</table>
<h3 id="software-requirements">Software Requirements</h3>

Dimitrios Giannopoulos
committed
<ul>
<li><strong>git:</strong> For cloning the project repository.</li>
<li><strong>Kubernetes:</strong> A running cluster where OpenSlice will be deployed. <ul>
<li><strong>Disclaimer:</strong> The current manual setup of Persistent Volumes using <code>hostPath</code> is designed to operate with <strong>only a single worker node</strong>. This setup will not support data persistence if a pod is rescheduled to another node.</li>
</ul>
</li>
<li><strong>Helm:</strong> For managing the deployment of OpenSlice.</li>
<li>
<p><strong>Ingress Controller:</strong> Ingress exposes HTTP and HTTPS routes from outside the cluster to services within the cluster. Traffic routing is controlled by rules defined on the Ingress resource. An Ingress may be configured to give Services externally-reachable URLs, load balance traffic, terminate SSL / TLS, and offer name-based virtual hosting. An Ingress controller is responsible for fulfilling the Ingress, usually with a load balancer, though it may also configure your edge router or additional frontends to help handle the traffic. You must have an Ingress controller to satisfy an Ingress.</p>
<ul>
<li><strong>Nginx Ingress Controller (Kubernetes Community Edition):</strong> The ingress resource is configured to use an Nginx type ingress controller. </li>
<li>If you need to expose the message bus service (Artemis), which communicates using the TCP protocol, you must use version <strong>>= 1.9.13</strong> of the Nginx Ingress Controller (a prerequisite for <a href="#management-of-multiple-kubernetes-clusters">managing multiple kubernetes clusters</a>). This version or higher includes the required functionality to handle TCP services. Otherwise, earlier versions may suffice depending on your configuration.</li>
<li>To install or upgrade to the required version, run the following command:</li>

Dimitrios Giannopoulos
committed
</ul>
<p><code>bash
helm upgrade nginx-ingress ingress-nginx/ingress-nginx --namespace ingress \
--set tcp.61616="<openslice-namespace>/<openslice-helm-release-name>-artemis:61616"</code></p>
<p>Replace <code><helm-release-name></code> with the name of your OpenSlice Helm release.
* More details regarding the Nginx Ingress Controller (Kubernetes Community Edition) can be found <a href="https://kubernetes.github.io/ingress-nginx/deploy/">here</a>.
* <strong>Other Ingress Controller:</strong> For non-Nginx ingress controllers, modify <code>[repo-root]/kubernetes/helm/openslice/templates/openslice-ingress.yaml</code> to meet your controller’s requirements.</p>

Dimitrios Giannopoulos
committed
</li>
</ul>
<h3 id="exposure">Exposure</h3>
<h4 id="option-1-load-balancer">Option 1 - Load balancer</h4>
<ul>

Dimitrios Giannopoulos
committed
<li><strong>Network Load Balancer:</strong> Required for exposing the service (e.g., GCP, AWS, Azure, MetalLB).</li>
<li><strong>Domain/IP Address:</strong> Necessary for accessing the application. This should be configured in <code>[repo-root]/kubernetes/helm/openslice/values.yaml</code> under <code>rooturl</code>.</li>
</ul>
<h4 id="option-2-ingress">Option 2 - Ingress</h4>
<ul>
<li><strong>Ingress Controller with NodePort:</strong> You can expose the application using the NodePort of the Ingress Controller's service.</li>
<li><strong>IP Address and Port:</strong> Use the IP address of the <strong>master node</strong> and the assigned NodePort to access the application. This should be configured in <code>[repo-root]/kubernetes/helm/openslice/values.yaml</code> under <code>rooturl</code>.</li>
</ul>
<p>For example:</p>
<pre><code>rooturl: http://<master-node-ip>:<nodeport>
</code></pre>

Dimitrios Giannopoulos
committed
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
<h3 id="additional-configuration">Additional Configuration</h3>
<ul>
<li><strong>Storage Class:</strong> In a production environment, specify your <code>storageClass</code> in <code>[repo-root]/kubernetes/helm/openslice/values.yaml</code> under <code>storageClass</code>. If not defined, PVs will be created and managed manually.<ul>
<li><strong>Disclaimer:</strong> Before deploying, confirm that your storage system supports claims of one 10G and two 1G volumes.</li>
</ul>
</li>
</ul>
<h2 id="preparing-the-environment">Preparing the environment</h2>
<h3 id="1-setting-up-a-kubernetes-cluster">1. Setting Up A Kubernetes Cluster</h3>
<p>Refer to the official Kubernetes documentation for setting up a cluster. Ensure your cluster meets the hardware requirements specified above.</p>
<h3 id="2-installing-helm">2. Installing Helm</h3>
<p>Helm must be installed on your machine to deploy OpenSlice via Helm charts. Follow the <a href="https://helm.sh/docs/intro/install/">official Helm installation guide</a>.</p>
<h2 id="downloading-the-project">Downloading the project</h2>
<h3 id="1-create-a-new-folder-to-download-the-project">1. Create a new folder to download the project</h3>
<pre><code class="language-bash">mkdir openslice
cd openslice
</code></pre>
<h3 id="2-download-the-project-code">2. Download the project code</h3>
<p>Clone the project code from the GitLab repository.
<strong>Note:</strong> This process will be simplified once the charts are published in the GitLab registry, requiring only the chart to be pulled.</p>
<pre><code class="language-bash">git clone https://labs.etsi.org/rep/osl/code/org.etsi.osl.main.git
cd org.etsi.osl.main/kubernetes/helm/openslice/
</code></pre>
<h3 id="3-prerequisites-before-deployment">3. Prerequisites before deployment</h3>
<p>Before deploying the Helm chart, ensure you have configured the necessary components as detailed in the following section, i.e. <a href="#configure-helm-chart-services">Configure Helm Chart Services</a>. By default, the <code>main</code> branch is selected for deployment.</p>
<p>We recommend:</p>
<ul>
<li>main branch for the most stable experience and</li>
<li>develop branch for an experience with the latest features (for develop branch installation, it is strongly advisable that you may as well follow the <a href="https://osl.etsi.org/documentation/develop/deployment/">develop documentation</a>)</li>
</ul>
<h2 id="configure-helm-chart">Configure Helm Chart</h2>

Dimitrios Giannopoulos
committed
<p>When deploying OpenSlice with Helm, service configurations are handled through the <code>values.yaml</code> file. This file allows you to define all necessary configurations for your deployment, including database credentials, service URLs, and logging levels. Below are examples of how to configure your services in Helm based on your provided values.</p>
<h3 id="configuring-services">Configuring Services</h3>
<h4 id="1-database-configuration">1. Database Configuration</h4>
<p>To configure MySQL and other related services, you can directly set the values in your <code>values.yaml</code> file under the <code>oscreds</code> and <code>mysql</code> sections. For example:</p>
<pre><code class="language-yaml">oscreds:
mysql:
username: "root"
password: "letmein"
openslicedb: "osdb"
keycloak:
database: "keycloak"
username: "keycloak"
password: "password"
adminpassword: "Pa55w0rd"
portal:
database: "osdb"
username: "portaluser"
password: "12345"
</code></pre>

Dimitrios Giannopoulos
committed
<h4 id="2-keycloak-configuration">2. Keycloak Configuration</h4>
<p>Keycloak settings, including the database and admin password, are part of the <code>oscreds.mysql.keycloak</code> section. If you need to adjust Keycloak-specific settings like realms or client configurations, you'll likely need to customize your Helm chart further or manage these settings directly within Keycloak after deployment. The Keycloak realm configuration that is imported by default can be found under <code>kubernetes/helm/openslice/files/keycloak-init/realm-export.json</code>.</p>
<pre><code class="language-yaml">oscreds:
mysql:
keycloak:
database: "keycloak"
username: "keycloak"
password: "password"
adminpassword: "Pa55w0rd"
</code></pre>
<h4 id="3-cridge-configuration">3. CRIDGE Configuration</h4>
<p>To create and manage Kubernetes Custom Resources (CRs), you have to install and configure the CRIDGE component. </p>
<p>For CRIDGE to work properly, you need to provide a <strong>cluster-wide scope kubeconfig</strong> file (typically located at <code>/home/{user}/.kube</code> directory of the Kubernetes Cluster's host). This kubeconfig file allows CRIDGE to communicate with your Kubernetes cluster.</p>
<p>There are two ways to install CRIDGE:</p>
<h5 id="31-bundled-cridge-deployment-with-the-openslice-helm-chart-same-cluster-environment">3.1 <strong>Bundled CRIDGE deployment with the OpenSlice Helm chart (same cluster environment)</strong></h5>
<p>By default, the OpenSlice Helm chart also deploys CRIDGE alongside the bundle. To configure CRIDGE, there are three different ways to provide this kubeconfig file during deployment:</p>
<ol>
<li>
<p><strong>Manual Copy to Helm Files Directory</strong>:</p>
<ul>
<li>Copy the kubeconfig file to the following directory:<br />
<code>org.etsi.osl.main/kubernetes/helm/openslice/files/org.etsi.osl.cridge</code>.</li>
<li>The deployment process will automatically copy the file into the <code>/root/.kube</code> directory of the CRIDGE container.</li>
<li><strong>Note:</strong> This method expects the kubeconfig file to be named exactly <code>kubeconfig.yaml</code> in the specified directory.</li>
</ul>
</li>
<li>
<p><strong>Passing the Kubeconfig File Using Helm (<code>--set-file</code>)</strong>:</p>

Dimitrios Giannopoulos
committed
<ul>
<li>If you do not wish to manually copy the file, you can pass it directly during the Helm installation using the <code>--set-file</code> option, at the final <a href="#deploy-the-helm-chart">deployment process</a>:</li>

Dimitrios Giannopoulos
committed
</ul>
<p><code>bash
--set-file cridge.kubeconfig.raw=path/to/kubeconfig.yaml</code></p>
<ul>
<li>This method reads the specified kubeconfig file and mounts it into the CRIDGE container during deployment.</li>
</ul>
</li>
<li>
<p><strong>Passing a Base64-Encoded Kubeconfig Using Helm (<code>--set</code>)</strong>:</p>
<ul>
<li>Alternatively, you can pass the kubeconfig as a base64-encoded string, during the Helm installation using the <code>--set</code> option, at the final <a href="#deploy-the-helm-chart">deployment process</a>:</li>
</ul>
<p><code>bash
--set cridge.kubeconfig.base64="$(base64 path/to/kubeconfig.yaml)"</code></p>
<ul>
<li>This method encodes the kubeconfig content and passes it directly to the CRIDGE container.</li>
</ul>
</li>
</ol>

Dimitrios Giannopoulos
committed
<blockquote>
<p><strong>Note:</strong> Regardless of the method you choose, if you're using a non-standard kubeconfig file name, make sure to adjust the references or rename the file as needed.</p>

Dimitrios Giannopoulos
committed
</blockquote>
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
<h5 id="32-standalone-cridge-deployment">3.2 <strong>Standalone CRIDGE deployment</strong></h5>
<p>There can be cases where a separate deployment of CRIDGE, apart from the bundled OpenSlice deployment, may be needed. These cases comprise:</p>
<ul>
<li>remote cluster management, different from the one OpenSlice is installed</li>
<li>more control over the component (e.g. multiple component instances / clusters)</li>
</ul>
<p>In this case, initially you have to disable CRIDGE from deploying with the rest of OpenSlice. To do so, in the <code>values.yaml</code> of OpenSlice Helm chart, you have to change the <code>cridge.enabled</code> flag to <code>false</code>.</p>
<pre><code class="language-yaml">cridge:
enabled: false
</code></pre>
<p>Following, clone the CRIDGE project from the GitLab, which also includes the respective standalone Helm chart.</p>
<pre><code class="language-bash">git clone https://labs.etsi.org/rep/osl/code/org.etsi.osl.cridge.git
cd org.etsi.osl.cridge/helm/cridge/
</code></pre>
<p>Similarly, to configure CRIDGE, there are three different ways to provide this kubeconfig file during deployment:</p>
<ol>
<li>
<p><strong>Manual Copy to Helm Files Directory</strong>:</p>
<ul>
<li>Copy the kubeconfig file to the following directory:<br />
<code>org.etsi.osl.cridge/helm/cridge/files/org.etsi.osl.cridge</code>.</li>
<li>The deployment process will automatically copy the file into the <code>/root/.kube</code> directory of the CRIDGE container.</li>
<li><strong>Note:</strong> This method expects the kubeconfig file to be named exactly <code>kubeconfig.yaml</code> in the specified directory.</li>
</ul>
</li>
<li>
<p><strong>Passing the Kubeconfig File Using Helm (<code>--set-file</code>)</strong>:</p>
<ul>
<li>If you do not wish to manually copy the file, you can pass it directly during the Helm installation using the <code>--set-file</code> option:</li>
</ul>
<p><code>bash
helm install cridge-release . --set-file kubeconfig.raw=path/to/kubeconfig.yaml</code></p>
<ul>
<li>This method reads the specified kubeconfig file and mounts it into the CRIDGE container during deployment.</li>
</ul>
</li>
<li>
<p><strong>Passing a Base64-Encoded Kubeconfig Using Helm (<code>--set</code>)</strong>:</p>

Dimitrios Giannopoulos
committed
<ul>
<li>Alternatively, you can pass the kubeconfig as a base64-encoded string:</li>
</ul>
<p><code>bash
helm install cridge-release . --set kubeconfig.base64="$(base64 path/to/kubeconfig.yaml)"</code></p>
<ul>
<li>This method encodes the kubeconfig content and passes it directly to the CRIDGE container.</li>

Dimitrios Giannopoulos
committed
</ul>
</li>
</ol>
<blockquote>
<p><strong>Note:</strong> Regardless of the method you choose, if you're using a non-standard kubeconfig file name, make sure to adjust the references or rename the file as needed.</p>
<p><strong>Important Note:</strong> If you are deploying CRIDGE in the same cluster and namespace as OpenSlice, no additional configuration is required for the message bus broker URL and OpenSlice communicates with CRIDGE directly. However, if CRIDGE is installed in a <strong>separate Kubernetes cluster</strong> from the one hosting OpenSlice, it is important to configure the <code>values.yaml</code> file for the CRIDGE Helm chart to point to the correct message bus broker URL. Please see <a href="#software-requirements">Nginx Ingress Controller (Kubernetes Community Edition) configuration</a> on how to properly expose the message bus in such scenario.</p>
</blockquote>
<p>In the <code>values.yaml</code> of the CRIDGE Helm chart, you must set <code>oscreds.activemq.brokerUrl</code> to point to the IP address of the ingress controller in the OpenSlice cluster, as shown below:</p>
<pre><code class="language-yaml">oscreds:
activemq:
brokerUrl: "tcp://<openslice-rootURL>:61616?jms.watchTopicAdvisories=false"

Dimitrios Giannopoulos
committed
</code></pre>
<h5 id="management-of-multiple-kubernetes-clusters">Management of multiple Kubernetes Clusters</h5>
<p>OpenSlice also offers management support of <em>multiple Kubernetes Clusters</em> simultaneously. </p>
<p>For this, you will have to replicate the steps in <a href="#32-standalone-cridge-deployment">Standalone CRIDGE deployment</a> for every Cluster. Each CRIDGE instance will be in charged with the management of one Kubernetes Cluster.</p>

Dimitrios Giannopoulos
committed
<h4 id="4-external-services-configuration">4. External Services Configuration</h4>
<p>For configuring optional external services like Bugzilla and CentralLog, specify their URLs and credentials in the <code>values.yaml</code> file:</p>

Dimitrios Giannopoulos
committed
<pre><code class="language-yaml">bugzillaurl: "example.com:443/bugzilla"
bugzillakey: "VH2Vw0iI5aYgALFFzVDWqhACwt6Hu3bXla9kSC1Z"
main_operations_product: "Main Site Operations" // this is the default product to issue tickets
centrallogurl: "http://elk_ip:elk_port/index_name/_doc"
</code></pre>
<p>Bugzilla should have the following components under the specified product: </p>
<ul>
<li>NSD Deployment Request: Component used to schedule deployment req </li>
<li>Onboarding: Issues related to VNF/NSD Onboarding </li>
<li>Operations Support: Default component for operations support </li>
<li>Validation: Use to track validation processes of VNFs and NSDs </li>
<li>VPN Credentials/Access: Used for requesting VPN Credentials/Access </li>
</ul>
<p>Also in the 'Main Site Operations' product, a version named 'unspecified' must be created.</p>

Dimitrios Giannopoulos
committed
<h4 id="5-application-and-logging-configuration">5. Application and Logging Configuration</h4>

Dimitrios Giannopoulos
committed
<p>Application-specific configurations, such as OAuth client secrets, can be set in the <code>spring</code> section:</p>
<pre><code class="language-yaml">spring:
oauthClientSecret: "secret"
</code></pre>

Dimitrios Giannopoulos
committed
<h4 id="6-ingress-and-root-url">6. Ingress and Root URL</h4>

Dimitrios Giannopoulos
committed
<p>To configure the ingress controller and root URL for OpenSlice, update the rooturl field with your ingress load balancer IP or domain. This setting is crucial for external access to your application:</p>
<pre><code class="language-yaml">rooturl: "http://openslice.com" # Example domain
# or
rooturl: "http://3.15.198.35:8080" # Example IP with port
</code></pre>

Dimitrios Giannopoulos
committed
<h4 id="7-persistent-volume-for-mysql">7. Persistent Volume for MySQL</h4>

Dimitrios Giannopoulos
committed
<p>For persistent storage, especially for MySQL, define the storage size under the <code>mysql</code> section. This ensures that your database retains data across pod restarts and deployments.</p>
<pre><code class="language-yaml">mysql:
storage: "10Gi"
</code></pre>
<h4 id="8-configuring-tcp-forwarding-for-artemis">8. Configuring TCP Forwarding for Artemis</h4>
<p>To expose the message bus service (Artemis) via the ingress controller, it’s essential to configure TCP traffic forwarding. Artemis listens on port <code>61616</code>, and this traffic needs to be directed to the Artemis service within your Kubernetes cluster.</p>
<p>In the <a href="#software-requirements">Ingress Controller Setup</a> section, you already configured the Nginx ingress controller to handle this TCP forwarding. By setting the rule for port <code>61616</code>, traffic arriving at the ingress will be forwarded to the Artemis service defined in your Helm release.</p>
<p>This setup ensures that the message bus service is accessible externally via the ingress controller, completing the necessary configuration for Artemis.</p>

Dimitrios Giannopoulos
committed
<h3 id="configure-web-ui">Configure Web UI</h3>

Dimitrios Giannopoulos
committed
<p>In folder <code>kubernetes/helm/openslice/files/org.etsi.osl.portal.web/src/js</code> you must make a copy of <code>config.js.default</code> file and rename it to <code>config.js</code>. </p>
<p>This is <strong>mandatory</strong> for the configuration file to be discoverable.</p>
<p>Edit the <code>config.js</code> configuration file with your static configuration, if needed.</p>
<pre><code>{
TITLE: "OpenSlice by ETSI",
WIKI: "https://osl.etsi.org/documentation/",
BUGZILLA: "{{ .Values.rooturl }}/bugzilla",
STATUS: "{{ .Values.rooturl }}/status",
APIURL: "{{ .Values.rooturl }}",
WEBURL: "{{ .Values.rooturl }}/nfvportal",
APIOAUTHURL: "{{ .Values.rooturl }}/auth/realms/openslice",
APITMFURL: "{{ .Values.rooturl }}/tmf-api/serviceCatalogManagement/v4"
}
</code></pre>

Dimitrios Giannopoulos
committed
<h3 id="configure-tmf-web-ui">Configure TMF Web UI</h3>

Dimitrios Giannopoulos
committed
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
<p>In the folder <code>kubernetes/helm/openslice/files/org.etsi.osl.tmf.web/src/assets/config</code> there are 3 files available for configuration:</p>
<ul>
<li>config.prod.default.json (Basic information + API configuration)</li>
<li>theming.default.scss (CSS color palette theming)</li>
<li>config.theming.default.json (HTML configuration - Logo, Favicon, Footer)</li>
</ul>
<p>You must make a copy of files:</p>
<ul>
<li><code>config.prod.default.json</code> and rename it to <code>config.prod.json</code></li>
<li><code>theming.default.scss</code> and rename it to <code>theming.scss</code></li>
</ul>
<p>The 2 files above (i.e. config.prod.json, theming.scss) are essential for the successful deployment of OpenSlice, and executing the above steps is <strong>mandatory</strong> for the configuration files to be discoverable.</p>
<p>Ensure that you check the <code>config.prod.json</code> and <code>theming.scss</code> files and readjust to your deployment if needed.</p>
<pre><code class="language-bash"># Starting from the root project directory
cd kubernetes/helm/openslice/files/org.etsi.osl.tmf.web/src/assets/config
</code></pre>
<p>E.g. You may edit "TITLE", "WIKI", etc properties with your domain title. Also configure TMF's API and Keycloak's location for the web application, if needed.</p>
<pre><code>{
"TITLE": "OpenSlice by ETSI",
"PORTALVERSION":"2024Q2",
"WIKI": "https://osl.etsi.org/documentation",
"BUGZILLA": "{BASEURL}/bugzilla/",
"STATUS": "{BASEURL}/status/",
"WEBURL": "{BASEURL}",
"PORTAL_REPO_APIURL": "{BASEURL}/osapi",
"ASSURANCE_SERVICE_MGMT_APIURL": "{BASEURL}/oas-api",
"APITMFURL": "{BASEURL}/tmf-api",
"OAUTH_CONFIG" : {
"issuer": "{BASEURL}/auth/realms/openslice",
"loginUrl": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/auth",
"tokenEndpoint": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/token",
"userinfoEndpoint": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/userinfo",
"redirectUri": "{BASEURL}/redirect",
"logoutUrl": "{BASEURL}/auth/realms/openslice/protocol/openid-connect/logout",
"postLogoutRedirectUri": "{BASEURL}",
"responseType": "code",
"oidc": false,
"clientId": "osapiWebClientId",
"dummyClientSecret": "secret",
"requireHttps": false,
"useHttpBasicAuth": true,
"clearHashAfterLogin": false,
"showDebugInformation": true
}
}
</code></pre>
<blockquote>

Dimitrios Giannopoulos
committed
<p>The {BASEURL} placeholder in the file automatically detects the Origin (Protocol://Domain:Port) of the deployment and applies it to every respective property. E.g. If you are attempting a local deployment of OpenSlice, then {BASEURL} is automatically translated to "http://localhost". Similarly, you may use {BASEURL} to translate to a public deployment configuration, e.g. "https://portal.openslice.eu".</p>

Dimitrios Giannopoulos
committed
</blockquote>
<p>If further customization, apart from the default provided, is needed for branding (Logo, Footer) then <code>config.theming.json</code> needs to be created in kubernetes/helm/openslice/files/org.etsi.osl.tmf.web/src/assets/config directory, as follows:</p>
<pre><code class="language-bash"># Starting from the root project directory
cd kubernetes/helm/openslice/files/org.etsi.osl.tmf.web/src/assets/config
</code></pre>
<pre><code class="language-bash">sudo cp config.theming.default.json config.theming.json
</code></pre>

Dimitrios Giannopoulos
committed
<h2 id="deploy-the-helm-chart">Deploy the Helm Chart</h2>

Dimitrios Giannopoulos
committed
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
<p>After configuring the services, and editing the <code>values.yaml</code> file accordingly, the helm install command can be performed.</p>
<pre><code class="language-bash">cd kubernetes/helm/openslice/
helm install myopenslice . --namespace openslice --create-namespace
</code></pre>
<h2 id="validating-deployments-and-container-monitoring">Validating deployments and container monitoring</h2>
<p>In a Kubernetes environment, you can monitor the status of your deployments and containers using <code>kubectl</code>, the Kubernetes command-line tool, which provides powerful capabilities for inspecting the state of resources in your cluster.</p>
<h3 id="checking-the-status-of-your-applications-deployment">Checking the Status of your application's deployment</h3>
<p>To check the status of your deployment, use the following commands. The output should be similar:</p>
<pre><code class="language-bash">
kubectl get pods -n openslice
NAME READY UP-TO-DATE AVAILABLE AGE
myopenslice-artemis 1/1 1 1 6m28s
myopenslice-blockdiag 1/1 1 1 6m28s
myopenslice-bugzilla 1/1 1 1 6m28s
myopenslice-centrallog 1/1 1 1 6m28s
myopenslice-cridge 1/1 1 1 6m28s
myopenslice-keycloak 1/1 1 1 6m28s
myopenslice-kroki 1/1 1 1 6m28s
myopenslice-manoclient 1/1 1 1 6m28s
myopenslice-oasapi 1/1 1 1 6m28s
myopenslice-osom 1/1 1 1 6m28s
myopenslice-osportalapi 1/1 1 1 6m28s
myopenslice-osscapi 1/1 1 1 6m28s
myopenslice-portalweb 1/1 1 1 6m28s
myopenslice-tmfweb 1/1 1 1 6m28s
</code></pre>
<pre><code class="language-bash">kubectl get deployments -n openslice
NAME READY UP-TO-DATE AVAILABLE AGE
myopenslice-artemis 1/1 1 1 7m17s
myopenslice-blockdiag 1/1 1 1 7m17s
myopenslice-bugzilla 1/1 1 1 7m17s
myopenslice-centrallog 1/1 1 1 7m17s
myopenslice-cridge 1/1 1 1 7m17s
myopenslice-keycloak 1/1 1 1 7m17s
myopenslice-kroki 1/1 1 1 7m17s
myopenslice-manoclient 1/1 1 1 7m17s
myopenslice-oasapi 1/1 1 1 7m17s
myopenslice-osom 1/1 1 1 7m17s
myopenslice-osportalapi 1/1 1 1 7m17s
myopenslice-osscapi 1/1 1 1 7m17s
myopenslice-portalweb 1/1 1 1 7m17s
myopenslice-tmfweb 1/1 1 1 7m17s
</code></pre>
<pre><code class="language-bash">kubectl get services -n openslice
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
myopenslice-artemis ClusterIP 10.101.128.223 <none> 8161/TCP,61616/TCP,61613/TCP 7m43s
myopenslice-blockdiag ClusterIP 10.109.196.90 <none> 8001/TCP 7m43s
myopenslice-bugzilla ClusterIP 10.107.10.101 <none> 13010/TCP 7m43s
myopenslice-centrallog ClusterIP 10.109.84.33 <none> 13013/TCP 7m43s
myopenslice-keycloak ClusterIP 10.104.172.73 <none> 8080/TCP,8443/TCP 7m43s
myopenslice-kroki ClusterIP 10.106.92.111 <none> 8000/TCP 7m43s
myopenslice-manoclient ClusterIP 10.100.143.154 <none> 13011/TCP 7m43s
myopenslice-mysql ClusterIP 10.108.206.75 <none> 3306/TCP 7m43s
myopenslice-oasapi ClusterIP 10.100.107.66 <none> 13101/TCP 7m43s
myopenslice-osom ClusterIP 10.97.88.133 <none> 13100/TCP 7m43s
myopenslice-osportalapi ClusterIP 10.111.212.76 <none> 13000/TCP 7m43s
myopenslice-osscapi ClusterIP 10.101.84.220 <none> 13082/TCP 7m43s
myopenslice-portalweb ClusterIP 10.101.16.112 <none> 80/TCP 7m43s
myopenslice-tmfweb ClusterIP 10.101.157.185 <none> 80/TCP 7m43s
</code></pre>
<h3 id="accessing-logs-for-troubleshooting">Accessing Logs for Troubleshooting</h3>
<p>If a pod is not in the expected state, you can access its logs for troubleshooting:</p>
<pre><code class="language-bash">kubectl logs <pod-name> -n openslice
</code></pre>
<h2 id="post-installation-steps">Post installation steps</h2>
<p>After the successful deployment of OpenSlice, to ensure the E2E user experience, <strong>this section is mandatory</strong>. It contains crucial configuration in regard of authentication and user creation.</p>
<h3 id="configure-keycloak-server">Configure Keycloak server</h3>
<p>The Keycloack server is managing authentication and running on a container at port 8080. It is also proxied to your host via the ingress resource under http://your-domain/auth. </p>
<ul>
<li>
<p>Navigate to http://your-domain/auth/ or https://your-domain/auth/, (http://ipaddress:8080/auth/ or https://ipaddress:8443/auth/ which are directly accessible without proxy) </p>
</li>
<li>
<p>Navigate to Administration Console </p>
</li>
<li>
<p>Login with the credentials from section <a href="#3-keycloak-configuration">Keycloak Configuration</a>. Default values are:</p>
<ul>
<li>user: admin </li>
<li>password: Pa55w0rd</li>
</ul>
</li>
</ul>
<blockquote>
<p>This applies only if you are running in HTTP and get a message: HTTPS required.</p>
</blockquote>
<p>To resolve this issue <u>when running in HTTP</u>: </p>
<ul>
<li>Select the master realm from top left corner</li>
<li>Go to login Tab and select "Require SSL": None</li>
<li>Repeat for realm Openslice</li>
</ul>
<blockquote>
<p>If you are running in HTTPS, then "Require SSL" can be left unchanged to external requests.</p>
</blockquote>
<h4 id="1-configure-email">1. Configure email</h4>
<p>Keycloak allows new users to register. Subsequently, this will also allow new users to register to the OpenSlice portal.</p>
<p>Navigate to realm Openslice > Realm Settings > Login Tab > check User registration, Verify email, Forgot password etc.</p>
<p>Finally, enter the details of the mail server at the Email Tab.</p>