2018-12-12 18:18:00 +01:00
|
|
|
apiVersion: apps/v1beta2
|
2018-03-02 01:03:53 +01:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: prometheus-operator
|
|
|
|
name: prometheus-operator
|
2018-12-12 18:18:00 +01:00
|
|
|
namespace: monitoring
|
2018-03-02 01:03:53 +01:00
|
|
|
spec:
|
|
|
|
replicas: 1
|
2018-12-12 18:18:00 +01:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: prometheus-operator
|
2018-03-02 01:03:53 +01:00
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: prometheus-operator
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- args:
|
|
|
|
- --kubelet-service=kube-system/kubelet
|
2018-12-12 18:18:00 +01:00
|
|
|
- --logtostderr=true
|
|
|
|
- --config-reloader-image=carlosedp/configmap-reload:v0.2.2
|
|
|
|
- --prometheus-config-reloader=carlosedp/prometheus-config-reloader:v0.26.0
|
|
|
|
image: carlosedp/prometheus-operator:v0.26.0
|
2018-03-02 01:03:53 +01:00
|
|
|
name: prometheus-operator
|
|
|
|
ports:
|
|
|
|
- containerPort: 8080
|
|
|
|
name: http
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 200m
|
2018-12-12 18:18:00 +01:00
|
|
|
memory: 200Mi
|
2018-03-02 01:03:53 +01:00
|
|
|
requests:
|
|
|
|
cpu: 100m
|
2018-12-12 18:18:00 +01:00
|
|
|
memory: 100Mi
|
|
|
|
securityContext:
|
|
|
|
allowPrivilegeEscalation: false
|
|
|
|
readOnlyRootFilesystem: true
|
|
|
|
nodeSelector:
|
|
|
|
beta.kubernetes.io/os: linux
|
2018-03-02 01:03:53 +01:00
|
|
|
securityContext:
|
|
|
|
runAsNonRoot: true
|
|
|
|
runAsUser: 65534
|
|
|
|
serviceAccountName: prometheus-operator
|