Skip to content

Commit

Permalink
Adding correct defaults for metrics objects.
Browse files Browse the repository at this point in the history
Signed-off-by: Houston Putman <[email protected]>
  • Loading branch information
HoustonPutman authored and bsankara committed Dec 8, 2020
1 parent 8a4e73a commit 57e6f15
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions controllers/util/prometheus_exporter_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,25 @@ func GenerateSolrPrometheusExporterDeployment(solrPrometheusExporter *solr.SolrP
Name: "solr-prometheus-exporter",
Image: solrPrometheusExporter.Spec.Image.ToImageName(),
ImagePullPolicy: solrPrometheusExporter.Spec.Image.PullPolicy,
Ports: []corev1.ContainerPort{{ContainerPort: SolrMetricsPort, Name: SolrMetricsPortName}},
Ports: []corev1.ContainerPort{{ContainerPort: SolrMetricsPort, Name: SolrMetricsPortName, Protocol: corev1.ProtocolTCP}},
VolumeMounts: volumeMounts,
Command: []string{entrypoint},
Args: exporterArgs,
Env: envVars,

LivenessProbe: &corev1.Probe{
InitialDelaySeconds: 20,
PeriodSeconds: 10,
Handler: corev1.Handler{
HTTPGet: &corev1.HTTPGetAction{
Scheme: corev1.URISchemeHTTP,
Path: "/metrics",
Port: intstr.FromInt(SolrMetricsPort),
},
},
InitialDelaySeconds: 20,
TimeoutSeconds: 1,
PeriodSeconds: 10,
SuccessThreshold: 1,
FailureThreshold: 3,
},
},
}
Expand Down

0 comments on commit 57e6f15

Please sign in to comment.