<p>I am deploying grafana(6.6.0) in kubernetes cluster(v1.15.2) and now I want to install Pie Chart plugin in grafana. When I am not in docker, I could use this command to install:</p>

<pre><code>grafana-cli plugins install grafana-piechart-panel
</code></pre>

<p>But now I am in kubernetes cluster, I could login to the pod and run install command, but when the pod is destroyed and recreated the installing history is lost. What should I do to permanently install plugin in the kubernetes cluster grafana? I have tried to define in yaml like this:</p>

<pre><code>"name": "grafana",
            "image": "grafana/grafana:6.6.0",
            "ports": [
              {
                "name": "http",
                "containerPort": 3000,
                "protocol": "TCP"
              }
            ],
            "env": [
              {
                "name": "GF_INSTALL_PLUGINS",
                "value": "grafana-piechart-panel"
              }
            ],
</code></pre>

<p>and not works for me.</p>

<p>Adding an environment variable <code>GF_INSTALL_PLUGINS=grafana-piechart-panel,grafana-clock-panel</code> will install the plugins for you in the container world</p>

<p>Refer <a href="https://grafana.com/docs/grafana/latest/installation/docker/#install-plugins-in-the-docker-container" rel="noreferrer">https://grafana.com/docs/grafana/latest/installation/docker/#install-plugins-in-the-docker-container</a></p>
