forked from ChrisLGardner/go-discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
57 lines (57 loc) · 1.57 KB
/
deploy.yml
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
kind: Pod
apiVersion: v1
metadata:
name: go-discord-bot
spec:
containers:
- name: go-discord-bot
image: halbarad.azurecr.io/go/discord-bot:{{ContainerVersion}}
volumeMounts:
- name: secrets-store
mountPath: "/mnt/secrets-store"
readOnly: true
env:
- name: DISCORD_TOKEN
valueFrom:
secretKeyRef:
name: go-discord-bot
key: go-bot-discord-token
- name: HONEYCOMB_KEY
valueFrom:
secretKeyRef:
name: go-discord-bot
key: go-bot-honeycomb-key
- name: HONEYCOMB_DATASET
valueFrom:
secretKeyRef:
name: go-discord-bot
key: go-bot-honeycomb-dataset
- name: COSMOSDB_URI
valueFrom:
secretKeyRef:
name: go-discord-bot
key: go-bot-cosmosdb-uri
- name: LUNCH_LINK
valueFrom:
secretKeyRef:
name: go-discord-bot
key: go-bot-lunch-link
- name: MEMBER_TIMEZONES
valueFrom:
secretKeyRef:
name: go-discord-bot
key: go-bot-timezones
- name: OPTIMIZELY_KEY
valueFrom:
secretKeyRef:
name: go-discord-bot
key: go-bot-optimizely-key
volumes:
- name: secrets-store
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: azure-kvname
nodePublishSecretRef: # Only required when using service principal mode
name: secrets-store-creds