Difference between revisions of "Tfk8s"

From wikieduonline
Jump to navigation Jump to search
(Created page with "* https://github.com/jrhouston/tfk8s {{tf k8s}}")
Tags: Mobile web edit, Mobile edit
 
Tags: Mobile web edit, Mobile edit
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{lc}}
 
* https://github.com/jrhouston/tfk8s
 
* https://github.com/jrhouston/tfk8s
  
 +
[[brew install tfk8s]]
  
  
{{tf k8s}}
+
[[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 ==
 +
* <code>[[helm install]]</code>
 +
 
 +
{{kubernetes_manifest_official_example}}
 +
 
 +
== See also ==
 +
* {{tf k8s}}
 +
 
 +
[[Category:TF]]

Latest revision as of 10:58, 31 March 2023

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[edit]

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

See also[edit]

Advertising: