-
-
Save siggy/3e353bfd086f167895c723282dacf065 to your computer and use it in GitHub Desktop.
lifecycle.localtest.svc.yml
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
# | |
# Conduit lifecycle test configuration | |
# | |
# slow_cooker -> | |
# HTTP 1.1 -> | |
# bb point-to-point -> | |
# gRPC -> | |
# bb terminus | |
# | |
kind: Namespace | |
apiVersion: v1 | |
metadata: | |
name: lifecycle | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: bb-terminus | |
namespace: lifecycle | |
spec: | |
clusterIP: None | |
selector: | |
app: bb-localtest | |
ports: | |
- name: bb-term-grpc | |
port: 9090 | |
targetPort: 9090 | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
name: bb-p2p | |
namespace: lifecycle | |
spec: | |
clusterIP: None | |
selector: | |
app: bb-localtest | |
ports: | |
- name: bb-p2p-http1 | |
port: 8080 | |
targetPort: 8080 | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: bb-localtest | |
name: bb-localtest | |
namespace: lifecycle | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: bb-localtest | |
spec: | |
containers: | |
- image: buoyantio/bb:v0.0.3 | |
imagePullPolicy: IfNotPresent | |
name: bb-terminus | |
command: | |
- "/bin/bash" | |
args: | |
- "-c" | |
- | | |
exec \ | |
/out/bb terminus \ | |
--grpc-server-port=9090 \ | |
--response-text=BANANA \ | |
--terminate-after=$(shuf -i 550-650 -n1) # 10 qps * 10 concurrency * 60 seconds / 10 replicas == 600 | |
ports: | |
- containerPort: 9090 | |
name: bb-term-grpc | |
- image: buoyantio/bb:v0.0.3 | |
imagePullPolicy: IfNotPresent | |
name: bb-p2p | |
command: | |
- "/bin/bash" | |
args: | |
- "-c" | |
- | | |
exec \ | |
/out/bb point-to-point-channel \ | |
--grpc-downstream-server=bb-terminus:9090 \ | |
--h1-server-port=8080 | |
ports: | |
- containerPort: 8080 | |
name: bb-p2p-http1 | |
- image: buoyantio/slow_cooker:1.1.0 | |
imagePullPolicy: IfNotPresent | |
name: slow-cooker | |
command: | |
- "/bin/bash" | |
args: | |
- "-c" | |
- | | |
sleep 30 # wait for pods to start | |
slow_cooker \ | |
-qps 10 \ | |
-concurrency 10 \ | |
-interval 30s \ | |
-metric-addr 0.0.0.0:9990 \ | |
http://bb-p2p:8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment