mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-13 09:50:18 +00:00
92 lines
2.3 KiB
YAML
92 lines
2.3 KiB
YAML
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kube-state-metrics
|
|
namespace: kube-system
|
|
labels:
|
|
k8s-app: kube-state-metrics
|
|
kubernetes.io/cluster-service: "true"
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
version: v1.3.0
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: kube-state-metrics
|
|
version: v1.3.0
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
k8s-app: kube-state-metrics
|
|
version: v1.3.0
|
|
annotations:
|
|
scheduler.alpha.kubernetes.io/critical-pod: ''
|
|
spec:
|
|
priorityClassName: system-cluster-critical
|
|
serviceAccountName: kube-state-metrics
|
|
containers:
|
|
- name: kube-state-metrics
|
|
image: quay.io/coreos/kube-state-metrics:v1.3.0
|
|
ports:
|
|
- name: http-metrics
|
|
containerPort: 8080
|
|
- name: telemetry
|
|
containerPort: 8081
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 5
|
|
- name: addon-resizer
|
|
image: k8s.gcr.io/addon-resizer:1.8.4
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 30Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 30Mi
|
|
env:
|
|
- name: MY_POD_NAME
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.name
|
|
- name: MY_POD_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
volumeMounts:
|
|
- name: config-volume
|
|
mountPath: /etc/config
|
|
command:
|
|
- /pod_nanny
|
|
- --config-dir=/etc/config
|
|
- --container=kube-state-metrics
|
|
- --cpu=100m
|
|
- --extra-cpu=1m
|
|
- --memory=100Mi
|
|
- --extra-memory=2Mi
|
|
- --threshold=5
|
|
- --deployment=kube-state-metrics
|
|
volumes:
|
|
- name: config-volume
|
|
configMap:
|
|
name: kube-state-metrics-config
|
|
---
|
|
# Config map for resource configuration.
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: kube-state-metrics-config
|
|
namespace: kube-system
|
|
labels:
|
|
k8s-app: kube-state-metrics
|
|
kubernetes.io/cluster-service: "true"
|
|
addonmanager.kubernetes.io/mode: Reconcile
|
|
data:
|
|
NannyConfiguration: |-
|
|
apiVersion: nannyconfig/v1alpha1
|
|
kind: NannyConfiguration
|
|
|