Skip to content

Commit

Permalink
Add env variables for minio (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops authored Jun 16, 2020
1 parent 07ee723 commit d0e7fca
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
17 changes: 17 additions & 0 deletions openshift/templates/backend/backend-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,23 @@ objects:
configMapKeyRef:
name: ${NAME}-config${SUFFIX}
key: env_name
- name: MINIO_USE_SSL
value: 'true'
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: ${NAME}-minio${SUFFIX}
key: MINIO_ACCESS_KEY
- name: MINIO_SECRET_KEY
valueFrom:
secretKeyRef:
name: ${NAME}-minio${SUFFIX}
key: MINIO_SECRET_KEY
- name: MINIO_ENDPOINT
valueFrom:
configMapKeyRef:
name: ${NAME}-config${SUFFIX}
key: minio_endpoint
livenessProbe:
failureThreshold: 30
tcpSocket:
Expand Down
2 changes: 1 addition & 1 deletion openshift/templates/config/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ objects:
keycloak_sa_client_id: zeva-django-sa
keycloak_sa_realm: ${KEYCLOAK_REALM}
keycloak_url: https://${SSO_NAME}.pathfinder.gov.bc.ca/auth
minio_endpoint: docs-tbiwaq-${ENV_NAME}.pathfinder.gov.bc.ca:443
minio_endpoint: zeva-minio${SUFFIX}.pathfinder.gov.bc.ca
postgresql_service_host: patroni-master${SUFFIX}.tbiwaq-${ENV_NAME}.svc.cluster.local
postgresql_service_port: '5432'
rabbitmq_enabled: 'False'
Expand Down
22 changes: 22 additions & 0 deletions openshift/templates/minio/minio-dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,28 @@ objects:
sessionAffinity: None
status:
loadBalancer: {}
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
creationTimestamp: null
labels:
name: minio
app: zeva
role: minio
env: ${ENV_NAME}
name: ${NAME}-minio${SUFFIX}
spec:
host: ${NAME}-minio${SUFFIX}.pathfinder.gov.bc.ca
port:
targetPort: 9000-tcp
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: ${NAME}-minio${SUFFIX}
weight: 100
wildcardPolicy: None
- kind: DeploymentConfig
apiVersion: v1
metadata:
Expand Down

0 comments on commit d0e7fca

Please sign in to comment.