4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
8 http://www.apache.org/licenses/LICENSE-2.0
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
21 namespace: kube-system
24 dnsPolicy: ClusterFirst
26 - name: kube-scheduler
27 image: {{ container_image_names | select('search', '/hyperkube') | list | last }}
29 runAsUser: {{ caas.uid.kube }}
32 - "--feature-gates={{ scheduler_feature_gates | get_kube_options }}"
33 - "--kubeconfig=/etc/kubernetes/kubeconfig/schedulerc.yml"
34 {% if groups['caas_master']|length|int > 1 %}
35 - "--leader-elect=true"
42 initialDelaySeconds: 15
49 mountPath: /etc/localtime
51 - name: secret-kubernetes
52 mountPath: /etc/kubernetes/ssl
54 - name: secret-root-ca
55 mountPath: /etc/openssl/ca.pem
58 mountPath: /etc/kubernetes/kubeconfig
64 - name: secret-kubernetes
66 path: /etc/kubernetes/ssl
67 - name: secret-root-ca
69 path: /etc/openssl/ca.pem
72 path: /etc/kubernetes/kubeconfig