Skip to content

Commit

Permalink
Update demo deployment yaml and add documentation for demo deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Mar 25, 2024
1 parent f8d6ee4 commit a017321
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 12 deletions.
24 changes: 21 additions & 3 deletions deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ ASC_BROWSER_GA_TRACKING_ID=
BipEx_BROWSER_GA_TRACKING_ID=
Epi25_BROWSER_GA_TRACKING_ID=
SCHEMA_BROWSER_GA_TRACKING_ID=
IBD_BROWSER_GA_TRACKING_ID=
EOF
```

Expand Down Expand Up @@ -180,7 +181,24 @@ To update both the production front/backend and the data at the same time, modif
- Expose deployment with an [Ingress](https://cloud.google.com/kubernetes-engine/docs/concepts/ingress).

```
kubectl apply -f manifests/service.yaml
kubectl apply -f manifests/frontendconfig.yaml
kubectl apply -f manifests/ingress.yaml
kubectl apply -f deployment/manifests/service.yaml
kubectl apply -f deployment/manifests/frontendconfig.yaml
kubectl apply -f deployment/manifests/ingress.yaml
```


## Creating a Demo Deployment

- Create deployment.

```
kubectl apply -f deployment/manifests/demo/demo_deployment.yaml
```

- Expose deployment with an [Ingress](https://cloud.google.com/kubernetes-engine/docs/concepts/ingress).

```
kubectl apply -f deployment/manifests/demo/demo_service.yaml
kubectl apply -f deployment/manifests/demo/demo_frontendconfig.yaml
kubectl apply -f deployment/manifests/demo/demo_ingress.yaml
```
6 changes: 3 additions & 3 deletions deployment/manifests/demo/demo_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spec:
spec:
containers:
- name: app
image: gcr.io/exac-gnomad/exome-results-browsers
imagePullPulicy: Always
image: gcr.io/exac-gnomad/exome-results-browsers:6c842d4-rg_add_demo_kubernetes_yaml
imagePullPolicy: Always
env:
- name: RESULTS_DATA_DIRECTORY
value: /mnt/disks/erb-data/results
Expand Down Expand Up @@ -48,5 +48,5 @@ spec:
- name: data
gcePersistentDisk:
fsType: ext4
pdName: exome-results-browsers-data-230123-1052-east1c
pdName: exome-results-browsers-data-240207-1325
readOnly: true
2 changes: 1 addition & 1 deletion deployment/manifests/demo/demo_frontendconfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: demo-exome-results-browsers-frontend-config
spec:
redirectToHttps:
enabled: true
enabled: false
10 changes: 5 additions & 5 deletions deployment/manifests/demo/demo_ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ spec:
- http:
paths:
- backend:
service:
name: demo-exome-results-browsers
port:
number: 80
pathType: ImplementationSpecific
service:
name: demo-exome-results-browsers
port:
number: 80
pathType: ImplementationSpecific

0 comments on commit a017321

Please sign in to comment.