Parameterize the port
This commit is contained in:
parent
edeb0cac21
commit
4a78025e0e
1 changed files with 9 additions and 5 deletions
|
@ -35,7 +35,7 @@ objects:
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
name: ${APP}
|
name: ${APP}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: ${HTTP_PORT}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
triggers:
|
triggers:
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
|
@ -55,10 +55,10 @@ objects:
|
||||||
app: ${APP}
|
app: ${APP}
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: 8080-tcp
|
- name: http
|
||||||
port: 8080
|
port: ${HTTP_PORT}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
targetPort: 8080
|
targetPort: ${HTTP_PORT}
|
||||||
selector:
|
selector:
|
||||||
app: ${APP}
|
app: ${APP}
|
||||||
deploymentconfig: ${APP}
|
deploymentconfig: ${APP}
|
||||||
|
@ -70,7 +70,7 @@ objects:
|
||||||
app: ${APP}
|
app: ${APP}
|
||||||
spec:
|
spec:
|
||||||
port:
|
port:
|
||||||
targetPort: 8080-tcp
|
targetPort: http
|
||||||
to:
|
to:
|
||||||
kind: Service
|
kind: Service
|
||||||
name: ${APP}
|
name: ${APP}
|
||||||
|
@ -94,6 +94,10 @@ parameters:
|
||||||
displayName: Replicas
|
displayName: Replicas
|
||||||
name: REPLICAS
|
name: REPLICAS
|
||||||
value: "1"
|
value: "1"
|
||||||
|
- description: The HTTP port.
|
||||||
|
displayName: HTTP port
|
||||||
|
name: HTTP_PORT
|
||||||
|
value: 8080
|
||||||
- description: The size of the storage to reclaim.
|
- description: The size of the storage to reclaim.
|
||||||
displayName: Storage size
|
displayName: Storage size
|
||||||
name: STORAGE_SIZE
|
name: STORAGE_SIZE
|
||||||
|
|
Loading…
Reference in a new issue