blob: 69b73cb555aff3a2b18c866927d88a86e261887f [file] [log] [blame]
Hung-Wei Chiu77c969e2020-10-23 18:13:07 +00001..
2 SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org>
3 SPDX-License-Identifier: Apache-2.0
4
5==========================
6Aether Run-Time Deployment
7==========================
Hyunsun Moona79c7422020-11-18 04:52:56 -08008This section describes how to install Aether edge runtime and Aether managed applications.
9We will be using GitOps based Aether CD pipeline for this,
10so we just need to create a patch to **aether-pod-configs** repository.
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070011
12Before you begin
13================
Hyunsun Moon0e080e42020-11-18 12:53:13 -080014Make sure :ref:`Update Global Resources Map <update_global_resource>` section is completed.
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070015
16Download aether-pod-configs repository
17======================================
Hyunsun Moon0e080e42020-11-18 12:53:13 -080018Download aether-pod-configs repository if you don't have it already in your develop machine.
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070019
20.. code-block:: shell
21
22 $ cd $WORKDIR
23 $ git clone "ssh://[username]@gerrit.opencord.org:29418/aether-pod-configs"
24
Hyunsun Moona79c7422020-11-18 04:52:56 -080025Create runtime configurations
26=============================
27In this step, we will add several Terraform configurations and overriding values for the managed applications.
28Run the following commands to auto-generate necessary files under the target ACE directory.
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070029
30.. code-block:: shell
31
Hyunsun Moona79c7422020-11-18 04:52:56 -080032 $ cd $WORKDIR/aether-pod-configs/tools
Hyunsun Moon0e080e42020-11-18 12:53:13 -080033 $ cp ace_env /tmp/ace_env
34 $ vi /tmp/ace_env
Hyunsun Moona79c7422020-11-18 04:52:56 -080035 # Set environment variables
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070036
Hyunsun Moon0e080e42020-11-18 12:53:13 -080037 $ source /tmp/ace_env
Hyunsun Moona79c7422020-11-18 04:52:56 -080038 $ 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 Moon5ca6bfb2020-10-29 22:29:12 -070045
46Create a review request
Hyunsun Moona79c7422020-11-18 04:52:56 -080047=======================
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070048.. code-block:: shell
49
Hyunsun Moona79c7422020-11-18 04:52:56 -080050 $ cd $WORKDIR/aether-pod-configs
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070051 $ git status
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070052
53 Untracked files:
54 (use "git add <file>..." to include in what will be committed)
55
Hyunsun Moona79c7422020-11-18 04:52:56 -080056 production/ace-test/alerts.tf
57 production/ace-test/app_values/
58 production/ace-test/cluster.tf
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070059
60 $ git add .
Hyunsun Moona79c7422020-11-18 04:52:56 -080061 $ git commit -m "Add test ACE runtime configs"
Hyunsun Moon5ca6bfb2020-10-29 22:29:12 -070062 $ git review
Hyunsun Moona79c7422020-11-18 04:52:56 -080063
64Once the review request is accepted and merged,
65CD pipeline will start to deploy K8S and Aether managed applications on it.