Skip to content

Instantly share code, notes, and snippets.

@olix0r
Last active July 10, 2019 03:34
Show Gist options
  • Save olix0r/018ed30601d5c50f4c9fca244d3e1751 to your computer and use it in GitHub Desktop.
Save olix0r/018ed30601d5c50f4c9fca244d3e1751 to your computer and use it in GitHub Desktop.
---
kind: Namespace
apiVersion: v1
metadata:
name: strest-new-balance
labels:
app: strest
annotations:
linkerd.io/inject: enabled
# target.strest.svc.cluster.local receives all strest traffic.
---
kind: Service
apiVersion: v1
metadata:
name: target
namespace: strest-new-balance
labels:
app: strest
strest-role: server
spec:
type: ClusterIP
selector:
app: strest
strest-role: server
ports:
- name: strest-grpc
port: 8888
targetPort: 8888
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: strest-server-slow
namespace: strest-new-balance
labels:
app: strest
strest-server-profile: slow
strest-role: server
spec:
replicas: 3
template:
metadata:
labels:
app: strest
strest-role: server
strest-server-profile: fast
spec:
containers:
- name: main
image: buoyantio/strest-grpc:0.0.6
imagePullPolicy: IfNotPresent
ports:
- name: strest-grpc
containerPort: 8888
- name: admin-http
containerPort: 9999
args: [
"server",
"--address", ":8888",
"--metricAddr", ":9999",
"--latencyPercentiles", "50=100,90=500,99=1000,999=3000"]
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: strest-server-fast
namespace: strest-new-balance
labels:
app: strest
strest-server-profile: fast
strest-role: server
spec:
replicas: 27
template:
metadata:
labels:
app: strest
strest-server-profile: fast
strest-role: server
spec:
containers:
- name: main
image: buoyantio/strest-grpc:0.0.6
imagePullPolicy: IfNotPresent
ports:
- name: strest-grpc
containerPort: 8888
- name: admin-http
containerPort: 9999
args: [
"server",
"--address", ":8888",
"--metricAddr", ":9999"]
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: strest-client-edge-19-7-3
namespace: strest-new-balance
labels:
app: strest
strest-role: client
proxy: edge-19-7-3
spec:
replicas: 1
template:
metadata:
labels:
app: strest
strest-role: client
proxy: edge-19-7-3
annotations:
config.linkerd.io/proxy-version: edge-19.7.3
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: strest-role
operator: In
values:
- client
topologyKey: "kubernetes.io/hostname"
containers:
- name: main
image: buoyantio/strest-grpc:0.0.6
imagePullPolicy: IfNotPresent
ports:
- name: admin-http
containerPort: 9999
args: [
"client",
"--interval=60s",
"--address=target:8888",
"--metricAddr=:9999",
"--connections=1",
"--streams=10"]
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: strest-client-update-tower-balance
namespace: strest-new-balance
labels:
app: strest
strest-role: client
proxy: update-tower-balance
spec:
replicas: 1
template:
metadata:
labels:
app: strest
strest-role: client
proxy: p2c-ready
annotations:
config.linkerd.io/proxy-version: ver-update-tower-balance-3
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: strest-role
operator: In
values:
- client
topologyKey: "kubernetes.io/hostname"
containers:
- name: main
image: buoyantio/strest-grpc:0.0.6
imagePullPolicy: IfNotPresent
ports:
- name: admin-http
containerPort: 9999
args: [
"client",
"--interval=60s",
"--address=target:8888",
"--metricAddr=:9999",
"--connections=1",
"--streams=10"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment