apiVersion: apps/v1
kind: Deployment
metadata:
  name: bar
spec:
  selector:
    matchLabels:
      app: bar
  replicas: 3
  template:
    metadata:
      labels:
        app: bar
    spec:
      containers:
      - name: k8s-demo-app
        image: quay.io/stepanstipl/k8s-demo-app:v4
        env:
        - name: K8S_DEMO_APP_MESSAGE
          value: "Hello BARs!"
        livenessProbe:
          httpGet:
            path: /healthz
            port: http
        ports:
        - name: http
          containerPort: 8080
