nextjs

by iCoreTech, Inc.

Helm chartv1.2.0App 1.0.0MITVerified publisher

Generic Helm chart for Nextjs apps on Kubernetes

About this chart

nextjs

Generic Helm chart for Nextjs apps on Kubernetes

Homepage: https://github.com/icoretech/helm

Maintainers

NameEmailUrl
masterkain[email protected]https://github.com/masterkain

Source Code

Gateway API HTTPRoute Example

web:
  httpRoute:
    enabled: true
    parentRefs:
      - name: shared-gateway
        namespace: infra
        sectionName: https
    hostnames:
      - nextjs.example.com

Values

KeyTypeDefaultDescription
fullnameOverridestring""
nameOverridestring""
web.affinityobject{}
web.cachePersistentVolume.accessModes[0]string"ReadWriteOnce"
web.cachePersistentVolume.annotationsobject{}
web.cachePersistentVolume.enabledboolfalse
web.cachePersistentVolume.existingClaimstring""
web.cachePersistentVolume.mountPathstring"/app/.next/cache"
web.cachePersistentVolume.sizestring"1Gi"
web.cachePersistentVolume.storageClassstring""
web.cachePersistentVolume.volumeModestring""
web.dataVolume.accessModes[0]string"ReadWriteOnce"
web.dataVolume.annotationsobject{}
web.dataVolume.enabledboolfalse
web.dataVolume.existingClaimstring""
web.dataVolume.mountPathstring"/app/data"
web.dataVolume.sizestring"1Gi"
web.dataVolume.storageClassstring""
web.dataVolume.volumeModestring""
web.envobject{}
web.extraContainerslist[]
web.extraEnvFromlist[]
web.extraEnvslist[]
web.hpa.cpustringnil
web.hpa.enabledboolfalse
web.hpa.maxReplicasint10
web.hpa.memorystringnil
web.hpa.requestsstringnil
web.httpRoute.annotationsobject{}
web.httpRoute.enabledboolfalse
web.httpRoute.hostnameslist[]
web.httpRoute.matches[0].path.typestring"PathPrefix"
web.httpRoute.matches[0].path.valuestring"/"
web.httpRoute.parentRefslist[]
web.imagestring"nginx:latest"
web.imagePullPolicystring"IfNotPresent"
web.imagePullSecretsstring""
web.ingress.annotationsobject{}
web.ingress.enabledboolfalse
web.ingress.hostslist[]
web.ingress.ingressClassNamestring"nginx"
web.ingress.tlslist[]
web.initContainerslist[]
web.livenessProbe.enabledboolfalse
web.livenessProbe.failureThresholdint2
web.livenessProbe.httpGet.endpointstring"/api/hc?source=livenessProbe"
web.livenessProbe.httpGet.httpHeaderslist[]
web.livenessProbe.initialDelaySecondsint0
web.livenessProbe.periodSecondsint10
web.livenessProbe.successThresholdint1
web.livenessProbe.timeoutSecondsint5
web.nodeSelectorobject{}
web.podAnnotationsobject{}
web.podDisruptionBudget.enabledboolfalse
web.podDisruptionBudget.maxUnavailablestringnil
web.podDisruptionBudget.minAvailablestringnil
web.podLabelsobject{}
web.readinessProbe.enabledboolfalse
web.readinessProbe.failureThresholdint2
web.readinessProbe.httpGet.endpointstring"/api/hc?source=readinessProbe"
web.readinessProbe.httpGet.httpHeaderslist[]
web.readinessProbe.initialDelaySecondsint0
web.readinessProbe.periodSecondsint10
web.readinessProbe.successThresholdint1
web.readinessProbe.timeoutSecondsint5
web.replicaCountint1
web.resourcesobject{}
web.runtimeClassNamestringnil
web.secretEnvobject{}
web.service.annotationsobject{}
web.service.enabledbooltrue
web.service.nodePortstringnil
web.service.portint3000
web.service.typestring"ClusterIP"
web.terminationGracePeriodSecondsint0
web.tolerationslist[]
web.updateStrategy.rollingUpdate.maxSurgeint1
web.updateStrategy.rollingUpdate.maxUnavailableint0
web.updateStrategy.typestring"RollingUpdate"

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy nextjs with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has nextjs 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 chartnextjs is pinned at v1.2.0 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