File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
src/KubernetesPfSenseController/Plugin Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -125,9 +125,9 @@ powerful setups/combinations.
125
125
126
126
# ## pfsense-dns-services
127
127
` pfsense-dns-services` watches for services of type `LoadBalancer` that have the annotation `dns.pfsense.org/hostname`
128
- with the value of the desired hostname. `kpc` will create the DNS entry in unbound/dnsmasq . Note that to actually get
129
- an IP on these services you'll likely need `MetalLB` deployed in the cluster (regardless of the `metallb` plugin running
130
- or not).
128
+ with the value of the desired hostname (optionally you may specifiy a comma-separated list of hostnames) . `kpc` will
129
+ create the DNS entry in unbound/dnsmasq. Note that to actually get an IP on these services you'll likely need
130
+ ` MetalLB ` deployed in the cluster (regardless of the `metallb` plugin running or not).
131
131
132
132
` ` ` yaml
133
133
pfsense-dns-services:
Original file line number Diff line number Diff line change @@ -228,7 +228,11 @@ public static function getServiceHostname($service)
228
228
{
229
229
foreach ($ service ['metadata ' ]['annotations ' ] as $ key => $ value ) {
230
230
if ($ key == self ::SERVICE_HOSTNAME_ANNOTATION ) {
231
- return explode (", " , $ value );
231
+ $ hosts = explode (", " , $ value );
232
+ array_walk ($ hosts , function (&$ host ){
233
+ $ host = trim ($ host );
234
+ });
235
+ return $ hosts ;
232
236
}
233
237
}
234
238
}
You can’t perform that action at this time.
0 commit comments