API browser kubernetes externalURI not applied

Hi I have graylog installed using rancher and the graylog helm chart.
Everything is ok but the api browser is not available. The externalUri spesified in the helm answer yaml is not applied to the api browser page the page displays just its basic format. The graylog cluster is behind a metalb loadbalancer.
Answers yml

graylog:
externalUri: “192.168.2.22:9000”
rootPassword: “******”
rootTimezone: CET
transportEmail:
enabled: true
port: 25
protocol: smtp
hostname: “192.168.1.142”
subjectPrefix: “[graylog]”
useTls: false
useSsl: false
useAuth: false
fromEmail: graylog@domain
service:
type: LoadBalancer
#loadBalancerIP: 192.168.2.31
input:
tcp:
service:
type: LoadBalancer
loadBalancerIP: 192.168.2.24
ports:
- name: gelf1
port: 12222
- name: gelf2
port: 12223
udp:
service:
type: LoadBalancer
loadBalancerIP: 192.168.2.30
ports:
- name: syslog
port: 5140
- name: syslog-nx-acc
port: 5141
- name: syslog-nx-err
port: 5142
This generates this link in the api page source code head. (the graylog site is ok!)

http://graylog-0.graylog.graylog.svc.cluster.local:9000/api/api-browser/

I think it should be http://192.168.2.22:9000/api/api-browser/

How can i solve this?
Thanks
Peter

OK so i have to reply to my own resquest!
Rancher helm chart instals graylog version 3.1 which has no api-browser global option.(foe use behind load balancer)
As i needed to access this from just one server as a workaround I used the host file.
“192.168.2.22 graylog-0.graylog.graylog.svc.cluster.local
192.168.2.22 graylog-1.graylog.graylog.svc.cluster.local”
one line for each possible host in the cluster.
This gives a better result but still the page is blank!
Found in another post that api/api-browser is not enought you need to add api/api-browser/global/index.html to your external IP
hope this helps someone else to move forward!
Peter

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.