apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx-deployment
spec:
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx
        imagePullPolicy: Never
        ports:
        - containerPort: 80
          containerPort: 443
          containerPort: 22
        livenessProbe:
          exec:
            command:
              - bin/sh
              - ./liveness.sh
          initialDelaySeconds: 20
          timeoutSeconds: 5