tfk8s

From wikieduonline
Jump to navigation Jump to search

brew install tfk8s


kubectl get secrets sample -o yaml | tfk8s --strip -o sample.tf
kubectl get deployment your-deployment -o yaml |  tfk8s --strip -o your-deployment-in-terraform.tf
kubectl get service your-service -o yaml |  tfk8s --strip -o your-service-in-terraform.tf
Error: Namespace required
kind: Deployment

Related

resource "kubernetes_manifest" "test-configmap" {
 manifest = {
   "apiVersion" = "v1"
   "kind"       = "ConfigMap"
   "metadata" = {
     "name"      = "test-config"
     "namespace" = "default"
   }
   "data" = {
     "foo" = "bar"
   }
 }
}

See also

Advertising: