Skip to content

Commit 27490cc

Browse files
committed
Adding rf/gompertz dashboard
1 parent 415e2bf commit 27490cc

File tree

3 files changed

+37
-3
lines changed

3 files changed

+37
-3
lines changed

deployments/k8s/pfr/r-models-deployment.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
containers:
2121
- image: ghcr.io/plant-food-research-open/shiny-rpipelines:0.1.0
2222
imagePullPolicy: Always
23-
name: shiny
23+
name: shiny-random-forest
2424
ports:
2525
- containerPort: 3838
2626
protocol: TCP
@@ -37,6 +37,25 @@ spec:
3737
value: random_forest,gompertz
3838
- name: MODEL_ENDPOINTS
3939
value: http://r-pipelines-models:8089,http://r-pipelines-models:8090
40+
- image: ghcr.io/plant-food-research-open/shiny-rpipelines:0.1.0
41+
imagePullPolicy: Always
42+
name: shiny-gompertz
43+
ports:
44+
- containerPort: 3839
45+
protocol: TCP
46+
args:
47+
- R
48+
- -e
49+
- shiny::runApp('/app', launch.browser = FALSE, host = '0.0.0.0', port = 3839)
50+
env:
51+
- name: AWS_ACCESS_KEY_ID
52+
value: user
53+
- name: AWS_SECRET_ACCESS_KEY
54+
value: password
55+
- name: MODEL_CHOICES
56+
value: gompertz,random_forest
57+
- name: MODEL_ENDPOINTS
58+
value: http://r-pipelines-models:8090,http://r-pipelines-models:8089
4059
- image: ghcr.io/plant-food-research-open/shiny-rpipelines:0.1.0
4160
imagePullPolicy: Always
4261
name: random-forest

deployments/k8s/pfr/r-models-ingress.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
app: r-pipelines
1818
ingressClassName: nginx
1919
rules:
20-
- host: shiny.r-pipelines.k8s.dev.pfr.co.nz
20+
- host: shiny-random-forest.r-pipelines.k8s.dev.pfr.co.nz
2121
http:
2222
paths:
2323
- backend:
@@ -27,6 +27,16 @@ spec:
2727
name: port-3838
2828
path: /
2929
pathType: Prefix
30+
- host: shiny-gompertz.r-pipelines.k8s.dev.pfr.co.nz
31+
http:
32+
paths:
33+
- backend:
34+
service:
35+
name: r-pipelines-models
36+
port:
37+
name: port-3839
38+
path: /
39+
pathType: Prefix
3040
- host: random-forest.model.r-pipelines.k8s.dev.pfr.co.nz
3141
http:
3242
paths:
@@ -49,7 +59,8 @@ spec:
4959
pathType: Prefix
5060
tls:
5161
- hosts:
52-
- "shiny.r-pipelines.k8s.dev.pfr.co.nz"
62+
- "shiny-random-forest.r-pipelines.k8s.dev.pfr.co.nz"
63+
- "shiny-gompertz.r-pipelines.k8s.dev.pfr.co.nz"
5364
- "random-forest.model.r-pipelines.k8s.dev.pfr.co.nz"
5465
- "gompertz.model.r-pipelines.k8s.dev.pfr.co.nz"
5566
secretName: r-pipelines-models-tls-secret

deployments/k8s/pfr/r-models-services.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ spec:
1818
protocol: TCP
1919
port: 3838
2020
targetPort: 3838
21+
- name: port-3839
22+
protocol: TCP
23+
port: 3839
24+
targetPort: 3839
2125
- name: port-8089
2226
protocol: TCP
2327
port: 8089

0 commit comments

Comments
 (0)