-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #301 from bcgov/new-tag
adding prod route and service templates, changing application health …
- Loading branch information
Showing
4 changed files
with
127 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
apiVersion: template.openshift.io/v1 | ||
kind: Template | ||
metadata: | ||
name: ${APPLICATION_NAME}-template | ||
labels: | ||
template: ${APPLICATION_NAME}-template | ||
objects: | ||
- kind: Route | ||
apiVersion: route.openshift.io/v1 | ||
metadata: | ||
name: ${APPLICATION_NAME}-${IMAGE_TAG} | ||
namespace: ${LICENSE_PLATE}-${ENVIRONMENT} | ||
spec: | ||
host: ${APPLICATION_NAME}-${IMAGE_TAG}-${ENVIRONMENT}.apps.silver.devops.gov.bc.ca | ||
path: /api/v1/api-docs | ||
to: | ||
kind: Service | ||
name: ${APPLICATION_NAME} | ||
weight: 100 | ||
port: | ||
targetPort: 3000-tcp | ||
tls: | ||
termination: edge | ||
insecureEdgeTerminationPolicy: None | ||
wildcardPolicy: None | ||
status: | ||
ingress: | ||
- host: ${APPLICATION_NAME}-${IMAGE_TAG}-${ENVIRONMENT}.apps.silver.devops.gov.bc.ca | ||
routerName: default | ||
conditions: | ||
- type: Admitted | ||
status: 'True' | ||
lastTransitionTime: '2022-06-28T18:13:10Z' | ||
wildcardPolicy: None | ||
routerCanonicalHostname: router-default.apps.silver.devops.gov.bc.ca | ||
|
||
parameters: | ||
- description: Application Name | ||
displayName: AppName | ||
name: APPLICATION_NAME | ||
required: true | ||
value: dpia-api | ||
- description: Environment | ||
displayName: Environment | ||
name: ENVIRONMENT | ||
required: true | ||
value: dev | ||
- description: License Plate | ||
displayName: License Plate | ||
name: LICENSE_PLATE | ||
required: true | ||
value: b996e6 | ||
- description: Image Tag | ||
displayName: Image Tag | ||
required: true | ||
name: IMAGE_TAG | ||
value: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
apiVersion: template.openshift.io/v1 | ||
kind: Template | ||
metadata: | ||
name: ${APPLICATION_NAME}-template | ||
labels: | ||
template: ${APPLICATION_NAME}-template | ||
objects: | ||
- apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: ${APPLICATION_NAME}-${IMAGE_TAG} | ||
namespace: ${LICENSE_PLATE}-${ENVIRONMENT} | ||
spec: | ||
selector: | ||
app: ${APPLICATION_NAME} | ||
- name: 3000-tcp | ||
protocol: TCP | ||
port: 3000 | ||
targetPort: 3000 | ||
|
||
parameters: | ||
- description: Application Name | ||
displayName: AppName | ||
name: APPLICATION_NAME | ||
required: true | ||
value: dpia-api | ||
- description: Environment | ||
displayName: Environment | ||
name: ENVIRONMENT | ||
required: true | ||
value: dev | ||
- description: License Plate | ||
displayName: License Plate | ||
name: LICENSE_PLATE | ||
required: true | ||
value: b996e6 | ||
- description: Image Tag | ||
displayName: Image Tag | ||
required: true | ||
name: IMAGE_TAG | ||
value: latest |