########################
## Ramon's new config ##
########################

# NOTES:
# It is expected that the certificates are saved in /etc/kubernetes/pki
# Following certs are needed: ca.crt
# There needs to be a valid kubeconfig file for the kubelet to connect and authorize to the apiserver
#
# cAdvisor is disabled, newer "metrics-server" should be setup
# 
#
# Config Parameters:
# [insert-kubeconfig]: path to kubeconfig file
# [insert-allowprivilegedbool]: wether to allow privileged containers or not (boolean)
# [insert-ipaddess]: the ip address of the interface where kubelet should serve on
# [insert-cluster-dns]: ip of the cluster's DNS server
# [insert-cluster-domain]: domain name of the cluster
# [insert-hostname]: hostname of the server that should be published

KUBELET_KUBECONFIG_ARGS=--kubeconfig=[insert-kubeconfig]
KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=[insert-allowprivilegedbool]
KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/opt/cni/bin --address=[insert-ipaddress]
KUBELET_DNS_ARGS=--cluster-dns=[insert-cluster-dns] --cluster-domain=[insert-cluster-domain]
KUBELET_AUTHZ_ARGS=--authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt
KUBELET_CADVISOR_ARGS=--cadvisor-port=0
KUBELET_CERTIFICATE_ARGS=--rotate-certificates=true --cert-dir=/var/lib/kubelet/pki
KUBELET_SYSTEM_ARGS=--hostname-override=[insert-hostname]

KUBELET_ARGS="$KUBELET_KUBECONFIG_ARGS $KUBELET_SYSTEM_PODS_ARGS $KUBELET_NETWORK_ARGS $KUBELET_DNS_ARGS $KUBELET_AUTHZ_ARGS $KUBELET_CADVISOR_ARGS $KUBELET_CERTIFICATE_ARGS $KUBELET_SYSTEM_ARGS"
