apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
  name: solios-test-deployment-720p
spec:
  replicas: 2
  selector:
    matchLabels:
      app: solios-test-pod-720p
  template:
    metadata:
      labels:
        app: solios-test-pod-720p
    spec:
      containers:
      - name: solios-x
        image: verisilicon/solios-x:latest
        ports:
        - containerPort: 80
        volumeMounts:
          - name: sys
            mountPath: /sys
          - name: hugepage
            mountPath: /hugepages
        resources:
          requests:
            verisilicon.com/solios_720p: 1
          limits:
            memory: "100Mi"
            hugepages-2Mi: 100Mi
            verisilicon.com/solios_720p: 1
      volumes:
      - name: sys
        hostPath:
            path: /sys
      - name: hugepage
        emptyDir:
          medium: HugePages
