k8s-cluster-simulator icon indicating copy to clipboard operation
k8s-cluster-simulator copied to clipboard

Define formalization of simulated pod spec

Open ordovicia opened this issue 6 years ago • 1 comments

EDIT: changed to use YAML https://github.com/ordovicia/k8s-cluster-simulator/issues/5#issuecomment-446137859


Temporarily specified by embedding a ~JSON~ string as an annotation.

metadata:
  name: nginx-sim
  annotations:
    simSpec: "[{\"seconds\":5,\"cpu\":\"1\",\"memory\":\"2Gi\",\"nvidia.com/gpu\":0},{\"seconds\":10,\"cpu\":\"2\",\"memory\":\"4Gi\",\"nvidia.com/gpu\":1}]"
  • [x] Deterministic
  • [ ] Probabilistic

ordovicia avatar Dec 11 '18 08:12 ordovicia

Changed to use YAML.

metadata:
  name: nginx-sim
  annotations:
    simSpec: |
- seconds: 5
  resourceUsage:
    cpu: 1
    memory: 2Gi
    nvidia.com/gpu: 0
- seconds: 10
  resourceUsage:
    cpu: 2
    memory: 4Gi
    nvidia.com/gpu: 1`

ordovicia avatar Dec 11 '18 09:12 ordovicia