github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/production/ksonnet/loki-simple-scalable/headless.libsonnet (about) 1 local k = import 'ksonnet-util/kausal.libsonnet'; 2 3 4 //This is used to set up a headless DNS service for all instances 5 //in the deployment, so there will be a DNS record to use for 6 //memberlist 7 { 8 local service = k.core.v1.service, 9 10 headless_service: 11 service.new( 12 $._config.headless_service_name, 13 { 14 app: $._config.headless_service_name, 15 }, 16 [] 17 ) + 18 service.mixin.spec.withClusterIP('None') + 19 service.mixin.spec.withPublishNotReadyAddresses(true), 20 }