File tree Expand file tree Collapse file tree 4 files changed +19
-17
lines changed
Expand file tree Collapse file tree 4 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ spec/reports
1212test /tmp
1313test /version_tmp
1414tmp
15+ .idea
1516
1617. * .swp
1718# YARD artifacts
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ COPY --chown=1001:1001 ./ "${HOME}/app/"
4141
4242# Runtime image
4343FROM base AS production
44- MAINTAINER Alejandro Martinez Ruiz <amr@redhat.com>
4544
4645USER 1001:1001
4746
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ You can use two different backend templates:
66* I just need an echo-api deployed: echo-api-template.yml (uses prebuilt docker images)
77* I want to modify/devel echo-api:
88 1. Go to ../
9- 2. Make your changes on the aplication files (app.json, config.ru, echo_api.rb).
9+ 2. Make your changes on the application files (app.json, config.ru, echo_api.rb).
1010 3. make update
1111
1212## Downloading the CLI
Original file line number Diff line number Diff line change @@ -7,65 +7,68 @@ metadata:
77 description : " 3scale Echo API"
88 iconClass : " icon-ruby"
99 tags : " api,echo-api,3scale"
10+ labels :
11+ app : echo-api
1012
1113objects :
1214
13- - apiVersion : apps.openshift.io /v1
14- kind : DeploymentConfig
15+ - apiVersion : apps/v1
16+ kind : Deployment
1517 metadata :
1618 name : echo-api
19+ labels :
20+ app : echo-api
1721 spec :
1822 replicas : 1
1923 selector :
20- deploymentconfig : echo-api
24+ matchLabels :
25+ app : echo-api
2126 strategy :
2227 rollingParams :
2328 intervalSeconds : 1
2429 maxSurge : 25%
2530 maxUnavailable : 25%
2631 timeoutSeconds : 180
2732 updatePeriodSeconds : 1
28- type : Rolling
33+ type : RollingUpdate
2934 template :
3035 metadata :
3136 labels :
32- deploymentconfig : echo-api
37+ app : echo-api
3338 spec :
3439 containers :
3540 - image : ${ECHOAPI_IMAGE}
3641 imagePullPolicy : Always
3742 name : echo-api
3843 livenessProbe :
3944 tcpSocket :
40- port : 9292
45+ port : 9292
4146 initialDelaySeconds : 10
4247 timeoutSeconds : 1
4348 readinessProbe :
4449 httpGet :
45- path : /test/200
50+ path : /test/200
4651 port : 9292
4752 initialDelaySeconds : 15
4853 timeoutSeconds : 1
4954 ports :
50- - containerPort : 9292
55+ - containerPort : 9292
5156 protocol : TCP
52- imagePullSecrets :
53- - name : quay-auth
54- triggers :
55- - type : ConfigChange
5657
5758- apiVersion : v1
5859 kind : Service
5960 metadata :
6061 name : echo-api
62+ labels :
63+ app : echo-api
6164 spec :
6265 ports :
6366 - name : echo-api-port
6467 port : 80
6568 protocol : TCP
6669 targetPort : 9292
6770 selector :
68- deploymentconfig : echo-api
71+ app : echo-api
6972
7073- apiVersion : route.openshift.io/v1
7174 kind : Route
@@ -74,7 +77,7 @@ objects:
7477 labels :
7578 app : echo-api
7679 spec :
77- host : ${ECHOAPI_HOST}
80+ host : ${ECHOAPI_HOST}
7881 to :
7982 kind : Service
8083 name : echo-api
@@ -90,7 +93,6 @@ parameters:
9093 value : " quay.io/3scale/echoapi:stable"
9194 required : true
9295
93-
9496- name : ECHOAPI_HOST
9597 description : " Host for the Route Object"
9698 required : true
You can’t perform that action at this time.
0 commit comments