apiVersion: apps/v1
kind: Deployment
metadata:
  name: jaxrs-redis-quarkus
spec:
  selector:
    matchLabels:
      app: jaxrs-redis-quarkus
  replicas: 1
  template:
    metadata:
      labels:
        app: jaxrs-redis-quarkus
      annotations:
        prometheus.io/scrape: "true"
        prometheus.io/port: "8080"
    spec:
      containers:
      - name: jaxrs-redis-quarkus
        image: yurak/jaxrs-redis-quarkus:latest
        imagePullPolicy: Always
        livenessProbe:
          httpGet:
            port: 8080
            path: /health/live
          initialDelaySeconds: 5
          periodSeconds: 5
          failureThreshold: 5
        readinessProbe:
          httpGet:
            port: 8080
            path: /health/ready
          initialDelaySeconds: 3
          periodSeconds: 3
