Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,22 @@ docker run --name runscope-agent \
-e TOKEN=runscope-token \
-e AGENT_ID=agent-id \
-e TEAM_ID=team-id \
mmcc/runscope-agent"
mmcc/runscope-agent
```

I took quite a few cues from the [Docker DataDog agent](https://github.com/DataDog/docker-dd-agent) when building this, so big thanks to [DataDog](http://datadog.com).

## Kubernetes deployment

- Create secret
```
kubectl create secret generic runscope-secret \
--from-literal=token=runscope-token \
--from-literal=agent_id=agent-id \
--from-literal=team_id=team-id
```

- Deploy
```
kubectl apply -f k8s/runscope-agent.yaml
```
44 changes: 44 additions & 0 deletions k8s/runscope-agent.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: runscope-agent
labels:
app: runscope-agent
spec:
replicas: 1
selector:
matchLabels:
app: runscope-agent
template:
metadata:
labels:
app: runscope-agent
spec:
containers:
- name: runscope-agent
image: mmcc/runscope-agent:latest
env:
- name: NAME
value: runscope-agent
- name: AGENT_ID
valueFrom:
secretKeyRef:
name: runscope-secret
key: agent_id
- name: TOKEN
valueFrom:
secretKeyRef:
name: runscope-secret
key: token
- name: TEAM_ID
valueFrom:
secretKeyRef:
name: runscope-secret
key: team_id
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 5m
memory: 5Mi