79466182

Date: 2025-02-25 10:34:45
Score: 0.5
Natty:
Report link

I have created a chart that can deploy any kind of k8s resources just using values yaml file.

So you don't need templates/ directory, but a note that it extends values yaml file size. Depends on your use case whether it fits or not.

https://laimison.github.io/universal-helm-chart

echo 'resources:
  - apiVersion: v1
    kind: Pod
    metadata:
      name: universal-helm-chart-pod
    spec:
      containers:
        - name: sleep-container
          image: busybox
          args: ["sleep", "infinity"]
' > /tmp/values.yaml

helm repo add universal-helm-chart https://laimison.github.io/universal-helm-chart

helm install universal-helm-chart universal-helm-chart/universal-helm-chart --version 1.0.0 -n default -f /tmp/values.yaml

kubectl -n default get pods
Reasons:
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: laimison