apiVersion: apps/v1
kind: Deployment
metadata:
  name: gauge-deployment
spec:
  replicas: 1
  strategy:
    type: Recreate
  selector:
    matchLabels:
      app: gauge
 ##     app.kubernetes.io/name: gauge
  template:
    metadata:
      labels:
        app: gauge
  ##      app.kubernetes.io/name: gauge
    spec:
      serviceAccountName: gauge
      containers:
      - name: gauge
        image: donatoverardi/gauge-taiko:v1.0.13
        imagePullPolicy: Always
        resources:
          limits:
            cpu: 2000m
            memory: 2Gi
          requests:
            cpu: 200m
            memory: 512Mi 
        ports:
          - containerPort: 8080
##            name: http
        volumeMounts:        
        - name: gauge-specs
          mountPath: /gauge/specs/example.spec
          subPath: example.spec
        - name: gauge-reports
          mountPath: /gauge/reports
        - name: gauge-tests
          mountPath: /gauge/tests/step_implementation.js
          subPath: step_implementation.js
      volumes:
      - name: gauge-specs
        configMap:
          name: gauge-specs
      - name: gauge-tests
        configMap:
          name: gauge-tests
      - name: gauge-reports
        emptyDir: {}


