Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.97 KB

File metadata and controls

58 lines (42 loc) · 1.97 KB
page_title cozystack_httpcache Resource - cozystack
subcategory
description A Cozystack managed HTTP cache, deployed inside a tenant namespace. The haproxy and nginx tuning blocks use server defaults.

cozystack_httpcache (Resource)

A Cozystack managed HTTP cache, deployed inside a tenant namespace. The haproxy and nginx tuning blocks use server defaults.

Example Usage

resource "cozystack_httpcache" "cdn" {
  name      = "cdn"
  namespace = "tenant-root"

  size      = "10Gi"
  endpoints = ["192.0.2.10:80", "192.0.2.11:80"]
}

Schema

Required

  • name (String) HTTPCache instance name (metadata.name). Immutable.
  • namespace (String) Tenant namespace the application is created in. Immutable.

Optional

  • endpoints (List of String) Upstream endpoints as a list of ip:port.
  • external (Boolean) Enable external access from outside the cluster.
  • size (String) Persistent volume size for cache data (quantity, e.g. 10Gi).
  • storage_class (String) StorageClass used to store the data.
  • wait_for_ready (Boolean) Block on create/update until the tenant's Ready condition is true.
  • wait_timeout (String) Maximum time to wait when wait_for_ready is set (Go duration, e.g. 10m).

Read-Only

  • chart_version (String) Deployed chart version (status.version).
  • id (String) Synthetic identifier in the form namespace/name.
  • ready (Boolean) Whether the application's Ready condition is true.
  • uid (String) Server-assigned object UID (metadata.uid). Stable across updates; changes on recreate.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# HTTPCache instances are imported as "<namespace>/<name>".
terraform import cozystack_httpcache.cdn tenant-root/cdn