github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/charts/mungegithub/chart/templates/deployment.yaml (about)

     1  apiVersion: apps/v1beta1
     2  kind: Deployment
     3  metadata:
     4    name: {{ template "fullname" . }}
     5  spec:
     6    replicas: 1
     7    template:
     8      metadata:
     9        labels:
    10          app: submit-queue
    11          org: {{ .Values.organization }}
    12          repo: {{ .Values.repository }}
    13      spec:
    14        containers:
    15        - name: submit-queue
    16          command:
    17          - /mungegithub
    18          - --dry-run=true
    19          - --stderrthreshold=INFO
    20          - --config-path=/etc/munge-config/config
    21          image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
    22          imagePullPolicy: {{ .Values.image.pullPolicy }}
    23          ports:
    24          - name: status
    25            containerPort: 8080
    26          resources:
    27            requests:
    28              cpu: 100m
    29          volumeMounts:
    30          - mountPath: /etc/munge-config
    31            name: munge-config
    32          - mountPath: /etc/secret-volume
    33            name: secret-volume
    34          - mountPath: /etc/hook-secret-volume
    35            name: hook-secret-volume
    36          - mountPath: /gitrepos
    37            name: repo
    38          - mountPath: /cache
    39            name: cache-volume
    40        volumes:
    41        - name: munge-config
    42          configMap:
    43            name: {{ .Release.Name }}
    44        - name: secret-volume
    45          secret:
    46            secretName: {{ .Values.secret.token }}
    47        - name: hook-secret-volume
    48          secret:
    49            secretName: {{ .Values.secret.webhook }}
    50        - name: repo
    51          emptyDir: {}
    52        - name: cache-volume
    53          persistentVolumeClaim:
    54            claimName: {{ .Release.Name }}