cpu-manager-for-kubernetes: add new recipe
[pti/rtp.git] / meta-oran / recipes-containers / kubernetes-plugins / cpu-manager-for-kubernetes / cmk-cluster-init-pod-template.yaml
1 # Copyright (c) 2017 Intel Corporation
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   labels:
19     app: cmk-cluster-init-pod
20   name: cmk-cluster-init-pod
21   #namespace: user-supplied-namespace      
22 spec:
23   serviceAccountName: cmk-serviceaccount
24   containers:
25   - args:
26       # Change this value to pass different options to cluster-init.
27       - "/cmk/cmk.py cluster-init --host-list=$HOST_LIST --saname=cmk-serviceaccount --num-exclusive-cores=$NUM_EXCLUSIVE_CORES --num-shared-cores=$NUM_SHARED_CORES --cmk-img=$CMK_IMG"
28     command:
29     - "/bin/bash"
30     - "-c"
31     image: cmk:v1.3.1
32     name: cmk-cluster-init-pod
33     env:
34     - name: HOST_LIST
35       value: "oran-master"
36     - name: NUM_EXCLUSIVE_CORES
37       value: "4"
38     - name: NUM_SHARED_CORES
39       value: "1"
40     - name: CMK_IMG
41       value: "cmk:v1.3.1"
42   restartPolicy: Never