Skip to content

Commit

Permalink
feat: add secret to k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
irony committed Sep 18, 2024
1 parent 3770bc0 commit 1b86913
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ web-build/

# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*
.env
17 changes: 17 additions & 0 deletions k8s/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,23 @@ spec:
containers:
- name: foodmarket-api
image: ghcr.io/iteam1337/foodmarket:main
env:
#// pick from .env.example
- name: SIGNICAT_CLIENT_ID
valueFrom:
secretKeyRef:
name: signicat
key: SIGNICAT_CLIENT_ID
- name: SIGNICAT_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: signicat
key: SIGNICAT_CLIENT_SECRET
- name: SIGNICAT_API_URL
valueFrom:
secretKeyRef:
name: signicat
key: SIGNICAT_API_URL
resources:
requests:
memory: '256Mi'
Expand Down

0 comments on commit 1b86913

Please sign in to comment.