Skip to content

Commit

Permalink
Added TLS and volume mounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
weskubo-cgi authored and weskubo-cgi committed Sep 25, 2023
1 parent ca70ba8 commit 1fac385
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
6 changes: 3 additions & 3 deletions tools/openshift/backend.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ objects:
path: /api
port:
targetPort: 8080-tcp
# tls:
# insecureEdgeTerminationPolicy: Redirect
# termination: edge
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
to:
kind: Service
name: '${APP_NAME}-backend'
Expand Down
31 changes: 17 additions & 14 deletions tools/openshift/frontend.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ objects:
containers:
- image: image-registry.openshift-image-registry.svc:5000/${NAMESPACE}/${REPO_NAME}-frontend-${BRANCH}:${TAG}
imagePullPolicy: Always
# volumeMounts:
# - name: tls-certs
# mountPath: '/etc/tls-certs'
# readOnly: true
# - name: config-env
# mountPath: '/srv/js/config'
volumeMounts:
# - name: tls-certs
# mountPath: '/etc/tls-certs'
# readOnly: true
- name: config-env
mountPath: '/srv/js/config'
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down Expand Up @@ -71,13 +71,13 @@ objects:
limits:
cpu: '${MAX_CPU}'
memory: '${MAX_MEM}'
# volumes:
# - name: tls-certs
# secret:
# secretName: ofm-frontend-cert
# - name: config-env
# configMap:
# name: ofm-frontend-config-map
volumes:
# - name: tls-certs
# secret:
# secretName: ofm-frontend-cert
- name: config-env
configMap:
name: ofm-frontend-config-map
test: false
triggers:
- type: ConfigChange
Expand Down Expand Up @@ -115,6 +115,9 @@ objects:
weight: 100
port:
targetPort: 2015-tcp
tls:
termination: edge
insecureEdgeTerminationPolicy: Redirect
wildcardPolicy: None
- apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
Expand Down Expand Up @@ -180,4 +183,4 @@ parameters:
required: false
- name: PRIVATE_KEY
description: The private key
required: false
required: false

0 comments on commit 1fac385

Please sign in to comment.