OPMS Add Extra Hostname for Container
search cancel

OPMS Add Extra Hostname for Container

book

Article ID: 388220

calendar_today

Updated On:

Products

CA App Synthetic Monitor

Issue/Introduction

Installed OPMS on Docker and Monitor is returning this message can't resolve host name

Environment

ASM

Resolution

Adding extra hosts to the containers - 

Require the docker compose plugin 2.30 or newer

1. create an empty values.yaml file
2. Put the extra hosts to the file in this form (no extra spaces at the beginning of the lines!):
extraHosts:
- www.example.com:X.X.X.X
- example.com:X.X.X.X
3. Run installer with -f flag and install or update command (for existing OPMS use update):

./asm-installer update -f path-to-the-values.yaml-file


All records in the extraHosts: section in the custom values.yaml should be merged to the main values.yaml file which is inside the installer and propagated to all containers.

NOTE: No white space before hyphen (-) and a space after hyphen (-)

- www.example.com:X.X.X.X