instruction: Create a Dockerfile for cluster
output: ```dockerfile
  from the home directory to /etc/kubernetes/pki:USER=ubuntu # customizable
  mkdir -p /etc/kubernetes/pki/etcd
  mv /home/${USER}/ca.crt /etc/kubernetes/pki/
  mv /home/${USER}/ca.key /etc/kubernetes/pki/
  mv /home/${USER}/sa.pub /etc/kubernetes/pki/
  mv /home/${USER}/sa.key /etc/kubernetes/pki/
  mv /home/${USER}/front-proxy-ca.crt /etc/kubernetes/pki/
  mv /home/${USER}/front-proxy-ca.key /etc/kubernetes/pki/
  mv /home/${USER}/etcd-ca.crt /etc/kubernetes/pki/etcd/ca.crt
  # Skip the next line if you are using external etcd
  mv /home/${USER}/etcd-ca.key /etc/kubernetes/pki/etcd/ca.key
  FeedbackWas this page helpful?Yes
  NoThanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it on
  Stack Overflow.
  Open an issue in the GitHub Repository if you want to
  report a problem
  or
  suggest an improvement.Last modified March 08, 2025 at 3:13 PM PST: Update high-availability.md (358fef3e0a)  Create child page
   Create an issue
   Print entire sectionBefore you beginContainer imagesCommand line interfaceFirst steps for both methodsCreate load balancer for kube-apiserverStacked control plane and etcd nodesSteps for the first control plane nodeSteps for the rest of the control plane nodesExternal etcd nodesSet up the etcd clusterSet up the first control plane nodeSteps for the rest of the control plane nodesCommon tasks after bootstrapping control planeInstall workersManual certificate distribution© 2025 The Kubernetes Authors | Documentation Distributed under CC BY 4.0© 2025 The Linux Foundation ®. ```