apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: vote
  name: vote
  namespace: vote
spec:
  replicas: 4
  strategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate 
  selector:
    matchLabels:
      app: vote
  template:
    metadata:
      labels:
        app: vote
    spec:
      containers:
      - image: harbor-ci.cpie.io/verodin/example-voting-vote:latest
        name: vote
        ports:
        - containerPort: 80
          name: vote
        readinessProbe:
          httpGet:
            path: /              # default /
            port: 80
            scheme: HTTP
          failureThreshold: 3    # default 3
          periodSeconds: 10      # default 10
          successThreshold: 1    # default 1
          timeoutSeconds: 3      # default 1
          initialDelaySeconds: 3 # default 0
