1 개요[ | ]
- minimal helm chart
- 미니멀 헬름 차트
Bash
Copy
rm -rf /tmp/chart1
mkdir -p /tmp/chart1/templates
cd /tmp/chart1
cat <<EOF > Chart.yaml
apiVersion: v2
name: chart1
description: A Helm chart for Kubernetes
type: application
version: 0.1.0
appVersion: "1.16.0"
EOF
cat <<EOF > values.yaml
replicaCount: 1
image:
repository: nginx
pullPolicy: IfNotPresent
tag: ""
EOF
cat <<EOF > templates/aaa.yaml
{{ toYaml . }}
EOF
helm template .
Console
Copy
root@wsl:/tmp/chart1# find -type f
./templates/aaa.yaml
./values.yaml
./Chart.yaml
Console
Copy
root@wsl:/tmp/chart1# helm template .
---
# Source: chart1/templates/aaa.yaml
Capabilities:
APIVersions:
- v1
- admissionregistration.k8s.io/v1
- admissionregistration.k8s.io/v1beta1
...
- storage.k8s.io/v1alpha1
- apiextensions.k8s.io/v1beta1
- apiextensions.k8s.io/v1
HelmVersion:
git_commit: 835b7334cfe2e5e27870ab3ed4135f136eecc704
git_tree_state: clean
go_version: go1.18.9
version: v3.10.3
KubeVersion:
Major: "1"
Minor: "25"
Version: v1.25.0
Chart:
IsRoot: true
apiVersion: v2
appVersion: 1.16.0
description: A Helm chart for Kubernetes
name: chart1
type: application
version: 0.1.0
Files: {}
Release:
IsInstall: true
IsUpgrade: false
Name: release-name
Namespace: default
Revision: 1
Service: Helm
Subcharts: {}
Template:
BasePath: chart1/templates
Name: chart1/templates/aaa.yaml
Values:
image:
pullPolicy: IfNotPresent
repository: nginx
tag: ""
replicaCount: 1
2 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.