Skip to content

Commit

Permalink
add template
Browse files Browse the repository at this point in the history
  • Loading branch information
PARRA DE MIGUEL Mario committed Jun 1, 2021
1 parent a0e39d8 commit b62f5f0
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 382 deletions.
11 changes: 11 additions & 0 deletions charts/example-v1/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
appVersion: "3.9"
description: Deploy a basic Alpine Linux pod
home: https://helm.sh/helm
maintainers:
- email: [email protected]
name: Name
name: example-v1
sources:
- https://github.com/helm/helm
version: 0.1.11
13 changes: 13 additions & 0 deletions charts/example-v1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#Alpine: A simple Helm chart

Run a single pod of Alpine Linux.

This example was generated using the command `helm create alpine`.

The `templates/` directory contains a very simple pod resource with a
couple of parameters.

The `values.yaml` file contains the default values for the
`alpine-pod.yaml` template.

You can install this example using `helm install ./alpine`.
27 changes: 27 additions & 0 deletions charts/example-v1/templates/alpine-pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{.Release.Name}}-{{.Values.Name}}"
labels:
# The "app.kubernetes.io/managed-by" 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.
app.kubernetes.io/managed-by: {{.Release.Service | quote }}
# The "app.kubernetes.io/instance" convention makes it easy to tie a release
# to all of the Kubernetes resources that were created as part of that
# release.
app.kubernetes.io/instance: {{.Release.Name | quote }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
# This makes it easy to audit chart usage.
helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
values: {{.Values.test.Name}}
spec:
# 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" .Values.restartPolicy}}
containers:
- name: waiter
image: "alpine:{{ .Chart.AppVersion }}"
command: ["/bin/sleep","9000"]
3 changes: 3 additions & 0 deletions charts/example-v1/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Name: my-alpine
test:
Name: initial-values
23 changes: 0 additions & 23 deletions charts/helm-chart-test/.helmignore

This file was deleted.

23 changes: 0 additions & 23 deletions charts/helm-chart-test/Chart.yaml

This file was deleted.

21 changes: 0 additions & 21 deletions charts/helm-chart-test/templates/NOTES.txt

This file was deleted.

63 changes: 0 additions & 63 deletions charts/helm-chart-test/templates/_helpers.tpl

This file was deleted.

61 changes: 0 additions & 61 deletions charts/helm-chart-test/templates/deployment.yaml

This file was deleted.

28 changes: 0 additions & 28 deletions charts/helm-chart-test/templates/hpa.yaml

This file was deleted.

41 changes: 0 additions & 41 deletions charts/helm-chart-test/templates/ingress.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions charts/helm-chart-test/templates/service.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions charts/helm-chart-test/templates/serviceaccount.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions charts/helm-chart-test/templates/tests/test-connection.yaml

This file was deleted.

Loading

0 comments on commit b62f5f0

Please sign in to comment.