-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding UPF Machine charm howto
- Loading branch information
Mark Beierl
committed
Jun 6, 2024
1 parent
715ece3
commit 9ba1041
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Deploy SD-Core User Plane Machine | ||
|
||
This guide covers how to deploy the User Plane Function (UPF) as a machine charm. | ||
|
||
## Requirements | ||
|
||
- A host with a CPU supporting AVX2 and RDRAND instructions (Intel Haswell, AMD Excavator or equivalent) | ||
- [Juju][Juju] controller bootstrapped to a LXD cluster | ||
- A Juju machine manually representing the host added to the controller | ||
- [Terraform][Terraform] installed | ||
- Git | ||
|
||
## Deploy | ||
|
||
Get Charmed Aether SD-Core Terraform UPF Machine module by cloning the [Charmed Aether SD-Core UPF module][Charmed Aether SD-Core UPF modules] Git repository. Inside the `terraform` directory, create a `terraform.tfvars` file to set the name of Juju model and machine number for the deployment: | ||
|
||
```console | ||
git clone https://github.com/canonical/sdcore-upf-operator.git | ||
cd terraform | ||
|
||
cat << EOF > terraform.tfvars | ||
machine_number = 0 | ||
model_name = "user-plane" | ||
EOF | ||
``` | ||
|
||
Initialize Juju Terraform provider: | ||
|
||
```console | ||
terraform init | ||
``` | ||
|
||
Deploy the machine charm to the machine number specified in the `terraform.tfvars` file. | ||
|
||
```console | ||
terraform apply -var-file="terraform.tfvars" -auto-approve | ||
``` | ||
|
||
[Terraform]: https://www.terraform.io/ | ||
[Juju]: https://juju.is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters