Files
odo/scripts/ansible
Philippe Martin ae28de1012 Disable service binding related integration tests (#6920)
* check SKIP_SERVICE_BINDING_TESTS to skip service binding tests

* Pass SKIP_SERVICE_BINDING_TESTS to Windows for Windows tests

* Use fsGroup on Kubernetes

* add instructions to install devfile registry in cluster
2023-06-23 18:20:46 +02:00
..
2023-05-11 10:55:25 -04:00

OVERVIEW

This directory contains ansible manifest files that create the complete infrastructure on IBMCloud.

This script is used for automation and are using in two github-actions.

  • to create a staging environment to test if the changes are working as expected
  • to will apply new changes to the production infrastructure

NOTE

Deleation of stagin environment is done manually, as the github-action will only create the staging env, testing the staging env is manual.

How to create complete infra?

NOTE: you will need to export path to ssh_key for login pourpose (SSHKEY is variable name) Run the following commands

# export ssh_key path
export SSHKEY=/path/to/ssh/key
# expose the Region and API key for ansible script
export IC_REGION="eu-de"     
export IC_API_KEY="<API_KEY>"

ansible-playbook create-infra.yaml

How to delete complete infra?

Run the following commands

# expose the Region and API key for ansible script
export IC_REGION="eu-de"     
export IC_API_KEY="<API_KEY>"

ansible-playbook delete-infra.yaml

Manual Steps to setup cluster

Manual steps need to be done on each cluster

1. install operators

NOTE: if want to use nfs for storage

2. adding nfs server to cluster

NOTE: only do this step if configuring nfs on cluster

3. remove storage