mirror of
https://github.com/puppetmaster/typhoon.git
synced 2025-07-16 20:01:34 +02:00
Add Kubelet provider-id on AWS
* Set the Kubelet `--provider-id` on AWS based on metadata from Fedora CoreOS afterburn or Flatcar Linux coreos-metadata * Based on https://github.com/poseidon/typhoon/pull/951
This commit is contained in:
committed by
Dalton Hubble
parent
d8f7da6873
commit
507c646e8b
@ -25,9 +25,12 @@ systemd:
|
||||
Description=Kubelet
|
||||
Requires=docker.service
|
||||
After=docker.service
|
||||
Requires=coreos-metadata.service
|
||||
After=coreos-metadata.service
|
||||
Wants=rpc-statd.service
|
||||
[Service]
|
||||
Environment=KUBELET_IMAGE=quay.io/poseidon/kubelet:v1.20.5
|
||||
EnvironmentFile=/run/metadata/coreos
|
||||
ExecStartPre=/bin/mkdir -p /etc/kubernetes/cni/net.d
|
||||
ExecStartPre=/bin/mkdir -p /etc/kubernetes/manifests
|
||||
ExecStartPre=/bin/mkdir -p /opt/cni/bin
|
||||
@ -71,6 +74,7 @@ systemd:
|
||||
--node-labels=${label} \
|
||||
%{~ endfor ~}
|
||||
--pod-manifest-path=/etc/kubernetes/manifests \
|
||||
--provider-id=aws:///$${COREOS_EC2_AVAILABILITY_ZONE}/$${COREOS_EC2_INSTANCE_ID} \
|
||||
--read-only-port=0 \
|
||||
--rotate-certificates \
|
||||
--volume-plugin-dir=/var/lib/kubelet/volumeplugins
|
||||
|
Reference in New Issue
Block a user