Skip to content
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

Update Openstack installation r2 #111

Merged
merged 7 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions content/en/docs/guides/install-guides/install-on-openstack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
---
title: OpenStack deployment management
lapentad marked this conversation as resolved.
Show resolved Hide resolved
description: >
OpenStack Multi-Cluster Deployment Management with Nephio
lapentad marked this conversation as resolved.
Show resolved Hide resolved
weight: 7
---

## Prerequisites

* Openstack Cluster Management (master)
lapentad marked this conversation as resolved.
Show resolved Hide resolved
* 4 VCPU 4 NODES
lapentad marked this conversation as resolved.
Show resolved Hide resolved
* 8GB RAM
lapentad marked this conversation as resolved.
Show resolved Hide resolved
* Kubernetes version 1.24+
lapentad marked this conversation as resolved.
Show resolved Hide resolved
* Openstack Cluster Edge n
lapentad marked this conversation as resolved.
Show resolved Hide resolved
* 2 VCPU 1 NODE
* 4GB RAM
* Kubernetes version 1.24+
lapentad marked this conversation as resolved.
Show resolved Hide resolved
* KPT beta [releases](https://github.com/kptdev/kpt/releases)

## Installation of the management cluster
### Automatic installation of the management cluster using the sandbox Ansible script
Override the default Ansible values and run the installation script in
*test-infra\e2e\provision\init.sh* by changing the k8s.context with your

```kubectl config get-contexts```

then run:
```bash
wget -qO- https://raw.githubusercontent.com/nephio-project/test-infra/main/e2e/provision/init.sh | \
sudo \
NEPHIO_DEBUG=true \
NEPHIO_BRANCH=main \
NEPHIO_USER=$USER \
NEPHIO_RUN_E2E=false \
ANSIBLE_CMD_EXTRA_VAR_LIST="k8s.context=kubernetes-admin@cluster.local kind.enable=false host_min_vcpu=4 host_min_cpu_ram=8" \
bash
lapentad marked this conversation as resolved.
Show resolved Hide resolved
```
- - - -

> **_NOTE:_** The Ansible script will try to install some utilities, if for example the script fails to uninstall them first, you can manually delete them and re-run the script.
```find /usr/lib/python* -type f -name "PyYAML*"``` and ```sudo rm /usr/lib/python3/dist-packages/PyYAML-5.3.1.egg-info```
lapentad marked this conversation as resolved.
Show resolved Hide resolved

### Manual Installation of the management cluster using kpt

- [Common Components](/content/en/docs/guides/install-guides/common-components.md)
- [Common Dependencies](/content/en/docs/guides/install-guides/common-dependencies.md)

## Manual Installation of the Edge cluster using kpt
Install rootsync CRD from:
lapentad marked this conversation as resolved.
Show resolved Hide resolved
```bash
kpt pkg get --for-deployment https://github.com/nephio-project/catalog.git/nephio/core/configsync@main
kpt fn render configsync
kpt live init configsync
kpt live apply configsync --reconcile-timeout=15m --output=table
```
Get the Roosync kpt package and edit it:
```bash
kpt pkg get https://github.com/nephio-project/catalog.git/nephio/optional/rootsync@main
```

Change *./rootsync/rootsync.yaml* and point spec.git.repo to the edge git repository
```yaml
spec:
sourceFormat: unstructured
git:
repo: <http url of your edge repo>
branch: main
auth: none
```
Deploy the modified configsync
```bash
kpt live init rootsync
kpt live apply rootsync --reconcile-timeout=15m --output=table
```

## Configure Management Cluster to manage Edge Cluster
Get a [GitHub token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#fine-grained-personal-access-tokens) if your repository is private, or allow Porch to make modifications.

Register the edge repository using kpt cli or nephio web-ui.
```bash
GITHUB_USERNAME=<Github Username>
GITHUB_TOKEN=<GitHub Token>

kpt alpha repo register \
--namespace default \
--repo-basic-username=${GITHUB_USERNAME} \
--repo-basic-password=${GITHUB_TOKEN} \
--create-branch=true \
--deployment=true \
<http url of your edge repo>
```

## Deploy packages to the edge clusters
Using the web-ui, add a new deployment to the edge workload cluster.

150 changes: 0 additions & 150 deletions content/en/docs/guides/install-guides/openstack.md

This file was deleted.