github.com/uber/kraken@v0.1.4/helm/templates/build-index.yaml (about)

     1  apiVersion: apps/v1
     2  kind: Deployment
     3  metadata:
     4    name: kraken-build-index
     5  spec:
     6    replicas: {{ .Values.build_index.replicas }}
     7    selector:
     8      matchLabels:
     9        app.kubernetes.io/name: kraken
    10        app.kubernetes.io/component: build-index
    11        app.kubernetes.io/instance: {{ .Release.Name }}
    12    template:
    13      metadata:
    14        labels:
    15          app.kubernetes.io/name: kraken
    16          app.kubernetes.io/component: build-index
    17          app.kubernetes.io/instance: {{ .Release.Name }}
    18        {{ with .Values.build_index.annotations -}}
    19        annotations:
    20  {{ tpl . $ | indent 8 }}
    21        {{- end }}
    22      spec:
    23        {{ with .Values.build_index.initContainers -}}
    24        initContainers:
    25  {{ toYaml . | indent 6 }}{{ end }}
    26        containers:
    27        - name: main
    28          image: gcr.io/uber-container-tools/kraken-build-index:{{ .Values.kraken.tag }}
    29          command:
    30          - /bin/bash
    31          - -c
    32          - "sleep 30 && /usr/bin/kraken-build-index --config={{ .Values.build_index.config }} --port=80"
    33          volumeMounts:
    34          - name: config
    35            mountPath: /etc/config
    36  {{ with .Values.build_index.extraVolumeMounts }}{{ toYaml . | indent 8 }}{{ end }}
    37        volumes:
    38        - name: config
    39          configMap:
    40            name: kraken
    41  {{ with .Values.build_index.extraVolumes }}{{ toYaml . | indent 6 }}{{ end }}
    42  ---
    43  kind: Service
    44  apiVersion: v1
    45  metadata:
    46    name: kraken-build-index
    47  spec:
    48    clusterIP: None
    49    selector:
    50      app.kubernetes.io/name: kraken
    51      app.kubernetes.io/component: build-index
    52      app.kubernetes.io/instance: {{ .Release.Name }}
    53    ports:
    54    - protocol: TCP
    55      port: 80
    56      targetPort: 80