c12s-kubespray/roles/kubernetes-apps/prometheus/templates/kube-state-metrics-deployment.yml.j2
2017-02-28 07:59:58 -06:00

24 lines
672 B
Django/Jinja

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-state-metrics
spec:
replicas: 1
template:
metadata:
labels:
app: kube-state-metrics
spec:
containers:
- name: kube-state-metrics
image: "{{ kube_state_metrics_image_repo }}:{{ kube_state_metrics_image_tag }}"
ports:
- name: metrics
containerPort: 8080
resources:
requests:
memory: {{ kube_state_metrics_mem_requests }}
cpu: {{ kube_state_metrics_cpu_requests }}
limits:
memory: {{ kube_state_metrics_mem_limit }}
cpu: {{ kube_state_metrics_cpu_limit }}