apiVersion: v1 kind: Namespace metadata: name: influxdb --- apiVersion: apps/v1 kind: Deployment metadata: name: influxdb namespace: influxdb spec: replicas: 1 selector: matchLabels: app: influxdb template: metadata: labels: app: influxdb spec: containers: - name: influxdb image: influxdb:1.7.9 - name: chronograf image: chronograf:1.6.2 args: ["--influxdb-url=http://localhost:8086"] --- apiVersion: v1 kind: Service metadata: labels: app: influxdb name: influxdb namespace: influxdb spec: ports: - name: server port: 8086 - name: chronograf port: 8888 selector: app: influxdb