Skip to content

Latest commit

 

History

History
125 lines (79 loc) · 3.24 KB

deployment.md

File metadata and controls

125 lines (79 loc) · 3.24 KB

Deployments

This document describes how to deploy the EDA-Controller (AKA eda-server). Currently there are three supported ways to deploy the EDA-Controller:

  • Using the eda-server-operator for k8s/ocp (recommended one)
  • Using docker-compose
  • Using minikube

If you are looking for a development environment, please refer to the development document.

Eda-server-operator

The recommended way to deploy the EDA-Controller is using the eda-server-operator. This operator is available in the eda-server-operator repository

Look at the eda-server-operator documentation for more information.

Docker Compose

Prerequisites

Docker

You'll need to install Docker or Podman.

For further information please refer our guidelines.

Podman

For further information please refer our guidelines.

Taskfile

For further information please refer our guidelines.

Deployment steps

Clone the repository

git clone [email protected]:ansible/eda-server.git

Configure AWX integration

You might want to configure the AWX integration. To do so, you need to set the environment variables EDA_CONTROLLER_URL and EDA_CONTROLLER_SSL_VERIFY. For example:

  export EDA_CONTROLLER_URL=https://awx-example.com
  export EDA_CONTROLLER_SSL_VERIFY=yes
cd tools/docker

You may want to pull the latest images from the registry:

docker-compose -p eda -f docker-compose-stage.yaml pull

You can start all services with:

docker-compose -p eda -f docker-compose-stage.yaml up

Note: You can use the environment variables EDA_IMAGE_URL and EDA_UI_IMAGE_URL to use a different image url. By default is the latest code from the main branch.

Deploy using Minikube and Taskfile

Minikube is the recommended method for macOS users

Requirements

Deployment steps

  1. Copy environment properties example file to default location

    cp ./tools/deploy/environment.properties.example ./tools/deploy/environment.properties
  2. Edit ./tools/deploy/environment.properties file and add your values.

  3. Start minikube if it is not already running:

    minikube start
  4. Ensure minikube instance is up and running:

    minikube status
  5. Run the deployment:

    task minikube:all
  6. Forward the webserver port to the localhost:

    task minikube:fp:ui

Note: For fedora, the binary may be go-task.

You can now access the UI at http://localhost:8080/eda/ using the above credentials.