KubernetesEnvironmentResource
Class sealed net10.0
Represents a Kubernetes environment resource that can host application resources.
namespace Aspire.Hosting.Kubernetes;
public sealed class KubernetesEnvironmentResource : Aspire.Hosting.ApplicationModel.Resource, Aspire.Hosting.ApplicationModel.IComputeEnvironmentResource, Aspire.Hosting.ApplicationModel.IResource{ // ...} ResourceIComputeEnvironmentResourceIResource
10 members
Remarks
Section titled Remarks Initializes a new instance of the
KubernetesEnvironmentResource class. Constructors1
Section titled ConstructorsProperties9
Section titled PropertiesDefaultImagePullPolicyget; setstring Gets or sets the default policy that determines how Docker images are pulled during deployment. Possible values are: "Always" - Always attempt to pull the image from the registry. "IfNotPresent" - Pull the image only if it is not already present locally. "Never" - Never pull the image, use only the local image. The default value is "IfNotPresent".
DefaultServiceTypeget; setstring Gets or sets the default Kubernetes service type to be used when generating artifacts.
DefaultStorageClassNameget; setstring? Specifies the default name of the storage class to be used for persistent volume claims in Kubernetes. This property allows customization of the storage class for specifying storage requirements such as performance, retention policies, and provisioning parameters. If set to null, the default storage class for the cluster will be used.
DefaultStorageReadWritePolicyget; setstring Gets or sets the default access policy for reading and writing to the storage.
DefaultStorageSizeget; setstring Gets or sets the default storage size for persistent volumes.
DefaultStorageTypeget; setstring Specifies the default type of storage used for Kubernetes deployments.
HelmChartDescriptionget; setstring Gets or sets the description of the Helm chart being generated.
HelmChartNameget; setstring Gets or sets the name of the Helm chart to be generated.
HelmChartVersionget; setstring Gets or sets the version of the Helm chart to be generated. This property specifies the version number that will be assigned to the Helm chart, typically following semantic versioning conventions.