From 8537ec41861e93274a6695435bd0550d3130ee01 Mon Sep 17 00:00:00 2001 From: Nash Luffman Date: Sun, 16 Aug 2020 00:14:16 -0400 Subject: [PATCH] Fixing nginx module service --- modules/nginx.jsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/nginx.jsonnet b/modules/nginx.jsonnet index dbdbdd6..e51299d 100644 --- a/modules/nginx.jsonnet +++ b/modules/nginx.jsonnet @@ -18,7 +18,7 @@ local k = import 'ksonnet/ksonnet.beta.4/k.libsonnet'; local servicePort = k.core.v1.service.mixin.spec.portsType; local nginxPort = servicePort.newNamed('prometheus', 10254, 10254); - service.new('nginx-ingress-metrics', {'app.kubernetes.io/name': 'ingress-nginx'}, nginxPort) + + service.new('ingress-nginx-metrics', {'app.kubernetes.io/name': 'ingress-nginx'}, nginxPort) + service.mixin.metadata.withNamespace('ingress-nginx') + service.mixin.metadata.withLabels({'app.kubernetes.io/name': 'ingress-nginx'}) + service.mixin.spec.withClusterIp('None'),