Skip to content

Commit

Permalink
add hf token (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
guimou authored Apr 19, 2024
1 parent b9c57b9 commit b1dad13
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bootstrap/ic-shared-llm/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ spec:
value: '3000'
- name: HOSTNAME
value: '0.0.0.0'
- name: HUGGING_FACE_HUB_TOKEN
valueFrom:
secretKeyRef:
name: hftoken
key: token
securityContext:
capabilities:
drop:
Expand Down
1 change: 1 addition & 0 deletions bootstrap/ic-shared-llm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resources:
# wave 0
- namespace.yaml
- fix-odf-config.yaml
- token.yaml
# wave 1
- pvc.yaml
- deployment.yaml
Expand Down
8 changes: 8 additions & 0 deletions bootstrap/ic-shared-llm/token.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: Secret
apiVersion: v1
metadata:
name: hftoken
namespace: ic-shared-llm
data:
token: aGZfV0ZhcVhUYmFBSmJEbmhjamhYYXRORmFteEtvaEdvU0tOTg==
type: Opaque

0 comments on commit b1dad13

Please sign in to comment.