Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix up grip service so that it can be passed to sower #67

Merged
merged 5 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions helm/fhir-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "fhir-server.fullname" . }}
name: fhir-server-deployment
labels:
{{- include "fhir-server.labels" . | nindent 4 }}
spec:
Expand Down Expand Up @@ -49,7 +49,6 @@ spec:
path: /_status
port: http
initialDelaySeconds: 30

resources:
{{- toYaml .Values.resources | nindent 12 }}
command:
Expand Down
11 changes: 10 additions & 1 deletion helm/grip/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: local-grip
name: grip-deployment
quinnwai marked this conversation as resolved.
Show resolved Hide resolved
labels:
{{- include "grip.labels" . | nindent 4 }}
spec:
Expand All @@ -27,12 +27,21 @@ spec:
serviceAccountName: {{ include "grip.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
- name: mongo-config-volume
configMap:
name: grip-values
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
volumeMounts:
- name: mongo-config-volume
mountPath: /data/mongo.yml
subPath: mongoConfig
readOnly: true
ports:
- name: http
containerPort: {{ .Values.service.port }}
Expand Down
8 changes: 8 additions & 0 deletions helm/grip/templates/grip-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: grip-values
data:
serviceName: {{ .Values.serviceName | quote }}
mongoConfig: |-
{{ toYaml .Values.mongoConfig| nindent 4}}
5 changes: 2 additions & 3 deletions helm/grip/templates/post-install.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: batch/v1
kind: Job
metadata:
name: grip-mongo-initdb
name: grip-initdb
spec:
backoffLimit: 10
template:
Expand All @@ -19,6 +19,5 @@ spec:
args:
- "-c"
- |
apk add --no-cache curl && \
curl -X POST http://local-grip:8201/v1/graph/CALIPER
apk add --no-cache curl && sleep 10 && curl -X POST 'http://{{ .Values.serviceName }}:8201/v1/graph/CALIPER'
restartPolicy: OnFailure
2 changes: 1 addition & 1 deletion helm/grip/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: local-grip
name: {{ .Values.serviceName}}
labels:
{{- include "grip.labels" . | nindent 4 }}
spec:
Expand Down
1 change: 1 addition & 0 deletions helm/grip/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Declare variables to be passed into your templates.

replicaCount: 1
serviceName: grip-service

image:
repository: quay.io/ohsu-comp-bio/grip-caliper
Expand Down
14 changes: 7 additions & 7 deletions helm/mongodb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ global:
nameOverride: ""
## @param fullnameOverride String to fully override mongodb.fullname template
##
fullnameOverride: "mongodb-deployment"
fullnameOverride: "mongodb"
## @param namespaceOverride String to fully override common.names.namespace
##
namespaceOverride: ""
Expand Down Expand Up @@ -122,11 +122,11 @@ image:
repository: zcube/bitnami-compat-mongodb
tag: 6.0.5-debian-11
digest: ""
#image:
#registry: docker.io
#repository: bitnami/mongodb
#tag: 6.0.8-debian-11-r12
#digest: ""
# image:
# registry: docker.io
# repository: bitnami/mongodb
# tag: 6.0.8-debian-11-r12
# digest: ""
## Specify a imagePullPolicy
## ref: https://kubernetes.io/docs/user-guide/images/#pre-pulling-images
##
Expand Down Expand Up @@ -721,7 +721,7 @@ pdb:
service:
## @param service.nameOverride MongoDB(®) service name
##
nameOverride: ""
nameOverride: "mongodb-service"
## @param service.type Kubernetes Service type (only for standalone architecture)
##
type: ClusterIP
Expand Down
10 changes: 10 additions & 0 deletions helm/revproxy/gen3.nginx.conf/fhir-server-service.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
location /Bundle {
proxy_connect_timeout 600s;
proxy_send_timeout 600s;
proxy_read_timeout 600s;
send_timeout 600s;

set $upstream http://fhir-server-service.$namespace.svc.cluster.local:8000;
rewrite ^/Bundle/(.*) /$1 break;
proxy_pass $upstream;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ location /grip/reader {
send_timeout 600s;

rewrite ^/grip/(.*) /$1 break;
proxy_pass http://local-grip.$namespace.svc.cluster.local:8201/reader/api;
proxy_pass http://grip-service.$namespace.svc.cluster.local:8201/reader/api;
}

location /grip/writer/ {
Expand All @@ -15,5 +15,5 @@ location /grip/writer/ {
send_timeout 600s;

rewrite ^/grip/writer/(.*)$ /$1 break;
proxy_pass http://local-grip.$namespace.svc.cluster.local:8201;
proxy_pass http://grip-service.$namespace.svc.cluster.local:8201;
}
15 changes: 0 additions & 15 deletions helm/revproxy/gen3.nginx.conf/local-fhir-server.conf

This file was deleted.

Loading