aspnet-core

by joaquinito2051

Helm chartv3.5.5App 6.0.10

ASP.NET Core is an open-source framework for web application development created by Microsoft. It runs on both the full .NET Framework, on Windows, and the cross-platform .NET Core.

About this chart

ASP.NET packaged by Bitnami

ASP.NET Core is an open-source framework for web application development created by Microsoft. It runs on both the full .NET Framework, on Windows, and the cross-platform .NET Core.

Overview of ASP.NET

Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.

Azure-ready Charts with Containers from marketplace.azurecr.io

This Helm Chart has been configured to pull the Container Images from the Azure Marketplace Public Repository. The following command allows you to download and install all the charts from this repository.

$ helm repo add bitnami-azure https://marketplace.azurecr.io/helm/v1/repo

TL;DR

  helm repo add my-repo https://charts.bitnami.com/bitnami
  helm install my-release my-repo/aspnet-core

Introduction

Bitnami charts for Helm are carefully engineered, actively maintained and are the quickest and easiest way to deploy containers on a Kubernetes cluster that are ready to handle production workloads.

This chart bootstraps an ASP.NET Core deployment on a Kubernetes cluster using the Helm package manager.

Bitnami charts can be used with Kubeapps for deployment and management of Helm Charts in clusters.

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.2.0+

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add my-repo https://charts.bitnami.com/bitnami
$ helm install my-release my-repo/aspnet-core

These commands deploy a ASP.NET Core application on the Kubernetes cluster in the default configuration.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Common parameters

NameDescriptionValue
kubeVersionOverride Kubernetes version""
nameOverrideString to partially override aspnet-core.fullname""
fullnameOverrideString to fully override aspnet-core.fullname""
namespaceOverrideString to fully override common.names.namespace""
commonLabelsLabels to add to all deployed objects{}
commonAnnotationsAnnotations to add to all deployed objects{}
clusterDomainKubernetes cluster domain namecluster.local
extraDeployArray of extra objects to deploy with the release[]

ASP.NET Core parameters

NameDescriptionValue
image.registryASP.NET Core image registrydocker.io
image.repositoryASP.NET Core image repositorybitnami/aspnet-core
image.tagASP.NET Core image tag (immutable tags are recommended)6.0.10-debian-11-r0
image.digestASP.NET Core image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag""
image.pullPolicyASP.NET Core image pull policyIfNotPresent
image.pullSecretsASP.NET Core image pull secrets[]
image.debugEnable image debug modefalse
commandOverride default container command (useful when using custom images)[]
argsOverride default container args (useful when using custom images)[]
bindURLsURLs to bindhttp://+:8080
extraEnvVarsExtra environment variables to be set on ASP.NET Core container[]
extraEnvVarsCMConfigMap with extra environment variables""
extraEnvVarsSecretSecret with extra environment variables""

ASP.NET Core deployment parameters

NameDescriptionValue
replicaCountNumber of ASP.NET Core replicas to deploy1
schedulerNameName of the k8s scheduler (other than default)""
priorityClassNameASP.NET Core pod priority class name""
topologySpreadConstraintsTopology Spread Constraints for pod assignment[]
hostAliasesASP.NET Core pod host aliases[]
extraVolumesOptionally specify extra list of additional volumes for ASP.NET Core pods[]
extraVolumeMountsOptionally specify extra list of additional volumeMounts for ASP.NET Core container(s)[]
sidecarsAdd additional sidecar containers to the ASP.NET Core pods[]
initContainersAdd additional init containers to the ASP.NET Core pods[]
lifecycleHooksAdd lifecycle hooks to the ASP.NET Core deployment{}
podAnnotationsAnnotations for ASP.NET Core pods{}
podLabelsExtra labels for ASP.NET Core pods{}
updateStrategy.typeDeployment strategy typeRollingUpdate
podAffinityPresetPod affinity preset. Ignored if affinity is set. Allowed values: soft or hard""
podAntiAffinityPresetPod anti-affinity preset. Ignored if affinity is set. Allowed values: soft or hardsoft
nodeAffinityPreset.typeNode affinity preset type. Ignored if affinity is set. Allowed values: soft or hard""
nodeAffinityPreset.keyNode label key to match. Ignored if affinity is set""
nodeAffinityPreset.valuesNode label values to match. Ignored if affinity is set[]
affinityAffinity for pod assignment{}
nodeSelectorNode labels for pod assignment{}
tolerationsTolerations for pod assignment[]
resources.limitsThe resources limits for the ASP.NET Core container{}
resources.requestsThe requested resources for the ASP.NET Core container{}
containerPorts.httpPort to expose at ASP.NET Core container level8080
podSecurityContext.enabledEnabled ASP.NET Core pods' Security Contextfalse
podSecurityContext.sysctlsSet namespaced sysctls for the ASP.NET Core pods[]
podSecurityContext.fsGroupSet Security Context fsGroup0
containerSecurityContext.enabledEnabled ASP.NET Core containers' Security Contextfalse
containerSecurityContext.runAsUserSet ASP.NET Core container's Security Context runAsUser0
containerSecurityContext.runAsNonRootSet container's Security Context runAsNonRootfalse
livenessProbe.enabledEnable livenessProbetrue
livenessProbe.initialDelaySecondsInitial delay seconds for livenessProbe10
livenessProbe.periodSecondsPeriod seconds for livenessProbe20
livenessProbe.timeoutSecondsTimeout seconds for livenessProbe1
livenessProbe.failureThresholdFailure threshold for livenessProbe6
livenessProbe.successThresholdSuccess threshold for livenessProbe1
readinessProbe.enabledEnable readinessProbetrue
readinessProbe.initialDelaySecondsInitial delay seconds for readinessProbe10
readinessProbe.periodSecondsPeriod seconds for readinessProbe20
readinessProbe.timeoutSecondsTimeout seconds for readinessProbe1
readinessProbe.failureThresholdFailure threshold for readinessProbe6
readinessProbe.successThresholdSuccess threshold for readinessProbe1
startupProbe.enabledEnable startupProbefalse
startupProbe.initialDelaySecondsInitial delay seconds for startupProbe10
startupProbe.periodSecondsPeriod seconds for startupProbe20
startupProbe.timeoutSecondsTimeout seconds for startupProbe1
startupProbe.failureThresholdFailure threshold for startupProbe6
startupProbe.successThresholdSuccess threshold for startupProbe1
customLivenessProbeCustom livenessProbe that overrides the default one{}
`customS

Deploy aspnet-core with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has aspnet-core on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartaspnet-core is pinned at v3.5.5 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply