Merge "Update versions of addons"
[icn.git] / deploy / cpu-manager / base / cmk-webhook-deployment.yaml
1 # Copyright (c) 2018 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: apps/v1
16 kind: Deployment
17 metadata:
18   labels:
19     app: cmk-webhook-app
20   name: cmk-webhook-deployment
21   #namespace: user-supplied-namespace
22 spec:
23   replicas: 1
24   selector:
25     matchLabels:
26       app: cmk-webhook-app
27   template:
28     metadata:
29       labels:
30         app: cmk-webhook-app
31     spec:
32       tolerations:
33       - operator: "Exists"
34       containers:
35       - args:
36         - "/cmk/cmk.py webhook --conf-file /etc/webhook/server.yaml"
37         command:
38         - "/bin/bash"
39         - "-c"
40         image: cmk:v1.4.1
41         name: cmk-webhook
42         volumeMounts:
43         - mountPath: /etc/webhook
44           name: cmk-webhook-configmap
45         - mountPath: /etc/ssl
46           name: cmk-webhook-certs
47           readOnly: True
48       volumes:
49       - name: cmk-webhook-configmap
50         configMap:
51           name: cmk-webhook-configmap
52       - name: cmk-webhook-certs
53         secret:
54           secretName: cmk-webhook-certs