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
changes/03/3/1
q3k 2019-06-29 22:42:39 +02:00
parent 59f5fd315c
commit 543b412a65
1 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,11 @@ local kube = import "../../../kube/kube.libsonnet";
metadata+: env.metadata, metadata+: env.metadata,
}, },
configuration: env.maps.make("nginx-configuration"), 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"), udp: env.maps.make("udp-services"),
}, },
@ -139,6 +143,7 @@ local kube = import "../../../kube/kube.libsonnet";
spec+: { spec+: {
type: "LoadBalancer", type: "LoadBalancer",
ports: [ ports: [
{ name: "ssh", port: 22, targetPort: 22, protocol: "TCP" },
{ name: "http", port: 80, targetPort: 80, protocol: "TCP" }, { name: "http", port: 80, targetPort: 80, protocol: "TCP" },
{ name: "https", port: 443, targetPort: 443, protocol: "TCP" }, { name: "https", port: 443, targetPort: 443, protocol: "TCP" },
], ],