38 lines
941 B
YAML
38 lines
941 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ .Chart.Name }}
|
|
labels:
|
|
app: {{ .Chart.Name }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ .Chart.Name }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ .Chart.Name }}
|
|
spec:
|
|
nodeSelector:
|
|
{{- toYaml .Values.nodeSelector | nindent 8 }}
|
|
containers:
|
|
- name: exporter
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
ports:
|
|
- containerPort: 8080
|
|
name: metrics
|
|
volumeMounts:
|
|
- name: nfs-root
|
|
mountPath: /mnt/pvs
|
|
readOnly: true
|
|
resources:
|
|
{{- toYaml .Values.resources | nindent 10 }}
|
|
volumes:
|
|
- name: nfs-root
|
|
nfs:
|
|
server: {{ .Values.nfs.server }}
|
|
path: {{ .Values.nfs.path }}
|
|
readOnly: true
|