2017-11-21 09:01:24 +08:00
|
|
|
---
|
2018-06-11 10:15:07 +08:00
|
|
|
apiVersion: apps/v1beta1
|
2017-11-21 09:01:24 +08:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: monitoring-influxdb
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
2017-12-20 09:11:56 +08:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: influxdb
|
2017-11-21 09:01:24 +08:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
task: monitoring
|
|
|
|
k8s-app: influxdb
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: influxdb
|
2019-04-23 18:48:26 +08:00
|
|
|
#image: gcr.io/google_containers/heapster-influxdb-amd64:v1.5.2
|
|
|
|
image: mirrorgooglecontainers/heapster-influxdb-amd64:v1.5.2
|
2017-11-21 09:01:24 +08:00
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /data
|
|
|
|
name: influxdb-storage
|
|
|
|
volumes:
|
|
|
|
- name: influxdb-storage
|
|
|
|
emptyDir: {}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
task: monitoring
|
|
|
|
# For use as a Cluster add-on (https://github.com/kubernetes/kubernetes/tree/master/cluster/addons)
|
|
|
|
# If you are NOT using this as an addon, you should comment out this line.
|
2017-12-12 17:13:50 +08:00
|
|
|
# kubernetes.io/cluster-service: 'true'
|
2017-11-21 09:01:24 +08:00
|
|
|
kubernetes.io/name: monitoring-influxdb
|
|
|
|
name: monitoring-influxdb
|
|
|
|
namespace: kube-system
|
|
|
|
spec:
|
|
|
|
ports:
|
|
|
|
- port: 8086
|
|
|
|
targetPort: 8086
|
|
|
|
name: http
|
|
|
|
selector:
|
|
|
|
k8s-app: influxdb
|
|
|
|
---
|
|
|
|
|