github.com/koderover/helm@v2.17.0+incompatible/docs/examples/alpine/templates/alpine-pod.yaml (about)

     1  apiVersion: v1
     2  kind: Pod
     3  metadata:
     4    name: {{ template "alpine.fullname" . }}
     5    labels:
     6      # The "app.kubernetes.io/managed-by" 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      app.kubernetes.io/managed-by: {{ .Release.Service }}
    10      # The "app.kubernetes.io/instance" convention makes it easy to tie a release to all of the
    11      # Kubernetes resources that were created as part of that release.
    12      app.kubernetes.io/instance: {{ .Release.Name | quote }}
    13      app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
    14      # This makes it easy to audit chart usage.
    15      helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
    16      app.kubernetes.io/name: {{ template "alpine.name" . }}
    17  spec:
    18    # This shows how to use a simple value. This will look for a passed-in value called restartPolicy.
    19    restartPolicy: {{ .Values.restartPolicy }}
    20    containers:
    21    - name: waiter
    22      image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
    23      imagePullPolicy: {{ .Values.image.pullPolicy }}
    24      command: ["/bin/sleep", "9000"]