Parameterize the port

This commit is contained in:
Ovidio Mallo 2016-12-16 13:35:41 +01:00
parent edeb0cac21
commit 4a78025e0e

View file

@ -35,7 +35,7 @@ objects:
imagePullPolicy: Always
name: ${APP}
ports:
- containerPort: 8080
- containerPort: ${HTTP_PORT}
protocol: TCP
triggers:
- type: ImageChange
@ -55,10 +55,10 @@ objects:
app: ${APP}
spec:
ports:
- name: 8080-tcp
port: 8080
- name: http
port: ${HTTP_PORT}
protocol: TCP
targetPort: 8080
targetPort: ${HTTP_PORT}
selector:
app: ${APP}
deploymentconfig: ${APP}
@ -70,7 +70,7 @@ objects:
app: ${APP}
spec:
port:
targetPort: 8080-tcp
targetPort: http
to:
kind: Service
name: ${APP}
@ -94,6 +94,10 @@ parameters:
displayName: Replicas
name: REPLICAS
value: "1"
- description: The HTTP port.
displayName: HTTP port
name: HTTP_PORT
value: 8080
- description: The size of the storage to reclaim.
displayName: Storage size
name: STORAGE_SIZE