Skip to content

Instantly share code, notes, and snippets.

@glassonion1
Created May 5, 2020 13:02
Show Gist options
  • Save glassonion1/363abebd4ca6c9495f7e189116ff828b to your computer and use it in GitHub Desktop.
Save glassonion1/363abebd4ca6c9495f7e189116ff828b to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: prometheus
namespace: stats
spec:
replicas: 1
selector:
matchLabels:
app: prometheus
template:
metadata:
name: prometheus
labels:
app: prometheus
spec:
containers:
- name: prometheus
image: prom/prometheus:latest
args:
- "--config.file=/etc/prometheus/config/prometheus.yaml"
ports:
- containerPort: 9090
volumeMounts:
- name: config-volume
mountPath: /etc/prometheus/config
- name: data-volume
mountPath: /data
volumes:
- name: config-volume
configMap:
name: prometheus-config
- name: data-volume
emptyDir: {}
@glassonion1
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment