github.com/kubewharf/katalyst-core@v0.5.3/examples/shared-large-pod.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: v1
    16  kind: Pod
    17  metadata:
    18    annotations:
    19      "katalyst.kubewharf.io/qos_level": shared_cores
    20    name: shared-large-pod-1
    21    namespace: default
    22  spec:
    23    containers:
    24      - name: stress
    25        image: joedval/stress:latest
    26        command:
    27          - stress
    28          - -c
    29          - "1"
    30        imagePullPolicy: IfNotPresent
    31        resources:
    32          requests:
    33            cpu: "12"
    34            memory: 24Gi
    35          limits:
    36            cpu: "12"
    37            memory: 24Gi
    38    schedulerName: katalyst-scheduler
    39  
    40  ---
    41  apiVersion: v1
    42  kind: Pod
    43  metadata:
    44    annotations:
    45      "katalyst.kubewharf.io/qos_level": shared_cores
    46    name: shared-large-pod-2
    47    namespace: default
    48  spec:
    49    containers:
    50      - name: stress
    51        image: joedval/stress:latest
    52        command:
    53          - stress
    54          - -c
    55          - "1"
    56        imagePullPolicy: IfNotPresent
    57        resources:
    58          requests:
    59            cpu: "24"
    60            memory: 48Gi
    61          limits:
    62            cpu: "24"
    63            memory: 48Gi
    64    schedulerName: katalyst-scheduler