2017-06-01 20:18:05 +08:00
|
|
|
---
|
|
|
|
apiVersion: extensions/v1beta1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: servicegraph
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
annotations:
|
|
|
|
alpha.istio.io/sidecar: ignore
|
|
|
|
labels:
|
|
|
|
app: servicegraph
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: servicegraph
|
2018-05-04 19:53:39 +08:00
|
|
|
image: harbor-001.jimmysong.io/library/servicegraph:latest
|
2017-06-01 20:18:05 +08:00
|
|
|
ports:
|
|
|
|
- containerPort: 8088
|
|
|
|
args:
|
|
|
|
- --prometheusAddr=http://prometheus:9090
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
name: servicegraph
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
port: 8088
|
|
|
|
selector:
|
|
|
|
app: servicegraph
|
|
|
|
---
|