Skip to content

Instantly share code, notes, and snippets.

@nilesh93
Created June 14, 2019 07:26
Show Gist options
  • Save nilesh93/c743205d34fedb5f48ae4d37d959ba4b to your computer and use it in GitHub Desktop.
Save nilesh93/c743205d34fedb5f48ae4d37d959ba4b to your computer and use it in GitHub Desktop.
apiVersion: kubeadm.k8s.io/v1beta1
kind: ClusterConfiguration
kubernetesVersion: v1.14.3 # change according to kubeadm supported version
apiServer:
certSANs:
- 127.0.0.1
- cluster-api.example.com # change according to your requirements
extraArgs:
authorization-mode: Node,RBAC
feature-gates: "TTLAfterFinished=true"
audit-policy-file: "/etc/kubernetes/audit-policy.yaml"
audit-log-path: "/etc/kubernetes/audit/kube-apiserver-audit.log"
audit-log-maxage: "2"
extraVolumes:
- name: "audit-policy"
hostPath: "/etc/kubernetes/audit-policy.yaml"
mountPath: "/etc/kubernetes/audit-policy.yaml"
readOnly: false
pathType: File
- name: "audit-volume"
hostPath: "/var/log/kubernetes/audit"
mountPath: "/etc/kubernetes/audit"
readOnly: false
pathType: DirectoryOrCreate
timeoutForControlPlane: 4m0s
certificatesDir: /etc/kubernetes/pki
clusterName: kubernetes
controlPlaneEndpoint: ""
controllerManager:
extraArgs:
feature-gates: "TTLAfterFinished=true"
bind-address: 0.0.0.0
dns:
type: CoreDNS
etcd:
local:
dataDir: /var/lib/etcd
imageRepository: k8s.gcr.io
networking:
dnsDomain: cluster.local
podSubnet: 192.168.0.0/16 # change according to your requirements
serviceSubnet: 10.96.0.0/12 # change according to your requirements
scheduler:
extraArgs:
feature-gates: "TTLAfterFinished=true"
bind-address: 0.0.0.0
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
FeatureGates:
TTLAfterFinished: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment