Difference between revisions of "Tfk8s"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
(8 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
[[kubectl get secrets]] sample -o yaml | tfk8s --strip -o sample.tf | [[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]] | [[Error: Namespace required]] | ||
− | [[kind: | + | [[kind: Deployment]] |
+ | == Related == | ||
+ | * <code>[[helm install]]</code> | ||
+ | {{kubernetes_manifest_official_example}} | ||
− | {{tf k8s}} | + | == 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]
- Terraform provider: Kubernetes,
kubernetes_storage_class_v1, kubernetes_persistent_volume, kubernetes_manifest, kubernetes daemonset, kubernetes_service, kubernetes_namespace, kubernetes_service_account, kubernetes_secret, kubernetes_namespace, kubernetes_service_account_v1, kubernetes_secret_v1, kubernetes horizontal pod autoscaler v1, kubernetes_ingress_v1, kubernetes_persistent_volume_claim_v1
Advertising: