rpi.carlosedp.cluster-monit.../manifests/kube-state-metrics-deployment.yaml

71 lines
1.6 KiB
YAML
Raw Normal View History

2019-08-08 22:09:53 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: kube-state-metrics
name: kube-state-metrics
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app: kube-state-metrics
template:
metadata:
labels:
app: kube-state-metrics
spec:
containers:
2019-02-04 21:03:30 +01:00
- args:
- --port=8080
- --telemetry-port=8081
2019-08-09 00:39:26 +02:00
image: carlosedp/kube-state-metrics:v1.7.2
2019-02-04 21:03:30 +01:00
name: kube-state-metrics
2019-08-20 22:45:42 +02:00
ports:
- containerPort: 8080
name: http-main
- containerPort: 8081
name: http-self
2019-02-04 21:03:30 +01:00
resources:
limits:
cpu: 100m
memory: 150Mi
requests:
cpu: 100m
memory: 150Mi
- command:
- /pod_nanny
- --container=kube-state-metrics
- --cpu=100m
- --extra-cpu=2m
- --memory=150Mi
- --extra-memory=30Mi
- --threshold=5
- --deployment=kube-state-metrics
env:
- name: MY_POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: carlosedp/addon-resizer:v1.8.4
name: addon-resizer
resources:
limits:
cpu: 50m
memory: 30Mi
requests:
cpu: 10m
memory: 30Mi
nodeSelector:
2019-08-08 22:09:53 +02:00
kubernetes.io/os: linux
securityContext:
runAsNonRoot: true
runAsUser: 65534
serviceAccountName: kube-state-metrics