Skip to content

Instantly share code, notes, and snippets.

@ejhsu
Created January 9, 2019 15:42
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 ejhsu/6a37386c190b77b6e8e6fb2f4be5a9d1 to your computer and use it in GitHub Desktop.
Save ejhsu/6a37386c190b77b6e8e6fb2f4be5a9d1 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
name: prometheus
name: prometheus
namespace: monitoring
spec:
replicas: 1
template:
metadata:
labels:
app: prometheus-server
spec:
serviceAccountName: prometheus
containers:
- name: prometheus
image: prom/prometheus:v2.1.0
imagePullPolicy: Always
ports:
- containerPort: 9090
protocol: TCP
volumeMounts:
- mountPath: "/etc/prometheus"
name: config-prometheus
volumes:
- name: config-prometheus
configMap:
name: prometheus-config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment