diff --git a/dev-docs/frozen/eks-bare-metal.md b/dev-docs/frozen/eks-bare-metal.md new file mode 100644 index 0000000000..2be02f234c --- /dev/null +++ b/dev-docs/frozen/eks-bare-metal.md @@ -0,0 +1,122 @@ +# Contrast on EKS + +This is based on the setup presented in https://github.com/aws-samples/howto-runtime-attestation-on-aws. + +## Resources + +Replace the placeholder in eks-managed-sev-snp-metal-ubuntu-template.yaml with your SSH key name. + +Create cluster and node group with + +``` +eksctl create cluster --without-nodegroup -f eks-cluster-template.yaml +eksctl create nodegroup -f eks-managed-sev-snp-metal-ubuntu-template.yaml +``` + +## Prevent autoscaling of the node + +This is needed as the node needs to be rebooted. + +```sh +aws autoscaling suspend-processes \ + --auto-scaling-group-name eksctl-raas-nodegroup-selfmanaged-NodeGroup-c2opXigZr6N9 \ + --scaling-processes ReplaceUnhealthy +``` + +## Setup the node + +Get ssh access, then + +```sh +sudo apt update +sudo apt upgrade -y +``` + +```bash +sudo apt install dracut -y +sudo tee -a /etc/dracut.conf.d/20-omit-ccp.conf <