Created
January 27, 2021 22:57
-
-
Save kleimkuhler/ae14e3e03ed791606e7450a78b5391bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: fast-1 | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: terminus | |
template: | |
metadata: | |
labels: | |
app: terminus | |
spec: | |
containers: | |
- name: fast | |
image: buoyantio/bb:v0.0.6 | |
args: | |
- terminus | |
- "--h1-server-port=8080" | |
- "--response-text=fast-1" | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: terminus-svc | |
labels: | |
app: terminus-svc | |
spec: | |
selector: | |
app: terminus | |
ports: | |
- name: http | |
port: 8080 | |
targetPort: 8080 | |
--- | |
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: slow-cooker | |
spec: | |
template: | |
metadata: | |
labels: | |
app: slow-cooker | |
spec: | |
containers: | |
- name: slow-cooker | |
image: buoyantio/slow_cooker:1.3.0 | |
command: | |
- "/bin/sh" | |
args: | |
- "-c" | |
- | | |
sleep 15 # wait for pods to start | |
/slow_cooker/slow_cooker -qps 10 -metric-addr 0.0.0.0:9999 http://terminus-svc:8080 | |
ports: | |
- containerPort: 9999 | |
restartPolicy: OnFailure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment