github.com/kubewharf/katalyst-core@v0.5.3/examples/reclaimed-deployment.yaml (about) 1 # Copyright 2022 The Katalyst Authors. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 apiVersion: apps/v1 16 kind: Deployment 17 metadata: 18 name: reclaimed-pod 19 namespace: default 20 spec: 21 replicas: 10 22 selector: 23 matchLabels: 24 app: reclaimed-pod 25 template: 26 metadata: 27 annotations: 28 katalyst.kubewharf.io/qos_level: reclaimed_cores 29 labels: 30 app: reclaimed-pod 31 spec: 32 containers: 33 - name: stress 34 image: joedval/stress:latest 35 command: 36 - stress 37 - -c 38 - "1" 39 imagePullPolicy: IfNotPresent 40 resources: 41 requests: 42 resource.katalyst.kubewharf.io/reclaimed_millicpu: 4k 43 resource.katalyst.kubewharf.io/reclaimed_memory: 16Gi 44 limits: 45 resource.katalyst.kubewharf.io/reclaimed_millicpu: 4k 46 resource.katalyst.kubewharf.io/reclaimed_memory: 16Gi 47 schedulerName: katalyst-scheduler