| 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. |
A Cozystack managed HTTP cache, deployed inside a tenant namespace. The haproxy and nginx tuning blocks use server defaults.
resource "cozystack_httpcache" "cdn" {
name = "cdn"
namespace = "tenant-root"
size = "10Gi"
endpoints = ["192.0.2.10:80", "192.0.2.11:80"]
}name(String) HTTPCache instance name (metadata.name). Immutable.namespace(String) Tenant namespace the application is created in. Immutable.
endpoints(List of String) Upstream endpoints as a list ofip: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'sReadycondition is true.wait_timeout(String) Maximum time to wait whenwait_for_readyis set (Go duration, e.g.10m).
chart_version(String) Deployed chart version (status.version).id(String) Synthetic identifier in the formnamespace/name.ready(Boolean) Whether the application'sReadycondition is true.uid(String) Server-assigned object UID (metadata.uid). Stable across updates; changes on recreate.
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