2019-08-08 22:09:53 +02:00
|
|
|
apiVersion: apps/v1
|
2018-12-12 18:18:00 +01:00
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: prometheus-adapter
|
|
|
|
namespace: monitoring
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: prometheus-adapter
|
|
|
|
strategy:
|
|
|
|
rollingUpdate:
|
|
|
|
maxSurge: 1
|
|
|
|
maxUnavailable: 0
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: prometheus-adapter
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- args:
|
|
|
|
- --cert-dir=/var/run/serving-cert
|
|
|
|
- --config=/etc/adapter/config.yaml
|
|
|
|
- --logtostderr=true
|
|
|
|
- --metrics-relist-interval=1m
|
|
|
|
- --prometheus-url=http://prometheus-k8s.monitoring.svc:9090/
|
|
|
|
- --secure-port=6443
|
2020-03-18 20:58:42 +01:00
|
|
|
image: carlosedp/k8s-prometheus-adapter:v0.6.0
|
2018-12-12 18:18:00 +01:00
|
|
|
name: prometheus-adapter
|
|
|
|
ports:
|
|
|
|
- containerPort: 6443
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /tmp
|
|
|
|
name: tmpfs
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /var/run/serving-cert
|
|
|
|
name: volume-serving-cert
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /etc/adapter
|
|
|
|
name: config
|
|
|
|
readOnly: false
|
2019-02-01 14:52:53 +01:00
|
|
|
nodeSelector:
|
2019-08-08 22:09:53 +02:00
|
|
|
kubernetes.io/os: linux
|
2018-12-12 18:18:00 +01:00
|
|
|
serviceAccountName: prometheus-adapter
|
|
|
|
volumes:
|
|
|
|
- emptyDir: {}
|
|
|
|
name: tmpfs
|
|
|
|
- emptyDir: {}
|
|
|
|
name: volume-serving-cert
|
|
|
|
- configMap:
|
|
|
|
name: adapter-config
|
|
|
|
name: config
|