Specifying path to kibana in fleet-server.yaml

I am running Elastic on kubernetes and I would like to have my infrastructure defined in yaml files. There are few things however that I cannot find in the documentation...

I can't find the way to specify a path to Kibana in fleet-server.yaml .

Here is the relevant configuration. I will be super grateful for any help:

apiVersion: kibana.k8s.elastic.co/v1
kind: Kibana
metadata:
  name: kibana-cluster
  namespace: elastic
spec:
  version: 8.4.3
  count: 1
  elasticsearchRef:
    name: elasticsearch-cluster
  config:
    server.basePath: /kibana
    server.rewriteBasePath: "true"
    xpack.fleet.agents.fleet_server.hosts: ["https://fleet-server-agent-http.elastic.svc:8220"]
    xpack.reporting.roles.enabled: "false"
    xpack.fleet.packages:
      - name: fleet_server
        version: latest
    xpack.fleet.agentPolicies:
      - name: Fleet Server on ECK policy
        id: eck-fleet-server
        is_default_fleet_server: true
        namespace: elastic
        monitoring_enabled:
          - logs
          - metrics
        unenroll_timeout: 900
        package_policies:
        - name: fleet_server-1
          id: fleet_server-1
          package:
            name: fleet_server

And the fleet-server.yaml

apiVersion: agent.k8s.elastic.co/v1alpha1
kind: Agent
metadata:
  name: fleet-server
  namespace: elastic
spec:
  version: 8.4.3
  kibanaRef:
    name: kibana-cluster
  elasticsearchRefs:
  - name: elasticsearch-cluster
  mode: fleet
  fleetServerEnabled: true
  deployment:
    replicas: 1
    podTemplate:
      spec:
        serviceAccountName: elastic-agent-sa
        automountServiceAccountToken: true
        securityContext:
          runAsUser: 0

If I recall u don't have to set kibanaRef. You should be able to use the ENV var instead and set the URL and path that way but I'm not 100% on that.

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