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
  
  Feedback
  Was this page helpful?
  Yes
  No
  
   Thanks 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 October 09, 2023 at 7:33 PM PST: updated doc for key type and size (#42981) (7349a0f693)
  
    Create child page
   Create an issue
   Print entire section
  
  Before you begin
  
  Container images
  Command line interface
  
  First steps for both methods
  
  Create load balancer for kube-apiserver
  
  Stacked control plane and etcd nodes
  
  Steps for the first control plane node
  Steps for the rest of the control plane nodes
  
  External etcd nodes
  
  Set up the etcd cluster
  Set up the first control plane node
  Steps for the rest of the control plane nodes
  
  Common tasks after bootstrapping control plane
  
  Install workers
  
  Manual certificate distribution
  
  Documentation
  Blog
  Training
  Partners
  Community
  Case Studies
  
  © 2025 The Kubernetes Authors | Documentation Distributed under CC BY 4.0
  
  ICP license: 京ICP备17074266号-3
  ```