Class Registry
Specifies details about an upstream container registry. This can be used to block, remap or indicate that insecure HTTP requests can be used for specific registries. This will be used to generate the [[registry]] entries in the /etc/containers/registries.conf.d/00-neon-cluster.conf file on the cluster nodes.
See more details here: here
Namespace: Neon.Kube.ClusterDef
Assembly: Neon.Kube.dll
Syntax
public class Registry
Properties
Blocked
Optionally blocks pulls of images from registries that match Prefix.
This defaults to false.
Declaration
[JsonProperty(PropertyName = "Blocked", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "blocked", ApplyNamingConventions = false)]
public bool Blocked { get; set; }
Property Value
Type | Description |
---|---|
bool |
Insecure
Optionally indicates that insecure HTTP requests may be used to access the registry.
This defaults to false
.
Declaration
[JsonProperty(PropertyName = "Insecure", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "insecure", ApplyNamingConventions = false)]
public bool Insecure { get; set; }
Property Value
Type | Description |
---|---|
bool |
Location
Optionally enables registry redirection. When specified, this indicates that images
specified to be pulled from Prefix will actually be pulled from
Location instead. This is a nice way to be able to reuse manifests
and Helm charts such that they pull images from an alternate registry without
modification. This defaults to null
.
Declaration
[JsonProperty(PropertyName = "Location", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "location", ApplyNamingConventions = false)]
public string Location { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Specifies the name to be used when persisting this as a V1ContainerRegistry to the cluster. This must be a valid Kubernetes name:
- contain no more than 253 characters
- contain only lowercase alphanumeric characters, '-' or '.'
- start with an alphanumeric character
- end with an alphanumeric character
Declaration
[JsonProperty(PropertyName = "Name", Required = Required.Always)]
[YamlMember(Alias = "name", ApplyNamingConventions = false)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Password
Optionally specifies the password to be used for authenticating with the upstream
container registry. This defaults to null
.
Declaration
[JsonProperty(PropertyName = "Password", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "password", ApplyNamingConventions = false)]
public string Password { get; set; }
Property Value
Type | Description |
---|---|
string |
Prefix
Specifies registry prefix, optionally with a subdomain "*" wildcard character for subdomain matching.
Declaration
[JsonProperty(PropertyName = "Prefix", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "prefix", ApplyNamingConventions = false)]
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
string |
Username
Optionally specifies the username to be used for authenticating with the upstream
container registry. This defaults to null
.
Declaration
[JsonProperty(PropertyName = "Username", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "username", ApplyNamingConventions = false)]
public string Username { get; set; }
Property Value
Type | Description |
---|---|
string |