commit | author | age
|
70c58e
|
1 |
image::https://travis-ci.org/redhat-cop/agnosticd.svg?branch=development[link="https://travis-ci.org/redhat-cop/agnosticd"] |
22e151
|
2 |
|
eab74b
|
3 |
=== OpenShift Workloads |
22e151
|
4 |
|
T |
5 |
An _OpenShift Workload_ is simply a workload that is applied to an existing, |
|
6 |
running, OpenShift cluster. For example if you wish to deploy 3Scale, Prometheus, |
|
7 |
or a MicroService application you can define it as a _Workload_ then simply and |
e3df68
|
8 |
consistently deploy it with a single command to your OpenShift cluster. |
22e151
|
9 |
|
dc0d40
|
10 |
This document assumes more than a passing familiarity with OpenShift but if |
e3df68
|
11 |
you just want to "copy and hack" an existing Workload take a look at the |
8e3646
|
12 |
link:../ansible/roles/ocp-workload-3scale-demo/readme.adoc[OpenShift 3Scale] workload. |
22e151
|
13 |
|
8e3646
|
14 |
Other OpenShift Workloads link:../ansible/roles[here.] OpenShift Workloads all begin |
e3df68
|
15 |
`ocp-workload-` and follow the traditional structure of an Ansible Role. |
T |
16 |
|
eab74b
|
17 |
==== How are _Workloads_ Deployed? |
22e151
|
18 |
|
T |
19 |
OpenShift _Workloads_ are deployed by applying an Ansible link:https://docs.ansible.com/ansible/latest/user_guide/playbooks_reuse_roles.html[role] to an existing, running, cluster. |
dc0d40
|
20 |
|
T |
21 |
New and existing _workloads_ can be deployed, and developed, on any OpenShift |
|
22 |
cluster including locally on your laptop (`oc cluster` and `Minishift`). |
22e151
|
23 |
|
e3df68
|
24 |
Each _Workload_ Role includes a detailed `README.adoc` and they are applied by |
T |
25 |
invoking the `ocp-workload` _config_.which is actually a Playbook and will apply |
|
26 |
the workload in the value `ocp_workload`. For example: |
22e151
|
27 |
|
T |
28 |
[source,bash] |
|
29 |
---- |
e3df68
|
30 |
ansible-playbook -i localhost, -c local ./configs/ocp-workloads/ocp-workload.yml \ |
T |
31 |
-e ocp_workload=ocp-workload-3scale-multitenant \ |
|
32 |
-e ACTION=create \ |
|
33 |
-e subdomain_base=$SUBDOMAIN_BASE \ |
|
34 |
-e admin_username=$ADM_USERNAME |
22e151
|
35 |
---- |