apiVersion: v1
kind: Pod
metadata:
  labels:
    environment: ci-sm2-schemas-builder
spec:
  # Use service account that can deploy to all namespaces
  serviceAccountName: cd-jenkins
  containers:
  - name: gcloud
    image: gcr.io/cloud-builders/gcloud
    imagePullPolicy: IfNotPresent
    command:
    - cat
    tty: true
  - name: helm
    image: alpine/helm:3.2.4
    imagePullPolicy: IfNotPresent
    command:
    - cat
    tty: true
    volumeMounts:
    - mountPath: "/home/production"
      name: "kubeconfig-production"
  - name: node
    image: node:10.15.3
    imagePullPolicy: IfNotPresent
    resources:
      limits:
        cpu: 0.8
        memory: 512Mi
      requests:
        cpu: 0.5
        memory: 256Mi
    command: 
    - cat
    tty: true
    volumeMounts:
    - mountPath: "/home/node/.cache/yarn"
      name: "yarncachevol"
  volumes:
  - name: "yarncachevol"
    persistentVolumeClaim:
      claimName: "sm2-cachedata"
  - name: kubeconfig-production
    secret:
      secretName: production-kubeconfig