apiVersion: v1
kind: Pod
metadata:
  name: "yogs-data"
spec:
  volumes:
  - name: "yogs-data"
    # This AWS EBS volume must already exist.
    awsElasticBlockStore:
      volumeID: "vol-04ca6253de279b5da"
      fsType: ext4
  containers:
  - image: gcr.io/kuar-demo/kuard-amd64:1
    name: yogs
    ports:
      - containerPort: 8080
        name: http
        protocol: TCP
    resources:
      requests:
        cpu: "500m"
        memory: "128Mi"
      limits:
        cpu: "1000m"
        memory: "256Mi"
    volumeMounts:
    - mountPath: "/data"
      name: "yogs-data"
    livenessProbe:
        httpGet:
          path: /healthy
          port: 8080
        initialDelaySeconds: 5
        timeoutSeconds: 1
        periodSeconds: 10
        failureThreshold: 3
    readinessProbe:
        httpGet:
          path: /ready
          port: 8080
        initialDelaySeconds: 30
        timeoutSeconds: 1
        periodSeconds: 10
        failureThreshold: 3
