You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the inputs above are valid, the private registry should be created.
Actual Behavior
Error: Missing required argument
....
The argument "port" is required, but no definition was found.
Steps to Reproduce
terraform apply
Note: No registry need exist to perform this test
Important Factors
Being able to create the private registry without a port is important for an HTTPS registry. The Docker daemon uses port 443 by default unless overridden. When the registry is added to the underlying K8s cluster(s) on NKE, the certificates for HTTPS are deployed to the worker nodes' Docker cert.d folder in the format <url>:<port>. If a port is not provided by karbonctl or API, the cert is stored in the format <url>. Adding port = 443 to the declaration allows the registry to be created, but requires kubernetes deployments to reference images by my.private.url:443/myimage instead of my.private.url/myimage or certificate validation will fail. Both the karbonctl and POST to /karbon/v1-alpha.1/registries allow creating a registry without providing a port.
References
Nutanix API for /karbon/v1-alpha.1/registries endpoint:
Nutanix Cluster Information
Terraform Version
Terraform 1.3.7
on windows_amd64
Affected Resource(s)
resource "nutanix_karbon_private_registry"
Terraform Configuration Files
Expected Behavior
Given the inputs above are valid, the private registry should be created.
Actual Behavior
Steps to Reproduce
terraform apply
Note: No registry need exist to perform this test
Important Factors
Being able to create the private registry without a port is important for an HTTPS registry. The Docker daemon uses port 443 by default unless overridden. When the registry is added to the underlying K8s cluster(s) on NKE, the certificates for HTTPS are deployed to the worker nodes' Docker cert.d folder in the format
<url>:<port>
. If a port is not provided by karbonctl or API, the cert is stored in the format<url>
. Addingport = 443
to the declaration allows the registry to be created, but requires kubernetes deployments to reference images bymy.private.url:443/myimage
instead ofmy.private.url/myimage
or certificate validation will fail. Both the karbonctl and POST to/karbon/v1-alpha.1/registries
allow creating a registry without providing a port.References
Nutanix API for
/karbon/v1-alpha.1/registries
endpoint:https://www.nutanix.dev/api_references/nke/#/c4ae13464965f-create-the-private-registry-entry-in-nke-with-the-provided-configuration-api-format-https-server-nutanix-com-9440-karbon-v1-alpha-1-registries
The text was updated successfully, but these errors were encountered: