-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdeployment.yaml
58 lines (58 loc) · 1.19 KB
/
deployment.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: Secret
metadata:
name: falco-gpt
type: Opaque
stringData:
OPENAI_TOKEN: ${OPENAI_TOKEN}
SLACK_WEBHOOK_URL: ${SLACK_WEBHOOK_URL}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: falco-gpt
spec:
replicas: 1
selector:
matchLabels:
app: falco-gpt
template:
metadata:
labels:
app: falco-gpt
spec:
containers:
- name: falco-gpt
image: furkanturkal/falco-gpt@sha256:b52625f4d2f7c6ac5d38290ce5dee110368caaea2fd6e0c8acf774d405bde60f
envFrom:
- secretRef:
name: falco-gpt
resources:
limits:
cpu: "50m"
memory: "64Mi"
securityContext:
runAsNonRoot: true
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
add:
- NET_BIND_SERVICE
securityContext:
runAsUser: 1000
runAsGroup: 3000
fsGroup: 2000
---
apiVersion: v1
kind: Service
metadata:
name: falco-gpt
spec:
selector:
app: falco-gpt
ports:
- protocol: TCP
port: 8080
targetPort: 8080