title: Can I use Consul KV with Vault k8s injector?
body: <p>I went through the official example of <a href="https://www.vaultproject.io/docs/platform/k8s/injector" rel="nofollow noreferrer">k8s injector</a> and it did work without problems.</p>
  <p>the annotations as mentioned in the example looks as follwoing:</p>
  <pre class="lang-yaml prettyprint-override"><code>vault.hashicorp.com/agent-inject: true
  vault.hashicorp.com/agent-inject-status: update
  vault.hashicorp.com/agent-inject-secret-foo: 'database/roles/app'
  vault.hashicorp.com/agent-inject-template-foo: |
    {{- with secret &quot;database/creds/db-app&quot; -}}
    postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable
    {{- end }}
  vault.hashicorp.com/role: 'app'
  </code></pre>
  <p>I was thinking if it is possible to get values from Consul's KV as well, so I've changed the template to following:</p>
  <pre class="lang-yaml prettyprint-override"><code>vault.hashicorp.com/agent-inject-template-foo: |
  
    value from consul = {{ key &quot;test&quot; }}
  
    {{- with secret &quot;database/creds/db-app&quot; -}}
    postgres://{{ .Data.username }}:{{ .Data.password }}@postgres:5432/mydb?sslmode=disable
    {{- end }}
  
  </code></pre>
  <p>and I did recevie the following error:</p>
  <pre><code>v.block(test): Get &quot;http://127.0.0.1:8500/v1/kv/test?stale=&amp;wait=60000ms&quot;: dial tcp 127.0.0.1:8500: connect: connection refused (retry attempt 1 after &quot;250ms&quot;)
  </code></pre>
  <p>which is understandable, since the consul address should be changed. My question is; is there a way to specifiy consul connection configurations such as address, token and tls certs for the vault injector?</p>