title: Grafana is generating links with Base URL : http://localhost:3000 instead of using my url
body: <p>I deployed grafana 7 with Kubernetes, here is my deployment:</p>
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: grafana-core
    namespace: monitoring
    labels:
      app: grafana
      component: core
  spec:
    selector:
      matchLabels:
        app: grafana
  
    replicas: 1
    template:
      metadata:
        labels:
          app: grafana
          component: core
      spec:
        initContainers:
        - name: init-chown-data
          image: grafana/grafana:7.0.3
          imagePullPolicy: IfNotPresent
          securityContext:
            runAsUser: 0
          command: [&quot;chown&quot;, &quot;-R&quot;, &quot;472:472&quot;, &quot;/var/lib/grafana&quot;]
          volumeMounts:
          - name: grafana-persistent-storage
            mountPath: /var/lib/grafana
        containers:
        - image: grafana/grafana:7.0.3
          name: grafana-core
          imagePullPolicy: IfNotPresent
          securityContext:
            runAsUser: 472
          # env:
          envFrom:
            - secretRef:
                name: grafana-env
          env:
            # The following env variables set up basic auth twith the default admin user and admin password.
            - name: GF_INSTALL_PLUGINS
              value: grafana-clock-panel,grafana-simple-json-datasource,camptocamp-prometheus-alertmanager-datasource
            - name: GF_AUTH_BASIC_ENABLED
              value: &quot;true&quot;
            - name: GF_SECURITY_ADMIN_USER
              valueFrom:
                secretKeyRef:
                  name: grafana
                  key: admin-username
            - name: GF_SECURITY_ADMIN_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: grafana
                  key: admin-password
            - name: GF_AUTH_ANONYMOUS_ENABLED
              value: &quot;false&quot;
          readinessProbe:
            httpGet:
              path: /login
              port: 3000
            initialDelaySeconds: 30
            timeoutSeconds: 1
          volumeMounts:
          - name: grafana-persistent-storage
            mountPath: /var/lib/grafana
          - name: grafana-datasources
            mountPath: /etc/grafana/provisioning/datasources
        volumes:
        - name: grafana-persistent-storage
          persistentVolumeClaim:
            claimName: grafana-storage
        - name: grafana-datasources
          configMap:
            name: grafana-datasources
        nodeSelector:
          kops.k8s.io/instancegroup: monitoring-nodes
  </code></pre>
  <p>It is working well, but each time it generates an URL, it does it with base url : http://localhost:3000 instead of using <code>https://grafana.company.com</code></p>
  <p>Where can I configure that ? I couldn't find a env var that handle it.</p>