Skip to content

Commit 43bfaf5

Browse files
committed
feat: introduce new portkey agent infrustructure, update docker image version to 3.11
1 parent f2a9d27 commit 43bfaf5

13 files changed

Lines changed: 349 additions & 423 deletions

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.11'
1919

2020
- name: Install dependencies
2121
run: |

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Python
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: '3.9'
18+
python-version: '3.11'
1919

2020
- name: Install dependencies
2121
run: |
@@ -31,4 +31,4 @@ jobs:
3131
uses: MishaKav/pytest-coverage-comment@main
3232
with:
3333
pytest-coverage-path: ./pytest-coverage.txt
34-
junitxml-path: ./pytest.xml
34+
junitxml-path: ./pytest.xml

.kube/deployment-openai.yaml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.kube/deployment-valuematch.yaml

Lines changed: 0 additions & 182 deletions
This file was deleted.

.kube/deployment.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ spec:
3535
containerPort: 3000
3636
resources:
3737
requests:
38-
cpu: "8000m"
39-
memory: "50Gi"
38+
cpu: "4"
39+
memory: "32Gi"
40+
limits:
41+
cpu: "16"
42+
memory: "64Gi"
4043
env:
41-
- name: OPENAI_API_KEY
42-
valueFrom:
43-
secretKeyRef:
44-
name: bdiviz-env-var
45-
key: openai_api_key
4644
- name: LANGCHAIN_API_KEY
4745
valueFrom:
4846
secretKeyRef:
@@ -53,8 +51,8 @@ spec:
5351
secretKeyRef:
5452
name: bdiviz-env-var
5553
key: portkey_api_key
56-
- name: PROVIDER_API_KEY
54+
- name: PORTKEY_MODEL
5755
valueFrom:
5856
secretKeyRef:
5957
name: bdiviz-env-var
60-
key: provider_api_key
58+
key: portkey_model

.kube/ingress.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ metadata:
1212
haproxy.org/ssl-redirect-code: "301"
1313
# Instruct HAProxy to provide the end-user's address in the 'X-Forwarded-For' header
1414
haproxy.org/forwarded-for: "true"
15-
haproxy.org/auth-type: basic-auth
16-
haproxy.org/auth-secret: bdiviz-ingress-auth
15+
# haproxy.org/auth-type: basic-auth
16+
# haproxy.org/auth-secret: bdiviz-ingress-auth
1717
hpc.nyu.edu/access: "public"
1818
spec:
1919
rules:
@@ -27,43 +27,43 @@ spec:
2727
name: bdiviz
2828
port:
2929
number: 3000
30-
- host: bdiviz-openai.users.hsrn.nyu.edu
31-
http:
32-
paths:
33-
- path: /
34-
pathType: Prefix
35-
backend:
36-
service:
37-
name: bdiviz-openai
38-
port:
39-
number: 3000
40-
- host: bdiviz-valuematch.users.hsrn.nyu.edu
41-
http:
42-
paths:
43-
- path: /
44-
pathType: Prefix
45-
backend:
46-
service:
47-
name: bdiviz-valuematch
48-
port:
49-
number: 3000
50-
- host: bdiviz-valuematch-a.users.hsrn.nyu.edu
51-
http:
52-
paths:
53-
- path: /
54-
pathType: Prefix
55-
backend:
56-
service:
57-
name: bdiviz-valuematch-backup-a
58-
port:
59-
number: 3000
60-
- host: bdiviz-valuematch-b.users.hsrn.nyu.edu
61-
http:
62-
paths:
63-
- path: /
64-
pathType: Prefix
65-
backend:
66-
service:
67-
name: bdiviz-valuematch-backup-b
68-
port:
69-
number: 3000
30+
# - host: bdiviz-openai.users.hsrn.nyu.edu
31+
# http:
32+
# paths:
33+
# - path: /
34+
# pathType: Prefix
35+
# backend:
36+
# service:
37+
# name: bdiviz-openai
38+
# port:
39+
# number: 3000
40+
# - host: bdiviz-valuematch.users.hsrn.nyu.edu
41+
# http:
42+
# paths:
43+
# - path: /
44+
# pathType: Prefix
45+
# backend:
46+
# service:
47+
# name: bdiviz-valuematch
48+
# port:
49+
# number: 3000
50+
# - host: bdiviz-valuematch-a.users.hsrn.nyu.edu
51+
# http:
52+
# paths:
53+
# - path: /
54+
# pathType: Prefix
55+
# backend:
56+
# service:
57+
# name: bdiviz-valuematch-backup-a
58+
# port:
59+
# number: 3000
60+
# - host: bdiviz-valuematch-b.users.hsrn.nyu.edu
61+
# http:
62+
# paths:
63+
# - path: /
64+
# pathType: Prefix
65+
# backend:
66+
# service:
67+
# name: bdiviz-valuematch-backup-b
68+
# port:
69+
# number: 3000

0 commit comments

Comments
 (0)