tfk8s

From wikieduonline
Revision as of 10:58, 31 March 2023 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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: