apiVersion: v1
kind: Pod
metadata:
  name: nginx
spec:
  volumes:
    - name: "nginx-data"
      hostPath:
        path: "/var/log/"
  containers:
    - name: nginx
      volumeMounts:
        - mountPath: "/data"
          name: "nginx-data"
      resources:
        requests:
          cpu: "500m"
          memory: "128Mi"
        limits:
          cpu: "1000m"
          memory: "256Mi"
      image: nginx
      ports:
      - containerPort: 80
        name: http
        protocol: TCP
      livenessProbe:
        httpGet:
          port: 80
          path: /
        failureThreshold: 5
        periodSeconds: 10
