Merge "Minikube: Expose Tiller http port for metrics"

This commit is contained in:
Zuul 2019-08-13 21:50:28 +00:00 committed by Gerrit Code Review
commit e11e9734bd

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]