kubernetes-handbook/manifests/linkerd/linkerd-viz.yml

58 lines
1.1 KiB
YAML
Raw Normal View History

2017-08-01 21:20:16 +08:00
---
apiVersion: v1
kind: ReplicationController
metadata:
name: linkerd-viz
labels:
name: linkerd-viz
spec:
replicas: 1
selector:
name: linkerd-viz
template:
metadata:
labels:
name: linkerd-viz
spec:
containers:
- name: linkerd-viz
2018-05-04 19:48:54 +08:00
image: harbor-001.jimmysong.io/library/buoyantio-linkerd-viz:latest
2017-08-01 21:20:16 +08:00
args: ["k8s"]
imagePullPolicy: Always
env:
- name: PUBLIC_PORT
value: "3000"
- name: STATS_PORT
value: "9191"
- name: SCRAPE_INTERVAL
value: "30s"
ports:
- name: grafana
containerPort: 3000
- name: prometheus
containerPort: 9191
- name: kubectl
2018-05-04 19:48:54 +08:00
image: harbor-001.jimmysong.io/library/buoyantio-kubectl:v1.4.0
2017-08-01 21:20:16 +08:00
args:
- "proxy"
- "-p"
- "8001"
---
apiVersion: v1
kind: Service
metadata:
name: linkerd-viz
labels:
name: linkerd-viz
spec:
ports:
- name: grafana
port: 80
targetPort: 3000
- name: prometheus
port: 9191
targetPort: 9191
selector:
name: linkerd-viz