Difference between revisions of "Terraform K8s resources: kubernetes manifest"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(8 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
== Official example == | == Official example == | ||
{{kubernetes_manifest_official_example}} | {{kubernetes_manifest_official_example}} | ||
+ | |||
+ | |||
+ | |||
+ | === Timeouts official example === | ||
+ | |||
+ | {{kubernetes_manifest timeouts}} | ||
+ | |||
+ | |||
[[Terraform K8s resources: kubernetes_labels]] | [[Terraform K8s resources: kubernetes_labels]] | ||
[[Terraform K8s resources: kubernetes_annotations]] | [[Terraform K8s resources: kubernetes_annotations]] | ||
− | |||
== Related == | == Related == | ||
− | * [[tfk8s]] tool | + | * <code>[[tfk8s]]</code> tool |
+ | * [[Provided IP is already allocated]] | ||
== See also == | == See also == | ||
+ | * {{kubernetes_manifest}} | ||
* {{Terraform K8s}} | * {{Terraform K8s}} | ||
+ | * {{K8s manifest}} | ||
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 16:51, 10 July 2024
Official example[edit]
resource "kubernetes_manifest" "test-configmap" { manifest = { "apiVersion" = "v1" "kind" = "ConfigMap" "metadata" = { "name" = "test-config" "namespace" = "default" } "data" = { "foo" = "bar" } } }
Timeouts official example[edit]
resource "kubernetes_manifest" "test" { manifest = { // ... } wait { fields = { # Check the phase of a pod "status.phase" = "Running" # Check a container's status "status.containerStatuses[0].ready" = "true", # Check an ingress has an IP "status.loadBalancer.ingress[0].ip" = "^(\\d+(\\.|$)){4}" # Check the replica count of a Deployment "status.readyReplicas" = "2" } } timeouts { create = "10m" update = "10m" delete = "30s" } }
Terraform K8s resources: kubernetes_labels Terraform K8s resources: kubernetes_annotations
Related[edit]
See also[edit]
- Terraform resource:
kubernetes_manifest, creationTimestamp
- 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
- Kubernetes manifest,
creationTimestamp
Advertising: