From 46445d8fa8efe329c4a523a24f195e33619f19b2 Mon Sep 17 00:00:00 2001 From: Angus Lees <gus@inodes.org> Date: Wed, 28 Jun 2017 12:07:07 +1000 Subject: [PATCH] Make frontend service a type=LoadBalancer This allows you to actually reach the guestbook in most environments without further changes (including minikube, since LoadBalancer implies NodePort). --- examples/guestbook.jsonnet | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/guestbook.jsonnet b/examples/guestbook.jsonnet index 4fe31ba8..94d7dad2 100644 --- a/examples/guestbook.jsonnet +++ b/examples/guestbook.jsonnet @@ -36,6 +36,7 @@ local example = import "example.libsonnet"; frontend_service: example.service("frontend") { targetPod_: $.frontend_deployment.spec.template, + spec+: { type: "LoadBalancer" }, }, redis_master_deployment: example.deployment("redis-master") { -- GitLab