title | description | weight |
---|---|---|
Nephio install guides |
Nephio install guides
|
1 |
- Introduction
- Installing on GCE
- Installing on a pre-provisioned VM
- Access to the User Interfaces
- Open terminal
- Next Steps
This Installation Guide will set up and run a Nephio demonstration environment. This environment is a single VM that will be used in the exercises to simulate a topology with a Nephio Management cluster, a Regional Workload cluster, and two Edge Workload clusters.
You will need a account in GCP and gcloud
installed on your local environment.
gcloud compute instances create --machine-type e2-standard-8 \
--boot-disk-size 200GB \
--image-family=ubuntu-2004-lts \
--image-project=ubuntu-os-cloud \
--metadata=startup-script-url=https://raw.githubusercontent.com/nephio-project/test-infra/v1.0.1/e2e/provision/init.sh,nephio-test-infra-branch=v1.0.1 \
nephio-r1-e2e
If you want to watch the progress of the installation, give it about 30 seconds to reach a network accessible state, and then ssh in and tail the startup script execution:
gcloud compute ssh ubuntu@nephio-r1-e2e -- \
sudo journalctl -u google-startup-scripts.service --follow
This install has been verified on VMs running on vSphere, OpenStack, AWS, and Azure.
Order or create a VM with the following specification:
- Linux Flavour: Ubuntu-20.04-focal
- 8 cores
- 32 GB memory
- 200 GB disk size
- Default user with sudo passwordless permissions
Configure a Route for Kubernetes
In some installations, the IP range used by Kubernetes in the sandbox can clash with the IP address used by your VPN. In such cases, the VM will become unreachable during the sandbox installation. If you have this situation, add the route below on your VM.
Log onto your VM and run the following commands, replacing <interface-name> and <interface-gateway-ip> with your VMs values:
sudo bash -c 'cat << EOF > /etc/netplan/99-cloud-init-network.yaml
network:
ethernets:
<interface-name>:
routes:
- to: 172.18.2.6/32
via: <interface-gateway-ip>
metric: 100
version: 2
EOF'
sudo netplan apply
Log onto your VM and run the following command:
wget -O - https://raw.githubusercontent.com/nephio-project/test-infra/v1.0.1/e2e/provision/init.sh | \
sudo NEPHIO_DEBUG=false \
NEPHIO_BRANCH=v1.0.1 \
NEPHIO_USER=ubuntu \
bash
The following environment variables can be used to configure the installation:
Variable | Values | Default Value | Description |
---|---|---|---|
NEPHIO_USER | userid | ubuntu | The user to install the sandbox on (must have sudo passwordless permissions) |
NEPHIO_DEBUG | false or true | false | Controls debug output from the install |
NEPHIO_HOME | path | /home/$NEPHIO_USER | The directory to check out the install scripts into |
NEPHIO_DEPLOYMENT_TYPE | r1 or one-summit | r1 | Controls the type of installation to be carried out |
RUN_E2E | false or true | false | Specifies whether end-to-end tests should be executed or not |
DOCKERHUB_USERNAME | alpha-num string | Specifies the dockerhub username | |
DOCKERHUB_TOKEN | alpha-num string | Specifies the password or token | |
NEPHIO_REPO | URL | https://github.com/nephio-project/test-infra.git | URL of the repository to be used for installation |
NEPHIO_BRANCH | branch or tag | main | Tag or branch name to use in NEPHIO_REPO |
DOCKER_REGISTRY_MIRRORS | list of URLs in JSON format | List of docker registry mirrors in JSON format, or empty for no mirrors to be set. Example value: ["https://docker-registry-remote.mycompany.com", "https://docker-registry-remote2.mycompany.com"] |
Monitor the installation on your terminal.
Log onto your VM using ssh on another terminal and use commands docker and kubectl to monitor the installation.
Once it is completed, ssh in and port forward the port to the UI (7007) and to Gitea's HTTP interface, if desired (3000):
Using GCE:
gcloud compute ssh ubuntu@nephio-r1-e2e -- \
-L 7007:localhost:7007 \
-L 3000:172.18.0.200:3000 \
kubectl port-forward --namespace=nephio-webui svc/nephio-webui 7007
Using a VM:
ssh <user>@<vm-address> \
-L 7007:localhost:7007 \
-L 3000:172.18.0.200:3000 \
kubectl port-forward --namespace=nephio-webui svc/nephio-webui 7007
You can now navigate to:
- http://localhost:7007/config-as-data to browse the Nephio Web UI
- http://localhost:3000/nephio to browse the Gitea UI
You will probably want a second ssh window open to run kubectl
commands, etc., without the port forwarding (which
would fail if you try to open a second ssh connection with that setting).
Using GCE:
gcloud compute ssh ubuntu@nephio-r1-e2e
Using a VM:
ssh <user>@<vm-address>
- Step through the [Free5GC]({{< relref "exercise-1-free5gc.md" >}}) and [OAI]({{< relref "exercise-2-oai.md" >}}) exercises
- Learn more about the [Nephio demo sandbox]({{< relref "explore-sandbox.md" >}})
- Dig into the [user guide]({{< ref "user-guides#nephio-r1-user-guide" >}})
- Create a [Bring-Your-Own-Cluster]({{< relref "install-on-byoc.md" >}}) Nephio Installation