apiVersion: apps/v1
kind: Deployment
metadata:
  name: greetings-web
  labels:
    app: greetings
spec:
  selector:
    matchLabels:
      app: greetings-web
  replicas: 2
  template:
    metadata:
      name: greetings-web
      labels:
        app: greetings-web
    spec:
      containers:
        - name: greetings-web
          image: amulrajesh/greetings-web:APP_VERSION
          readinessProbe:
            failureThreshold: 3
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 1
            timeoutSeconds: 1
          livenessProbe:
            failureThreshold: 3
            httpGet:
              path: /
              port: 80
            initialDelaySeconds: 100
            timeoutSeconds: 5