apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: foo
    appType: spring-boot
  name: foo
  namespace: foremast-examples
spec:
  replicas: 5
  selector:
    matchLabels:
      app: foo
  template:
    metadata:
      labels:
        app: foo
        version: v2
    spec:
      containers:
      - name: app
        image: docker.io/foremast/k8s-metrics-demo:0.1.0
        env:
        - name: APP_NAME
          value: foo
        - name: JAVA_OPTS
          value: "-DerrorType=5xx -Dfrequency=4"
        ports:
        - name: web
          containerPort: 8080
