Skip to content

Instantly share code, notes, and snippets.

@therealmitchconnors
Last active April 30, 2019 22:24
Show Gist options
  • Save therealmitchconnors/937046f6d33aa4833f69d38234b810ff to your computer and use it in GitHub Desktop.
Save therealmitchconnors/937046f6d33aa4833f69d38234b810ff to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
istio-injection: enabled
name: service-graph
spec: {}
status: {}
---
apiVersion: v1
data:
service-graph: |
services:
- name: irs-client
numRbacPolicies: 0
numReplicas: 3
responseSize: 1KiB
script:
- sleep: 100ms
- call:
service: irs-server
size: 1KiB
type: http
- name: irs-server
numRbacPolicies: 0
numReplicas: 3
responseSize: 1KiB
script:
- sleep: 100ms
type: http
kind: ConfigMap
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: service-graph
name: service-graph-config
namespace: service-graph
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: service-graph
name: irs-client
namespace: service-graph
spec:
replicas: 3
selector:
matchLabels:
name: irs-client
strategy: {}
template:
metadata:
annotations:
prometheus.io/scrape: "true"
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
name: irs-client
role: service
spec:
containers:
- args:
- --max-idle-connections-per-host=0
env:
- name: SERVICE_NAME
value: irs-client
image: tahler/isotope-service:1
name: mock-service
ports:
- containerPort: 8080
resources: {}
volumeMounts:
- mountPath: /etc/config
name: config-volume
volumes:
- configMap:
items:
- key: service-graph
path: service-graph.yaml
name: service-graph-config
name: config-volume
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: service-graph
name: irs-client
namespace: service-graph
spec:
ports:
- name: http-web
port: 8080
targetPort: 0
selector:
name: irs-client
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: service-graph
name: irs-server
namespace: service-graph
spec:
replicas: 3
selector:
matchLabels:
name: irs-server
strategy: {}
template:
metadata:
annotations:
prometheus.io/scrape: "true"
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
name: irs-server
role: service
spec:
containers:
- args:
- --max-idle-connections-per-host=0
env:
- name: SERVICE_NAME
value: irs-server
image: tahler/isotope-service:1
name: mock-service
ports:
- containerPort: 8080
resources: {}
volumeMounts:
- mountPath: /etc/config
name: config-volume
volumes:
- configMap:
items:
- key: service-graph
path: service-graph.yaml
name: service-graph-config
name: config-volume
status: {}
---
apiVersion: v1
kind: Service
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: service-graph
name: irs-server
namespace: service-graph
spec:
ports:
- name: http-web
port: 8080
targetPort: 0
selector:
name: irs-server
status:
loadBalancer: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: client
name: client
spec:
selector:
matchLabels:
app: client
strategy: {}
template:
metadata:
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: client
spec:
containers:
- args:
- server
image: tahler/fortio:prometheus
name: fortio-client
ports:
- containerPort: 8080
- containerPort: 42422
resources: {}
status: {}
---
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: "true"
creationTimestamp: "2019-04-30T22:23:22Z"
labels:
app: client
name: client
spec:
ports:
- port: 8080
targetPort: 0
selector:
app: client
status:
loadBalancer: {}
defaults:
requestSize: 1 KB
responseSize: 1 KB
numRbacPolicies: 0
services:
- name: irs-client
numReplicas: 3
script:
- sleep: 100ms
- call: irs-server
- name: irs-server
numReplicas: 3
script:
- sleep: 100ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment