Creating Secrets in K8 using Multiple Provider -Terraform

Harjeet Singh
2 min readJun 26, 2021

I recently got a chance to work on terraform in detail. One of the problems we solved was writing secrets to different K8 namespaces using multiple providers for Kubernetes with terraform.

So the official docs have a lot of information to interact with “Kubernetes providerhere. I have used the host and token approach to interact with K8. Let’s write a very basic provider and use it to copy secrets.

You can decide how to design your code by placing different providers in a provider.tf .(trying to bring…

--

--

Harjeet Singh

Problem Solver, writes on Tech, finance and Product. Watch out for my new creation, "THE PM SERIES"