38 lines
1010 B
Plaintext
38 lines
1010 B
Plaintext
apiVersion: kubeadm.k8s.io/v1alpha3
|
|
kind: InitConfiguration
|
|
apiEndpoint:
|
|
advertiseAddress: <%= @apiserver_advertise_address %>
|
|
---
|
|
apiVersion: kubeadm.k8s.io/v1alpha3
|
|
kind: ClusterConfiguration
|
|
kubernetesVersion: 1.13.5
|
|
etcd:
|
|
external:
|
|
endpoints:
|
|
- <%= @etcd_endpoint %>
|
|
apiServerCertSANs:
|
|
- "<%= @apiserver_advertise_address %>"
|
|
- "127.0.0.1"
|
|
networking:
|
|
dnsDomain: <%= @service_domain %>
|
|
podSubnet: <%= @pod_network_cidr %>
|
|
serviceSubnet: <%= @service_network_cidr %>
|
|
controllerManagerExtraArgs:
|
|
node-monitor-period: "2s"
|
|
node-monitor-grace-period: "20s"
|
|
pod-eviction-timeout: "30s"
|
|
<%- if @k8s_registry -%>
|
|
imageRepository: "<%= @k8s_registry %>"
|
|
<%- end -%>
|
|
---
|
|
kind: KubeletConfiguration
|
|
apiVersion: kubelet.config.k8s.io/v1beta1
|
|
# Workaround for the following issue:
|
|
# https://github.com/kubernetes/kubernetes/issues/74412
|
|
configMapAndSecretChangeDetectionStrategy: Cache
|
|
nodeStatusUpdateFrequency: "4s"
|
|
failSwapOn: false
|
|
featureGates:
|
|
HugePages: false
|
|
cgroupRoot: "/k8s-infra"
|