cluster/kube/lib/nginx: add gerrit forwarding
This is already running in production since gerrit was deployed - it
just got lost during submit.
Change-Id: I8a1580b1ca3ec3142a8fa4320dc9f51a599a914f
diff --git a/cluster/kube/lib/nginx.libsonnet b/cluster/kube/lib/nginx.libsonnet
index a6d10f1..a871b96 100644
--- a/cluster/kube/lib/nginx.libsonnet
+++ b/cluster/kube/lib/nginx.libsonnet
@@ -26,7 +26,11 @@
metadata+: env.metadata,
},
configuration: env.maps.make("nginx-configuration"),
- tcp: env.maps.make("tcp-services"),
+ tcp: env.maps.make("tcp-services") {
+ data: {
+ "22": "gerrit/gerrit:22"
+ }
+ },
udp: env.maps.make("udp-services"),
},
@@ -139,6 +143,7 @@
spec+: {
type: "LoadBalancer",
ports: [
+ { name: "ssh", port: 22, targetPort: 22, protocol: "TCP" },
{ name: "http", port: 80, targetPort: 80, protocol: "TCP" },
{ name: "https", port: 443, targetPort: 443, protocol: "TCP" },
],