github.com/zsuzhengdu/helm@v3.0.0-beta.3+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 "app.kubernetes.io/managed-by" label is used to track which tool
     7      # deployed a given chart. It is useful for admins who want to see what
     8      # releases a particular tool is responsible for.
     9      app.kubernetes.io/managed-by: {{.Release.Service | quote }}
    10      # The "app.kubernetes.io/instance" convention makes it easy to tie a release
    11      # to all of the Kubernetes resources that were created as part of that
    12      # release.
    13      app.kubernetes.io/instance: {{.Release.Name | quote }}
    14      app.kubernetes.io/version: {{ .Chart.AppVersion }}
    15      # This makes it easy to audit chart usage.
    16      helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
    17    annotations:
    18      "helm.sh/created": {{.Release.Time.Seconds | quote }}
    19  spec:
    20    # This shows how to use a simple value. This will look for a passed-in value
    21    # called restartPolicy. If it is not found, it will use the default value.
    22    # {{default "Never" .restartPolicy}} is a slightly optimized version of the
    23    # more conventional syntax: {{.restartPolicy | default "Never"}}
    24    restartPolicy: {{default "Never" .Values.restartPolicy}}
    25    containers:
    26    - name: waiter
    27      image: "alpine:3.3"
    28      command: ["/bin/sleep","9000"]