---
    apiVersion: apps/v1
    kind: Deployment
    metadata:
      name: spc-deploy
    spec:
      minReadySeconds: 10
      replicas: 3
      selector:
        matchLabels:
          app: springpetclinic
          ver: 1.0.0
      strategy:
        rollingUpdate:
          maxSurge: 35%
          maxUnavailable: 30%
        type: RollingUpdate
      template:
        metadata:
          labels:
            app: springpetclinic
            ver: 1.0.0
        spec:
          containers:
            - name: springpetclinic
              image: gkiran04/spc:1.0.0
              ports:
                - containerPort: 8080
                  protocol: TCP