artifacts

Next.js Frontend Helm Chart

This Helm chart deploys a Next.js frontend application on Kubernetes.
It supports automatic certificate generation via cert-manager (if a ClusterIssuer exists), as well as plain HTTP.


Prerequisites


How to use the chart

  1. Add this repo into your local
    helm add lynasovann https://lynasovann.github.io/artifacts/
    helm repo update
    
  2. Create the release
    helm install my-app lynasovann/nextjs --version 0.2.3
    
  3. Install with a custom everything
    helm install my-app lynasovann/nextjs --set image.repository=lynakiddy/nextjs --set image.tag=1.0.2 --set domainName=user.lynasovann.site --set private.enabled=false --version 0.2.3
    

Parameter

You can customize your deployment by editing values.yaml or using –set flags.

Key Description Default
replicaCount Number of frontend replicas 1
image.repository Frontend image repository lynakiddy/register
image.tag Frontend image tag latest
image.containerPort Container port for the frontend 3000
service.type Kubernetes service type ClusterIP
service.port Service port 3000
service.targetPort Target port on the container 3000
ingress.enabled Enable Ingress true
ingress.className Ingress class name nginx
ingress.hosts[0].host Hostname for ingress register.lynasovann.site
ingress.tls.enabled Enable TLS via cert-manager true
certManagerClusterIssuer ClusterIssuer name (for automatic TLS) letsencrypt-prod
private.enabled Enable pulling image from private registry true
private.pullSecret Name of the Kubernetes secret for private registry my-registry-key