-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathk8s.yaml
58 lines (58 loc) · 1.45 KB
/
k8s.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
apiVersion: v1
kind: Namespace
metadata:
name: spotifilter
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spotifilter
namespace: spotifilter
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: spotifilter
template:
metadata:
labels:
app: spotifilter
spec:
containers:
- name: spotifilter
env:
- name: TELEGRAM_USERNAME
valueFrom:
secretKeyRef:
key: TELEGRAM_USERNAME
name: spotifilter
- name: SPOTIPY_CLIENT_ID
valueFrom:
secretKeyRef:
key: SPOTIPY_CLIENT_ID
name: spotifilter
- name: SPOTIPY_CLIENT_SECRET
valueFrom:
secretKeyRef:
key: SPOTIPY_CLIENT_SECRET
name: spotifilter
- name: GENIUS_API_KEY
valueFrom:
secretKeyRef:
key: GENIUS_API_KEY
name: spotifilter
- name: OPENAI_API_KEY
valueFrom:
secretKeyRef:
key: OPENAI_API_KEY
name: spotifilter
- name: TELEGRAM_TOKEN
valueFrom:
secretKeyRef:
key: TELEGRAM_TOKEN
name: spotifilter
image: doronkg/spotifilter:latest
imagePullPolicy: Always