Kubernetes no matches for kind "AzureKeyVaultSecret" in version "v1"

10/29/2019

I am trying to link kubernetes with azure key vault. while trying to create an AzureKeyVaultSecret with yml file, referring https://mrdevops.io/introducing-azure-key-vault-to-kubernetes-931f82364354

but its giving error as

error: unable to recognize "test.yml":no matches for kind "AzureKeyVaultSecret" in version "v1"

yml file:

apiVersion: v1
kind: AzureKeyVaultSecret
metadata:
   name: azure-keyvault-certificate
   namespace: default
spec:
  vault:
    name: my-keyvault-name
    object:
      type: certificate
       name: my-kv-cert
output:
  secret:
    name: my_kv-cert
    type: kubernetes.io/tls
-- arunraj414
azure
azure-keyvault
kubernetes

1 Answer

10/29/2019

Did you deploy the below components

Azure Key Vault Controller —synchronize Azure Key Vault secrets into native Kubernetes secrets, and keeps them updated

Azure Key Vault Env Injector — transparently inject Azure Key Vault Secrets into applications running in Kubernetes containers, without revealing its content to Kubernetes resources, Etcd or its users

deploy the files from here.

-- P Ekambaram
Source: StackOverflow