Skip to content
Docs Try Aspire

KubernetesEnvironmentResource Properties

Class Properties 9 members
Represents a Kubernetes environment resource that can host application resources.
DefaultImagePullPolicy Section titled DefaultImagePullPolicy string
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".
public string DefaultImagePullPolicy { get; set; }
DefaultServiceType Section titled DefaultServiceType string
Gets or sets the default Kubernetes service type to be used when generating artifacts.
public string DefaultServiceType { get; set; }
The default value is "ClusterIP". This property determines the type of service (e.g., ClusterIP, NodePort, LoadBalancer) created in Kubernetes for the application.
DefaultStorageClassName Section titled DefaultStorageClassName nullable string?
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.
public string? DefaultStorageClassName { get; set; }
DefaultStorageReadWritePolicy Section titled DefaultStorageReadWritePolicy string
Gets or sets the default access policy for reading and writing to the storage.
public string DefaultStorageReadWritePolicy { get; set; }
DefaultStorageSize Section titled DefaultStorageSize string
Gets or sets the default storage size for persistent volumes.
public string DefaultStorageSize { get; set; }
DefaultStorageType Section titled DefaultStorageType string
Specifies the default type of storage used for Kubernetes deployments.
public string DefaultStorageType { get; set; }
This property determines the storage medium used for the application. Possible values include "emptyDir", "hostPath", "pvc"
HelmChartDescription Section titled HelmChartDescription string
Gets or sets the description of the Helm chart being generated.
public string HelmChartDescription { get; set; }
HelmChartName Section titled HelmChartName string
Gets or sets the name of the Helm chart to be generated.
public string HelmChartName { get; set; }
HelmChartVersion Section titled HelmChartVersion string
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.
public string HelmChartVersion { get; set; }