You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.5 KiB
70 lines
2.5 KiB
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: metrics-adapter
|
|
app.kubernetes.io/name: prometheus-adapter
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 0.9.0
|
|
name: prometheus-adapter
|
|
namespace: monitoring
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/component: metrics-adapter
|
|
app.kubernetes.io/name: prometheus-adapter
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/component: metrics-adapter
|
|
app.kubernetes.io/name: prometheus-adapter
|
|
app.kubernetes.io/part-of: kube-prometheus
|
|
app.kubernetes.io/version: 0.9.0
|
|
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.cluster.local:9090/
|
|
- --secure-port=6443
|
|
- --tls-cipher-suites=TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,TLS_RSA_WITH_AES_128_GCM_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA
|
|
image: k8s.gcr.io/prometheus-adapter/prometheus-adapter:v0.9.0
|
|
name: prometheus-adapter
|
|
ports:
|
|
- containerPort: 6443
|
|
resources:
|
|
limits:
|
|
cpu: 250m
|
|
memory: 180Mi
|
|
requests:
|
|
cpu: 102m
|
|
memory: 180Mi
|
|
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
|
|
nodeSelector:
|
|
kubernetes.io/os: linux
|
|
serviceAccountName: prometheus-adapter
|
|
volumes:
|
|
- emptyDir: {}
|
|
name: tmpfs
|
|
- emptyDir: {}
|
|
name: volume-serving-cert
|
|
- configMap:
|
|
name: adapter-config
|
|
name: config
|
|
|