Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Created February 6, 2018 21:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrlesmithjr/e5b365863359d0de8db4611b6c27fdf8 to your computer and use it in GitHub Desktop.
Save mrlesmithjr/e5b365863359d0de8db4611b6c27fdf8 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: influxdb
namespace: kube-system
spec:
replicas: 1
template:
metadata:
labels:
app: influxdb
task: monitoring
spec:
containers:
- image: influxdb
name: influxdb
---
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.
kubernetes.io/cluster-service: 'true'
kubernetes.io/name: monitoring-influxdb
name: monitoring-influxdb
namespace: kube-system
spec:
ports:
- port: 8086
targetPort: 8086
selector:
app: influxdb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment