10
10
<p >
11
11
12
12
``` bash
13
- helm create chart-test # # this would create a helm
13
+ helm create chart-test # # this creates a basic helm chart
14
14
```
15
15
16
16
</p >
17
17
</details >
18
18
19
- ### Running a Helm chart
20
-
19
+ ### Add the Bitnami repo at https://charts.bitnami.com/bitnami to Helm
21
20
<details ><summary >show</summary >
22
21
<p >
23
22
24
23
``` bash
25
- helm install -f myvalues.yaml myredis ./redis
24
+ helm repo add bitnami https://charts.bitnami.com/bitnami
25
+ ```
26
+
27
+ Show the list of installed repositories:
28
+ ``` bash
29
+ helm repo list
26
30
```
27
31
28
32
</p >
29
33
</details >
30
34
31
- ### Find pending Helm deployments on all namespaces
35
+ ### Using Helm repo
32
36
33
37
<details ><summary >show</summary >
34
38
<p >
35
39
40
+ Add, list, remove, update and index chart repos
41
+
36
42
``` bash
37
- helm list --pending -A
43
+ helm repo add [NAME] [URL] [flags]
44
+
45
+ helm repo list / helm repo ls
46
+
47
+ helm repo remove [REPO1] [flags]
48
+
49
+ helm repo update / helm repo up
50
+
51
+ helm repo update [REPO1] [flags]
52
+
53
+ helm repo index [DIR] [flags]
38
54
```
39
55
40
56
</p >
41
57
</details >
42
58
43
- ### Uninstall a Helm release
44
-
59
+ ### Search Repositories for a Chart
45
60
<details ><summary >show</summary >
46
61
<p >
47
62
63
+ Search all installed repositories for a chart
64
+
48
65
``` bash
49
- helm uninstall -n namespace release_name
66
+ helm search repo [keyword]
50
67
```
51
68
52
69
</p >
53
70
</details >
54
71
55
- ### Upgrading a Helm chart
72
+ ### Download a Helm chart from a repository
56
73
57
74
<details ><summary >show</summary >
58
75
<p >
59
76
60
77
``` bash
61
- helm upgrade -f myvalues.yaml -f override.yaml redis ./redis
78
+ helm pull [chart URL | repo/chartname] [...] [flags] # # this would download a chart, but not install it
79
+ helm pull --untar [repo/chartname] # untar the chart after downloading it (does not create a release)
62
80
```
63
81
64
82
</p >
65
83
</details >
66
84
67
- ### Using Helm repo
85
+ ### Create a Release
68
86
69
87
<details ><summary >show</summary >
70
88
<p >
71
89
72
- Add, list, remove, update and index chart repos
90
+ Create a release, creating the resources defined in the chart
73
91
74
92
``` bash
75
- helm repo add [NAME] [URL] [flags]
76
-
77
- helm repo list / helm repo ls
93
+ helm install -f myvalues.yaml myredis ./redis # creates a release from a local chart
94
+ helm install [releasename] [repo/chartname] # creates a release from a chart in a repo
95
+ # Example: helm install my-app bitnami/nginx
96
+ ```
78
97
79
- helm repo remove [REPO1] [flags]
98
+ </p >
99
+ </details >
80
100
81
- helm repo update / helm repo up
101
+ ### Find pending Helm deployments on all namespaces
82
102
83
- helm repo update [REPO1] [flags]
103
+ <details ><summary >show</summary >
104
+ <p >
84
105
85
- helm repo index [DIR] [flags]
106
+ ``` bash
107
+ helm list --pending -A
86
108
```
87
109
88
110
</p >
89
111
</details >
90
112
91
- ### Download a Helm chart from a repository
113
+ ### Uninstall a Helm release
92
114
93
115
<details ><summary >show</summary >
94
116
<p >
95
117
96
118
``` bash
97
- helm pull [chart URL | repo/chartname] [...] [flags] # # this would download a helm, not install
98
- helm pull --untar [rep/chartname] # untar the chart after downloading it
119
+ helm uninstall -n namespace releasename
99
120
```
100
121
101
122
</p >
102
123
</details >
103
124
104
- ### Add the Bitnami repo at https://charts.bitnami.com/bitnami to Helm
125
+ ### Upgrading a Helm chart
126
+
105
127
<details ><summary >show</summary >
106
128
<p >
107
-
129
+
108
130
``` bash
109
- helm repo add bitnami https://charts.bitnami.com/bitnami
131
+ helm upgrade [releasename] [repo/chartname] # Upgrade a chart from a repository
132
+ helm upgrade -f myvalues.yaml -f override.yaml redis ./redis # Upgrade a local chart from a file
110
133
```
111
-
134
+
112
135
</p >
113
136
</details >
114
137
115
- ### Write the contents of the values.yaml file of the ` bitnami/node ` chart to standard output
138
+ ### Write the contents of the values.yaml of a chart to standard output
116
139
<details ><summary >show</summary >
117
140
<p >
118
-
141
+
119
142
``` bash
120
- helm show values bitnami/node
143
+ helm show values [repo/chartname]
121
144
```
122
-
145
+
123
146
</p >
124
147
</details >
125
148
@@ -140,7 +163,7 @@ which returns
140
163
# # @param replicaCount Specify the number of replicas for the application
141
164
replicaCount: 1
142
165
```
143
-
166
+
144
167
We can use the ` --set ` argument during installation to override attribute values. Hence, to set the replica count to 5, we need to run
145
168
``` bash
146
169
helm install mynode bitnami/node --set replicaCount=5
0 commit comments