apiVersion: v1
kind: Pod
metadata:
  name: lagopus-server
  labels:
    lagopustype: external
spec:
  containers:
  - name: lagopus-server
    image: qlyoung/lagopus-server
    imagePullPolicy: Always
    ports:
    - containerPort: 80
    volumeMounts:
      - name: nfsvol
        mountPath: "/lagopus"
  - name: lagopus-scanner
    image: qlyoung/lagopus-scanner
    volumeMounts:
      - name: nfsvol
        mountPath: /jobs
        subPath: jobs
  - name: lagopus-db
    image: qlyoung/lagopus-db
    ports:
    - containerPort: 3306
      name: mysql
    volumeMounts:
    - name: nfsvol
      mountPath: /var/lib/mysql
      subPath: databases/mysql
  - name: influxdb
    image: influxdb:1.7
    ports:
    - containerPort: 8086
      name: influxdb
    volumeMounts:
    - name: nfsvol
      mountPath: /var/lib/influxdb
      subPath: databases/influxdb
  volumes:
  - name: nfsvol
    persistentVolumeClaim:
      claimName: lagopus-pvc
  imagePullSecrets:
  - name: regcred
