Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
helm3
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
helm3
Commits
645cf0e1
Commit
645cf0e1
authored
Jun 23, 2016
by
Matt Butcher
Committed by
GitHub
Jun 23, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #868 from technosophos/docs/unify-examples
docs(examples): unify the examples
parents
ca6151f8
5e63b5e9
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
8 deletions
+23
-8
README.md
docs/examples/alpine/README.md
+4
-0
alpine-pod.yaml
docs/examples/alpine/templates/alpine-pod.yaml
+13
-3
configmap.yaml
docs/examples/nginx/templates/configmap.yaml
+1
-0
deployment.yaml
docs/examples/nginx/templates/deployment.yaml
+4
-4
svc.yaml
docs/examples/nginx/templates/svc.yaml
+1
-1
No files found.
docs/examples/alpine/README.md
View file @
645cf0e1
#Alpine: A simple Helm chart
Run a single pod of Alpine Linux.
This example was generated using the command
`helm create alpine`
.
This example was generated using the command
`helm create alpine`
.
The
`templates/`
directory contains a very simple pod resource with a
The
`templates/`
directory contains a very simple pod resource with a
...
...
docs/examples/alpine/templates/alpine-pod.yaml
View file @
645cf0e1
...
@@ -3,13 +3,23 @@ kind: Pod
...
@@ -3,13 +3,23 @@ kind: Pod
metadata
:
metadata
:
name
:
{{
.Release.Name
}}
-{{.Chart.Name}}
name
:
{{
.Release.Name
}}
-{{.Chart.Name}}
labels
:
labels
:
# The "heritage" label is used to track which tool deployed a given chart.
# It is useful for admins who want to see what releases a particular tool
# is responsible for.
heritage
:
{{
.Release.Service
}}
heritage
:
{{
.Release.Service
}}
chartName
:
{{
.Chart.Name
}}
# The "release" convention makes it easy to tie a release to all of the
chartVersion
:
{{
.Chart.Version | quote
}}
# Kubernetes resources that were created as part of that release.
release
:
{{
.Release.Name
}}
# This makes it easy to audit chart usage.
chart
:
{{
.Chart.Name
}}
-{{.Chart.Version}}
annotations
:
annotations
:
"
helm.sh/created"
:
"
{{.Release.Time.Seconds}}"
"
helm.sh/created"
:
"
{{.Release.Time.Seconds}}"
spec
:
spec
:
restartPolicy
:
{{
default "Never" .restart_policy
}}
# This shows how to use a simple value. This will look for a passed-in value
# called restartPolicy. If it is not found, it will use the default value.
# {{default "Never" .restartPolicy}} is a slightly optimized version of the
# more conventional syntax: {{.restartPolicy | default "Never"}}
restartPolicy
:
{{
default "Never" .restartPolicy
}}
containers
:
containers
:
-
name
:
waiter
-
name
:
waiter
image
:
"
alpine:3.3"
image
:
"
alpine:3.3"
...
...
docs/examples/nginx/templates/configmap.yaml
View file @
645cf0e1
...
@@ -7,6 +7,7 @@ metadata:
...
@@ -7,6 +7,7 @@ metadata:
labels
:
labels
:
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
app
:
{{
template "fullname" .
}}
app
:
{{
template "fullname" .
}}
heritage
:
{{
.Release.Service
}}
data
:
data
:
# When the config map is mounted as a volume, these will be created as
# When the config map is mounted as a volume, these will be created as
# files.
# files.
...
...
docs/examples/nginx/templates/deployment.yaml
View file @
645cf0e1
...
@@ -6,10 +6,10 @@ metadata:
...
@@ -6,10 +6,10 @@ metadata:
# multiple times into the same namespace.
# multiple times into the same namespace.
name
:
{{
template "fullname" .
}}
name
:
{{
template "fullname" .
}}
labels
:
labels
:
# Th
is is a convention. It makes it possible for an admin to query a cluster
# Th
e "heritage" label is used to track which tool deployed a given chart.
#
using Kubectl and find out what packages are managed by Helm. Helm itself
#
It is useful for admins who want to see what releases a particular tool
#
does not depend on this label, though
.
#
is responsible for
.
heritage
:
helm
heritage
:
{{
.Release.Service
}}
# This makes it easy to search for all components of a release using kubectl.
# This makes it easy to search for all components of a release using kubectl.
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
# This makes it easy to audit chart usage.
# This makes it easy to audit chart usage.
...
...
docs/examples/nginx/templates/svc.yaml
View file @
645cf0e1
...
@@ -5,7 +5,7 @@ kind: Service
...
@@ -5,7 +5,7 @@ kind: Service
metadata
:
metadata
:
name
:
{{
template "fullname" .
}}
name
:
{{
template "fullname" .
}}
labels
:
labels
:
heritage
:
helm
heritage
:
{{
.Release.Service
}}
release
:
{{
.Release.Name
}}
release
:
{{
.Release.Name
}}
chart
:
{{
.Chart.Name
}}
-{{.Chart.Version}}
chart
:
{{
.Chart.Name
}}
-{{.Chart.Version}}
spec
:
spec
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment