Hung-Wei Chiu | 77c969e | 2020-10-23 18:13:07 +0000 | [diff] [blame] | 1 | .. |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | |
| 5 | ========================== |
| 6 | Aether Run-Time Deployment |
| 7 | ========================== |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 8 | This section describes how to install Aether edge runtime and Aether managed applications. |
| 9 | We will be using GitOps based Aether CD pipeline for this, |
| 10 | so we just need to create a patch to **aether-pod-configs** repository. |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 11 | |
| 12 | Before you begin |
| 13 | ================ |
Hyunsun Moon | 0e080e4 | 2020-11-18 12:53:13 -0800 | [diff] [blame] | 14 | Make sure :ref:`Update Global Resources Map <update_global_resource>` section is completed. |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 15 | |
| 16 | Download aether-pod-configs repository |
| 17 | ====================================== |
Hyunsun Moon | 0e080e4 | 2020-11-18 12:53:13 -0800 | [diff] [blame] | 18 | Download aether-pod-configs repository if you don't have it already in your develop machine. |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 19 | |
| 20 | .. code-block:: shell |
| 21 | |
| 22 | $ cd $WORKDIR |
| 23 | $ git clone "ssh://[username]@gerrit.opencord.org:29418/aether-pod-configs" |
| 24 | |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 25 | Create runtime configurations |
| 26 | ============================= |
| 27 | In this step, we will add several Terraform configurations and overriding values for the managed applications. |
| 28 | Run the following commands to auto-generate necessary files under the target ACE directory. |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 29 | |
| 30 | .. code-block:: shell |
| 31 | |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 32 | $ cd $WORKDIR/aether-pod-configs/tools |
Hyunsun Moon | 0e080e4 | 2020-11-18 12:53:13 -0800 | [diff] [blame] | 33 | $ cp ace_env /tmp/ace_env |
| 34 | $ vi /tmp/ace_env |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 35 | # Set environment variables |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 36 | |
Hyunsun Moon | 0e080e4 | 2020-11-18 12:53:13 -0800 | [diff] [blame] | 37 | $ source /tmp/ace_env |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 38 | $ make runtime |
| 39 | Created ../production/ace-test/main.tf |
| 40 | Created ../production/ace-test/variables.tf |
| 41 | Created ../production/ace-test/cluster.tf |
| 42 | Created ../production/ace-test/alerts.tf |
| 43 | Created ../production/ace-test/app_values/ace-coredns.yml |
| 44 | Created ../production/ace-test/app_values/omec-upf-pfcp-agent.yml |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 45 | |
| 46 | Create a review request |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 47 | ======================= |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 48 | .. code-block:: shell |
| 49 | |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 50 | $ cd $WORKDIR/aether-pod-configs |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 51 | $ git status |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 52 | |
| 53 | Untracked files: |
| 54 | (use "git add <file>..." to include in what will be committed) |
| 55 | |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 56 | production/ace-test/alerts.tf |
| 57 | production/ace-test/app_values/ |
| 58 | production/ace-test/cluster.tf |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 59 | |
| 60 | $ git add . |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 61 | $ git commit -m "Add test ACE runtime configs" |
Hyunsun Moon | 5ca6bfb | 2020-10-29 22:29:12 -0700 | [diff] [blame] | 62 | $ git review |
Hyunsun Moon | a79c742 | 2020-11-18 04:52:56 -0800 | [diff] [blame] | 63 | |
| 64 | Once the review request is accepted and merged, |
| 65 | CD pipeline will start to deploy K8S and Aether managed applications on it. |