Skip to content

Commit

Permalink
updated coolstore template
Browse files Browse the repository at this point in the history
  • Loading branch information
siamaksade committed Oct 10, 2017
1 parent a670f09 commit a1749b2
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions openshift/coolstore-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ objects:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: COOLSTORE_GW_ENDPOINT
value: http://gw-${HOSTNAME_SUFFIX}
- name: COOLSTORE_GW_SERVICE
value: gw
- name: HOSTNAME_HTTP
value: web-ui:8080
image: web-ui
Expand Down Expand Up @@ -159,7 +159,6 @@ objects:
application: coolstore
component: web-ui
spec:
host: web-ui-${HOSTNAME_SUFFIX}
to:
kind: Service
name: web-ui
Expand Down Expand Up @@ -234,12 +233,6 @@ objects:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: CART_ENDPOINT
value: cart-${HOSTNAME_SUFFIX}
- name: INVENTORY_ENDPOINT
value: inventory-${HOSTNAME_SUFFIX}
- name: CATALOG_ENDPOINT
value: catalog-${HOSTNAME_SUFFIX}
image: library/coolstore-gw:latest
livenessProbe:
httpGet:
Expand Down Expand Up @@ -280,7 +273,7 @@ objects:
application: coolstore
component: coolstore-gw
hystrix.enabled: "true"
name: coolstore-gw
name: gw
spec:
ports:
- port: 8080
Expand All @@ -291,15 +284,14 @@ objects:
- apiVersion: v1
kind: Route
metadata:
name: coolstore-gw
name: gw
labels:
application: coolstore
component: coolstore-gw
spec:
host: gw-${HOSTNAME_SUFFIX}
to:
kind: Service
name: coolstore-gw
name: gw
# Catalog Service
- apiVersion: v1
kind: ImageStream
Expand Down Expand Up @@ -456,7 +448,6 @@ objects:
component: catalog
name: catalog
spec:
host: catalog-${HOSTNAME_SUFFIX}
to:
kind: Service
name: catalog
Expand Down Expand Up @@ -723,7 +714,6 @@ objects:
component: cart
name: cart
spec:
host: cart-${HOSTNAME_SUFFIX}
to:
kind: Service
name: cart
Expand Down Expand Up @@ -904,7 +894,6 @@ objects:
component: inventory
name: inventory
spec:
host: inventory-${HOSTNAME_SUFFIX}
to:
kind: Service
name: inventory
Expand Down Expand Up @@ -1001,18 +990,14 @@ parameters:
displayName: Git source repository
name: GIT_URI
required: true
value: https://github.com/siamaksade/devops-labs-coolstore.git
value: https://github.com/openshift-roadshow/devops-workshop-labs.git
- displayName: Git branch/tag reference
name: GIT_REF
required: true
value: master
- description: Maven mirror url. If nexus is deployed locally, use nexus url (e.g. http://nexus.ci:8081/content/groups/public/)
displayName: Maven mirror url
name: MAVEN_MIRROR_URL
- description: Hostname suffix used for routes e.g. cart-<HOSTNAME_SUFFIX> inventory-<HOSTNAME_SUFFIX>
displayName: Hostname Suffix
name: HOSTNAME_SUFFIX
required: true
- description: Catalog Service database user name
displayName: Catalog Database Username
from: user[a-zA-Z0-9]{3}
Expand Down

0 comments on commit a1749b2

Please sign in to comment.