deploy docusaurs projecto to kubernetes #8856
Replies: 1 comment
-
|
That error is not coming from Docusaurus itself — it’s coming from Helm/Kubernetes chart validation. What the error means
This happens when you try to install or package a Helm chart, but the chart structure is invalid. In a valid Helm chart, you MUST have: Inside apiVersion: v2
name: docusaurus-site
version: 0.1.0
description: Docusaurus static site deploymentIf Why it’s happening in your caseYou likely tried one of these:
Correct way to deploy Docusaurus on KubernetesDocusaurus is a static site, so you must:
npm run buildThis generates:
Dockerfile example: FROM nginx:alpine
COPY build /usr/share/nginx/html
Deployment example: apiVersion: apps/v1
kind: Deployment
metadata:
name: docusaurus
spec:
replicas: 1
selector:
matchLabels:
app: docusaurus
template:
metadata:
labels:
app: docusaurus
spec:
containers:
- name: nginx
image: your-image:latest
ports:
- containerPort: 80Key fix for your errorIf you're using Helm: ✔ Make sure this exists: ✔ Not:
✔ And must include: apiVersion: v2
name: anything
version: 1.0.0SummaryThis is not a Docusaurus issue — it's a missing or invalid Helm chart metadata file ( If this answer helped or pointed you in the right direction, I'd appreciate it if you could mark it as the accepted answer so it's easier for others with the same issue to find. Also, if you found my contribution useful, I'd appreciate it if you could check out my GitHub profile, follow me, and star any repositories you find interesting. GitHub: https://github.com/Advait251206 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I have a docusaurs project and I want to deploy to kubernetes, but I have this error:Error: validation: chart.metadata is required.
Do you know what's this related to?
Beta Was this translation helpful? Give feedback.
All reactions