File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616 securityContext :
1717 runAsNonRoot : true
1818 containers :
19+ - image : " quay.io/prometheus/memcached-exporter:v0.14.3"
20+ imagePullPolicy : IfNotPresent
21+ name : memcached-exporter
22+ ports :
23+ - name : metrics
24+ containerPort : 9150
25+ protocol : TCP
26+ securityContext :
27+ allowPrivilegeEscalation : false
28+ capabilities :
29+ drop :
30+ - ALL
31+ readOnlyRootFilesystem : true
32+ runAsUser : 65534 # nobody
33+ runAsGroup : 65534 # nobody
1934 - image : " memcached:1.6-alpine"
2035 imagePullPolicy : IfNotPresent
2136 args : ["-m", "1024"]
@@ -41,12 +56,18 @@ apiVersion: v1
4156kind : Service
4257metadata :
4358 name : memcached
59+ annotations :
60+ k8s.grafana.com/scrape : " yes"
4461spec :
4562 type : ClusterIP
4663 ports :
4764 - port : 11211
4865 targetPort : memcached
4966 protocol : TCP
5067 name : memcached
68+ - port : 9150
69+ targetPort : metrics
70+ protocol : TCP
71+ name : metrics
5172 selector :
5273 app : memcached
You can’t perform that action at this time.
0 commit comments