apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app.kubernetes.io/name: spring-petclinic-test
  name: spring-petclinic-test-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: spring-petclinic-test
  template:
    metadata:
      labels:
        app.kubernetes.io/name: spring-petclinic-test
        app.kubernetes.io/part-of: spring-petclinic-test
        tanzu.app.live.view: "true"
        tanzu.app.live.view.application.name: spring-petclinic-test
    spec:
      containers:
      - image: spring-petclinic-test:2.4.2
        imagePullPolicy: IfNotPresent
        livenessProbe:
          httpGet:
            path: /actuator/health/liveness
            port: 8080
          initialDelaySeconds: 15
        name: app
        ports:
        - containerPort: 8080
        readinessProbe:
          httpGet:
            path: /actuator/health/readiness
            port: 8080
          initialDelaySeconds: 15