This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
k8s-descriptor.yaml
70 lines (70 loc) · 1.89 KB
/
k8s-descriptor.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
59
60
61
62
63
64
65
66
67
68
69
70
# The secret definition is totally optional - just ensure that it exists
apiVersion: v1
kind: Secret
metadata:
name: accessbot-secret
type: Opaque
stringData:
SDM_API_ACCESS_KEY: sdm-api-access-key
SDM_API_SECRET_KEY: sdm-api-secret-key
SLACK_APP_TOKEN: slack-app-token
SLACK_BOT_TOKEN: slack-bot-token
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: accessbot-deployment
spec:
selector:
matchLabels:
app: accessbot
replicas: 1
template:
metadata:
labels:
app: accessbot
spec:
containers:
- name: accessbot
image: public.ecr.aws/strongdm/accessbot:latest
startupProbe:
httpGet:
host: localhost
port: 3141
path: /health-check
failureThreshold: 30
periodSeconds: 10
livenessProbe:
httpGet:
host: localhost
port: 3141
path: /health-check
periodSeconds: 5
ports:
- containerPort: 3141
hostPort: 3141
env:
- name: SDM_ADMINS
value: "@nickname1 @nickname2"
- name: SDM_API_ACCESS_KEY
valueFrom:
secretKeyRef:
name: accessbot-secret
key: SDM_API_ACCESS_KEY
- name: SDM_API_SECRET_KEY
valueFrom:
secretKeyRef:
name: accessbot-secret
key: SDM_API_SECRET_KEY
- name: SDM_BOT_PLATFORM
value: "slack"
- name: SLACK_APP_TOKEN
valueFrom:
secretKeyRef:
name: accessbot-secret
key: SLACK_APP_TOKEN
- name: SLACK_BOT_TOKEN
valueFrom:
secretKeyRef:
name: accessbot-secret
key: SLACK_BOT_TOKEN