github.com/migueleliasweb/helm@v2.6.1+incompatible/cmd/helm/testdata/testcharts/novals/templates/alpine-pod.yaml (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: "{{.Release.Name}}-{{.Values.Name}}"
     5    labels:
     6      # The "heritage" label is used to track which tool deployed a given chart.
     7      # It is useful for admins who want to see what releases a particular tool
     8      # is responsible for.
     9      heritage: {{.Release.Service | quote }}
    10      # The "release" convention makes it easy to tie a release to all of the
    11      # Kubernetes resources that were created as part of that release.
    12      release: {{.Release.Name | quote }}
    13      # This makes it easy to audit chart usage.
    14      chart: "{{.Chart.Name}}-{{.Chart.Version}}"
    15    annotations:
    16      "helm.sh/created": {{.Release.Time.Seconds | quote }}
    17  spec:
    18    # This shows how to use a simple value. This will look for a passed-in value
    19    # called restartPolicy. If it is not found, it will use the default value.
    20    # {{default "Never" .restartPolicy}} is a slightly optimized version of the
    21    # more conventional syntax: {{.restartPolicy | default "Never"}}
    22    restartPolicy: {{default "Never" .Values.restartPolicy}}
    23    containers:
    24    - name: waiter
    25      image: "alpine:3.3"
    26      command: ["/bin/sleep","9000"]