Make CaaS DNS domains configurable
[ta/caas-kubernetes.git] / ansible / roles / kubelet / templates / master-config.yaml.j2
1 {#
2 Copyright 2019 Nokia
3
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
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
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.
15 #}
16 ---
17 apiVersion: kubelet.config.k8s.io/v1beta1
18 kind: KubeletConfiguration
19 address: "{{ networking.infra_internal.ip }}"
20 authentication:
21   x509:
22     clientCAFile: "/etc/openssl/ca.pem"
23   webhook:
24     enabled: true
25   anonymous:
26     enabled: false
27 authorization:
28   mode: "AlwaysAllow"
29 cgroupsPerQOS: true
30 cgroupRoot: "/"
31 cgroupDriver: cgroupfs
32 clusterDNS:
33 - {{ caas.dns_svc_ip }}
34 clusterDomain: {{ caas.dns_domain }}
35 staticPodPath: "/etc/kubernetes/manifests"
36 rotateCertificates: true
37 runtimeRequestTimeout: 5m0s
38 streamingConnectionIdleTimeout: 5m0s
39 tlsCertFile: "/etc/kubernetes/ssl/kubelet-server.pem"
40 tlsPrivateKeyFile: "/etc/kubernetes/ssl/kubelet-server-key.pem"
41 featureGates:
42   CPUManager: false
43   DevicePlugins: true