Minikube: Expose Tiller http port for metrics

This updates the Minikube deployment to patch the tiller-deploy
service to add a port definition for the http (44135) port for
tiller, which is used to expose metrics for Prometheus to scrape

Change-Id: I2eb5d4001c37935674ce64012b2744030addc127
Signed-off-by: Steve Wilkerson <sw5822@att.com>
This commit is contained in:
Steve Wilkerson 2019-08-07 13:25:23 -05:00
parent b310caef4f
commit 8573957fce

View File

@ -182,6 +182,20 @@ kubectl --namespace=kube-system wait \
--for=condition=Ready \
pod -l app=helm,name=tiller
# Patch tiller-deploy service to expose metrics port
tee /tmp/tiller-deploy.yaml << EOF
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "44135"
spec:
ports:
- name: http
port: 44135
targetPort: http
EOF
kubectl patch service tiller-deploy -n kube-system --patch "$(cat /tmp/tiller-deploy.yaml)"
# Set up local helm server
sudo -E tee /etc/systemd/system/helm-serve.service << EOF
[Unit]