apiVersion: apps/v1
kind: Deployment
metadata:
  name: echo-service-deployment
  labels:
    service-name: echo
spec:
  replicas: 3
  strategy:
    type: RollingUpdate
  selector:
    matchLabels:
      service-name: echo
  template:
    metadata:
      labels:
        service-name: echo
        version: v3.0.0
    spec:
      containers:
        - name: echo-server
          image: ealen/echo-server
          ports:
            - containerPort: 80
          livenessProbe:
            exec:
              command:
                - cat
                - /etc/hosts
            initialDelaySeconds: 5
            periodSeconds: 5