...
1apiVersion: apps/v1
2kind: Deployment
3metadata:
4 name: kube-state-metrics
5 namespace: kube-state-metrics
6 labels:
7 app: kube-state-metrics
8spec:
9 replicas: 1
10 selector:
11 matchLabels:
12 app: kube-state-metrics
13 template:
14 metadata:
15 labels:
16 app: kube-state-metrics
17 app.kubernetes.io/name: kube-state-metrics
18 spec:
19 serviceAccountName: kube-state-metrics
20 priorityClassName: edge-p4-operability-services
21 nodeSelector:
22 kubernetes.io/os: linux
23 containers:
24 - name: kube-state-metrics
25 image: bzl://third_party/o11y:kube_state_metrics_container_push
26 args:
27 - --enable-gzip-encoding
28 - --metric-annotations-allowlist=pods=[pallet.edge.ncr.com/created,pallet.edge.ncr.com/name,pallet.edge.ncr.com/revision,pallet.edge.ncr.com/source,pallet.edge.ncr.com/team,pallet.edge.ncr.com/version]
29 - --metric-labels-allowlist=nodes=[feature.node.kubernetes.io/ien-version,node.ncr.com/role,node.ncr.com/class],namespaces=[workload.edge.ncr.com]
30 ports:
31 - name: http-metrics
32 containerPort: 8080
33 - name: telemetry
34 containerPort: 8081
35 resources:
36 limits:
37 cpu: "200m"
38 memory: 500Mi
39 requests:
40 cpu: 100m
41 memory: 250Mi
42 livenessProbe:
43 httpGet:
44 port: http-metrics
45 path: /healthz
46 initialDelaySeconds: 5
47 timeoutSeconds: 5
48 readinessProbe:
49 httpGet:
50 port: telemetry
51 path: /
52 initialDelaySeconds: 5
53 timeoutSeconds: 5
54 securityContext:
55 runAsUser: 65534
View as plain text