File tree Expand file tree Collapse file tree 4 files changed +26
-24
lines changed
provisioning_tools/101-labs Expand file tree Collapse file tree 4 files changed +26
-24
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,8 @@ This directory contains all the contents and infrastrcture to run an instance of
8
8
1 . Locally:
9
9
You can build and deploy the docker image with ` docker build -t 101-lab:1.0.0 . ` and ` docker run -p 2015:2015 101-lab:1.0.0 `
10
10
11
- 2 . Openshift:
12
- You can deploy this to openshift by processing and applying the ` app.yaml ` openshift template.
11
+ 2 . OpenShift:
12
+ You can deploy this to openshift by processing and applying the ` app.yaml ` openshift template:
13
+ ``` shell
14
+ oc -n [-tools] process -f app.yaml -p APP=[ocp101-march] | oc -n [-tools] create -f -
15
+ ```
Original file line number Diff line number Diff line change @@ -201,8 +201,8 @@ oc -n openshift get template/mongodb-ephemeral -o json | oc process -f - --param
201
201
# using oc rollout latest; or
202
202
oc -n [-dev] rollout latest mongodb-[username]
203
203
204
- # using watch
205
- oc -n [-dev] get pods --field-selector=status.phase=Running -l deployment =mongodb-[username] -o 'jsonpath={range .items[*].status.containerStatuses[*]}{.name}{"\t"}{.ready}{"\n"}{end}'
204
+ # using watch (please note that MongoDB is deployed as a deployment type object)
205
+ oc -n [-dev] get pods --field-selector=status.phase=Running -l deploymentconfig =mongodb-[username] -o 'jsonpath={range .items[*].status.containerStatuses[*]}{.name}{"\t"}{.ready}{"\n"}{end}'
206
206
```
207
207
You can safely ignore repeated messages as such:
208
208
```
Original file line number Diff line number Diff line change @@ -53,22 +53,21 @@ items:
53
53
pods: "10"
54
54
scopes:
55
55
- BestEffort
56
-
57
- - apiVersion: v1
58
- kind: LimitRange
59
- metadata:
60
- name: default-limits
61
- namespace: "{{ NAMESPACE }}"
62
- labels:
63
- environment: "{{ ENVIRONMENT }}"
64
- name: "{{ LICENCE_PLATE }}"
65
- provisioned-by: 101-provisioner-playbook
66
- spec:
67
- limits:
68
- - default:
69
- cpu: 250m
70
- memory: 1Gi
71
- defaultRequest:
72
- cpu: 50m
73
- memory: 256Mi
74
- type: Container
56
+ - apiVersion: v1
57
+ kind: LimitRange
58
+ metadata:
59
+ name: default-limits
60
+ namespace: "{{ NAMESPACE }}"
61
+ labels:
62
+ environment: "{{ ENVIRONMENT }}"
63
+ name: "{{ LICENCE_PLATE }}"
64
+ provisioned-by: 101-provisioner-playbook
65
+ spec:
66
+ limits:
67
+ - default:
68
+ cpu: 250m
69
+ memory: 1Gi
70
+ defaultRequest:
71
+ cpu: 50m
72
+ memory: 256Mi
73
+ type: Container
Original file line number Diff line number Diff line change 1
1
action : null
2
2
instructor_list :
3
3
- patricksimonian@github
4
- - shellyhan @github
4
+ - shellyxuehan @github
5
5
environments :
6
6
- tools
7
7
- dev
You can’t perform that action at this time.
0 commit comments