This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tech:openshift:start [2018/07/16 10:50] rk4n3 |
tech:openshift:start [2019/01/05 16:52] (current) rk4n3 |
||
---|---|---|---|
Line 1: | Line 1: | ||
<typo fs:xx-large; fw: bold;>OpenShift</typo> | <typo fs:xx-large; fw: bold;>OpenShift</typo> | ||
+ | |||
+ | <code>oc import-image <NAME OF STREAM></code> | ||
====== Resources ====== | ====== Resources ====== | ||
Line 32: | Line 34: | ||
* Remove image:<code>docker image rm bluejay-loadgen</code> | * Remove image:<code>docker image rm bluejay-loadgen</code> | ||
+ | ------ | ||
+ | ===== Example: Resurrect Bluejay in OpenShift ===== | ||
+ | * Set up OpenShift cluster, and start with ''rc.openshift start'' | ||
+ | * The ''rc.openshift'' wrapper calls ''oc cluster up'' with args | ||
+ | * Initialize service account<code>oc create serviceaccount bluejay | ||
+ | oc policy add-role-to-user system:image-builder -z bluejay | ||
+ | oc policy add-role-to-user admin -z bluejay | ||
+ | oc sa get-token bluejay</code> | ||
+ | * Populate the token into ''~bluejay/.bluejayrc'' | ||
+ | * Ensure access to OpenShift docker repo<code>docker login -u yourlogin -p $(oc whoami -t) 172.30.1.1:5000</code> | ||
+ | * Build, tag, and push JMeter image<code>cd ~/src/bluejay/s2ijm ; make | ||
+ | docker tag <newimage> 172.30.1.1:5000/bluejay/jmeter | ||
+ | docker push 172.30.1.1:5000/bluejay/jmeter</code> | ||
+ | * Build, tag, and push Locust image<code>cd ~/src/bluejay/s2iloc ; make | ||
+ | docker tag <newimage> 172.30.1.1:5000/bluejay/locust | ||
+ | docker push 172.30.1.1:5000/bluejay/locust</code> | ||
+ | * Build, tag, and push Maven image<code>cd ~/src/bluejay/s2imvn ; make | ||
+ | docker tag <newimage> 172.30.1.1:5000/bluejay/maven | ||
+ | docker push 172.30.1.1:5000/bluejay/maven</code> | ||
+ | * Build, tag, and push Gatling image<code>cd ~/src/bluejay/s2igat ; make | ||
+ | docker tag <newimage> 172.30.1.1:5000/bluejay/gatling | ||
+ | docker push 172.30.1.1:5000/bluejay/gatling</code> | ||
+ | * Create image streams<code>cd ~/src/bluejay/etc | ||
+ | oc create -f loadctl.json | ||
+ | oc create -f loadloc.json | ||
+ | oc create -f loadmvn.json | ||
+ | oc create -f loadgat.json</code> | ||
+ | * Create load-gen build configs \\ //Remember to set LDAP credentials in YAML files//<code>cd ~/src/bluejay/etc | ||
+ | oc create -f bld-loadctl.yaml | ||
+ | oc create -f bld-loadloc.yaml | ||
+ | oc create -f bld-loadmvn.yaml | ||
+ | oc create -f bld-loadgat.yaml</code> | ||
+ | * Verify build completions and image streams | ||
+ | * Add OAPT storage \\ //Remember to make it "shared", use name like ''oaptpubrpt201''// | ||
+ | * Add OAPT application | ||
+ | * Add OAPT storage at mount path ''/opt/app-root/pub'' | ||
+ | |||
+ | ------ | ||
====== Trivia ====== | ====== Trivia ====== | ||