openstack-operator/openstack_operator/templates/libvirtd_exporter/daemonset.yml.j2

67 lines
1.8 KiB
Django/Jinja

---
# Copyright 2020 VEXXHOST, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: libvirtd-exporter
namespace: openstack
labels:
{{ labels("libvirtd-exporter", "libvirtd-exporter") | indent(4) }}
spec:
selector:
matchLabels:
{{ labels("libvirtd-exporter", "libvirtd-exporter") | indent(6) }}
template:
metadata:
labels:
{{ labels("libvirtd-exporter", "libvirtd-exporter") | indent(8) }}
spec:
automountServiceAccountToken: false
containers:
- name: main
image: vexxhost/libvirtd-exporter:latest
imagePullPolicy: Always
ports:
- name: metrics
protocol: TCP
containerPort: 9474
livenessProbe:
httpGet:
path: /
port: metrics
readinessProbe:
httpGet:
path: /
port: metrics
resources:
limits:
cpu: 500m
ephemeral-storage: 100M
memory: 256M
requests:
cpu: 250m
ephemeral-storage: 100M
memory: 128M
volumeMounts:
- mountPath: /var/run/libvirt
name: sock
volumes:
- name: sock
hostPath:
path: /var/run/libvirt
nodeSelector:
node-role.openstack.org: "compute"