미니멀 헬름 차트

Jmnote (토론 | 기여)님의 2023년 1월 17일 (화) 16:29 판 (새 문서: ==개요== ;minimal helm chart ;미니멀 헬름 차트 <syntaxhighlight lang='bash'> rm -rf /tmp/chart1 mkdir -p /tmp/chart1/templates cd /tmp/chart1 cat <<EOF > Chart.yaml...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

minimal helm chart
미니멀 헬름 차트
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 .
root@wsl:/tmp/chart1# ll
total 20
drwxr-xr-x 3 root root 4096 Jan 17 16:26 ./
drwxrwxrwt 3 root root 4096 Jan 17 16:26 ../
-rw-r--r-- 1 root root  123 Jan 17 16:26 Chart.yaml
drwxr-xr-x 2 root root 4096 Jan 17 16:26 templates/
-rw-r--r-- 1 root root   80 Jan 17 16:26 values.yaml
root@wsl:/tmp/chart1# helm template .
---
# Source: chart1/templates/a.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 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}