This repository has been archived by the owner on Oct 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make output more in line with the bootstrap script from the offical AMI
- Loading branch information
Showing
11 changed files
with
126 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{.Cluster.CertificateAuthority.Data | b64dec}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[Unit] | ||
Description=kubelet: The Kubernetes Node Agent | ||
Documentation=http://kubernetes.io/docs/ | ||
After=docker.service | ||
Requires=docker.service | ||
|
||
[Service] | ||
ExecStart=/usr/bin/kubelet \ | ||
--address=0.0.0.0 \ | ||
--authentication-token-webhook \ | ||
--authorization-mode=Webhook \ | ||
--allow-privileged=true \ | ||
--cloud-provider=aws \ | ||
--cluster-domain=cluster.local \ | ||
--cni-bin-dir=/opt/cni/bin \ | ||
--cni-conf-dir=/etc/cni/net.d \ | ||
--container-runtime=docker \ | ||
--network-plugin=cni \ | ||
--cgroup-driver=cgroupfs \ | ||
--register-node=true \ | ||
--kubeconfig=/var/lib/kubelet/kubeconfig \ | ||
--feature-gates=RotateKubeletServerCertificate=true \ | ||
--anonymous-auth=false \ | ||
--client-ca-file=/etc/kubernetes/pki/ca.crt $KUBELET_ARGS $KUBELET_MAX_PODS $KUBELET_EXTRA_ARGS | ||
|
||
Restart=always | ||
StartLimitInterval=0 | ||
RestartSec=5 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
2 changes: 2 additions & 0 deletions
2
pkg/system/templates/etc/systemd/system/kubelet.service.d/10-kubelet-args.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Service] | ||
Environment='KUBELET_ARGS=--node-ip={{.Node.PrivateIpAddress}} --cluster-dns={{.Node.ClusterDNS}} --pod-infra-container-image=602401143452.dkr.ecr.{{.Node.Region}}.amazonaws.com/eks/pause-amd64:3.1' |
2 changes: 2 additions & 0 deletions
2
pkg/system/templates/etc/systemd/system/kubelet.service.d/20-max-pods.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[Service] | ||
Environment='KUBELET_MAX_PODS=--max-pods={{.Node.MaxPods}}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: v1 | ||
kind: Config | ||
clusters: | ||
- name: {{.Cluster.Name}} | ||
cluster: | ||
server: {{.Cluster.Endpoint}} | ||
certificate-authority-data: {{.Cluster.CertificateAuthority.Data}} | ||
contexts: | ||
- name: kubelet | ||
context: | ||
cluster: {{.Cluster.Name}} | ||
user: kubelet | ||
current-context: kubelet | ||
users: | ||
- name: kubelet | ||
user: | ||
exec: | ||
apiVersion: client.authentication.k8s.io/v1alpha1 | ||
command: /usr/local/bin/aws-iam-authenticator | ||
args: | ||
- token | ||
- "-i" | ||
- "{{.Cluster.Name}}" |