-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
109 lines (109 loc) · 3.49 KB
/
Copy pathdeployment.yaml
File metadata and controls
109 lines (109 loc) · 3.49 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
apiVersion: apps/v1
kind: Deployment
metadata:
name: social-agent
namespace: rockbot
labels:
app: social-agent
spec:
replicas: 1
selector:
matchLabels:
app: social-agent
template:
metadata:
labels:
app: social-agent
spec:
containers:
- name: social-agent
image: rockylhotka/socialagent:latest
ports:
- containerPort: 8080
env:
- name: ASPNETCORE_ENVIRONMENT
value: "Production"
- name: ASPNETCORE_URLS
value: "http://+:8080"
- name: SocialAgent__DatabaseProvider
value: "PostgreSQL"
- name: ConnectionStrings__SocialAgent
valueFrom:
secretKeyRef:
name: social-agent-secrets
key: connection-string
- name: SocialAgent__Providers__Mastodon__Enabled
valueFrom:
configMapKeyRef:
name: social-agent-config
key: mastodon-enabled
- name: SocialAgent__Providers__Mastodon__InstanceUrl
valueFrom:
configMapKeyRef:
name: social-agent-config
key: mastodon-instance-url
- name: SocialAgent__Providers__Mastodon__AccessToken
valueFrom:
secretKeyRef:
name: social-agent-secrets
key: mastodon-access-token
- name: SocialAgent__Providers__Bluesky__Enabled
valueFrom:
configMapKeyRef:
name: social-agent-config
key: bluesky-enabled
- name: SocialAgent__Providers__Bluesky__Handle
valueFrom:
configMapKeyRef:
name: social-agent-config
key: bluesky-handle
- name: SocialAgent__Providers__Bluesky__AppPassword
valueFrom:
secretKeyRef:
name: social-agent-secrets
key: bluesky-app-password
- name: Authentication__ApiKey
valueFrom:
secretKeyRef:
name: social-agent-secrets
key: api-key
# LLM skill routing (from rockbot-secrets)
- name: LLM__Low__Endpoint
valueFrom:
secretKeyRef:
name: rockbot-secrets
key: LLM__Low__Endpoint
- name: LLM__Low__ApiKey
valueFrom:
secretKeyRef:
name: rockbot-secrets
key: LLM__Low__ApiKey
- name: LLM__Low__ModelId
valueFrom:
secretKeyRef:
name: rockbot-secrets
key: LLM__Low__ModelId
# OpenTelemetry
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: "http://alloy.loki.svc.cluster.local:4317"
- name: OTEL_SERVICE_NAME
value: "social-agent"
livenessProbe:
httpGet:
path: /health/live
port: 8080
initialDelaySeconds: 15
periodSeconds: 30
readinessProbe:
httpGet:
path: /health/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"