Skip to content

Instantly share code, notes, and snippets.

@olix0r
Last active June 2, 2019 18:33
Show Gist options
  • Save olix0r/7739389a31c286d6dcbc8701f7bee37c to your computer and use it in GitHub Desktop.
Save olix0r/7739389a31c286d6dcbc8701f7bee37c to your computer and use it in GitHub Desktop.
---
kind: Namespace
apiVersion: v1
metadata:
name: strest
labels:
buoyant.io/test: strest-leak
annotations:
linkerd.io/inject: enabled
# target.strest is valid.
---
kind: Service
apiVersion: v1
metadata:
name: target
namespace: strest
labels:
buoyant.io/test: strest-leak
strest/role: server
spec:
type: ClusterIP
selector:
strest/role: server
ports:
- name: grpc
port: 8888
# nil.strest is empty.
---
kind: Service
apiVersion: v1
metadata:
name: nil
namespace: strest
labels:
buoyant.io/test: strest-leak
strest/role: nil
spec:
type: ClusterIP
selector:
strest/role: nil
ports:
- name: grpc
port: 8888
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: server
namespace: strest
labels:
buoyant.io/test: strest-leak
strest/role: server
spec:
replicas: 1
template:
metadata:
labels:
buoyant.io/test: strest-leak
strest/role: server
spec:
serviceAccount: server
containers:
- name: main
image: buoyantio/strest-grpc:0.0.6
imagePullPolicy: IfNotPresent
ports:
- name: grpc
containerPort: 8888
- name: admin-http
containerPort: 9999
args: [
"server",
"--address=:8888",
"--metricAddr=:9999"]
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: client-leaky
namespace: strest
labels:
buoyant.io/test: strest-leak
strest/role: client
strest/leakiness: leaky
spec:
replicas: 1
template:
metadata:
labels:
buoyant.io/test: strest-leak
strest/role: client
strest/leakiness: leaky
spec:
serviceAccount: client
containers:
- name: main
image: buoyantio/strest-grpc:0.0.6
imagePullPolicy: IfNotPresent
ports:
- name: admin-http
containerPort: 9999
args: [
"client",
"--address", "nil:8888",
"--metricAddr", ":9999",
"--streams", "10"]
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: client-stable
namespace: strest
labels:
buoyant.io/test: strest-leak
strest/role: client
strest/leakiness: stable
spec:
replicas: 1
template:
metadata:
labels:
buoyant.io/test: strest-leak
strest/role: client
strest/leakiness: stable
spec:
serviceAccount: client
containers:
- name: main
image: buoyantio/strest-grpc:0.0.6
imagePullPolicy: IfNotPresent
ports:
- name: admin-http
containerPort: 9999
args: [
"client",
"--address", "target:8888",
"--metricAddr", ":9999",
"--streams", "10"]
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: client
namespace: strest
labels:
strest/role: client
buoyant.io/test: strest-leak
---
kind: ServiceAccount
apiVersion: v1
metadata:
name: server
namespace: strest
labels:
strest/role: server
buoyant.io/test: strest-leak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment