feat(tiller): exposes port 44135 in tiller deployment

Tiller exposes probes and metrics in 44135. Because tiller doesn't expose that port and does not contain any Prometheus annotations, making Prometheus scrape tiller is a bit more complex.

Closes #2985
pull/3078/head
Ivan Pedrazas 7 years ago
parent d6ba39e6f2
commit f20af6ab4c

@ -168,6 +168,7 @@ func generateDeployment(opts *Options) (*v1beta1.Deployment, error) {
ImagePullPolicy: opts.pullPolicy(),
Ports: []v1.ContainerPort{
{ContainerPort: 44134, Name: "tiller"},
{ContainerPort: 44135, Name: "http"},
},
Env: []v1.EnvVar{
{Name: "TILLER_NAMESPACE", Value: opts.Namespace},

@ -207,6 +207,10 @@ func TestInstall(t *testing.T) {
if i != image {
t.Errorf("expected image = '%s', got '%s'", image, i)
}
ports := len(obj.Spec.Template.Spec.Containers[0].Ports)
if ports != 2 {
t.Errorf("expected ports = 2, got '%d'", ports)
}
return true, obj, nil
})
fc.AddReactor("create", "services", func(action testcore.Action) (bool, runtime.Object, error) {

Loading…
Cancel
Save