Kubernetes test repository.
Lets learn container management :)
Make Tetris web server powered by Rancher Kubernetes on AWS and Azure.
AWS account (permittion to create EC2 instans)
updates
sudo yum -y update
read the docker web
https://docs.docker.com/install/
install docker and autolaunch
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo systemctl enable docker
read how to install rke
https://rancher.com/announcing-rke-lightweight-kubernetes-installer/
sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher
Assuming that EC2 security group permitted access HTTP(80)
in your brouser access your EC2 IPaddress and setup new password
setup your EC2 server IPaddress
this server IPaddress is accessed from each other clastered servers
!Reminder : default EC2 instans haven't static Groval IPaddress.Elastic IP atatche the rancher master EC2 instans.
RKE start page is opended! and add cluster
select template plus mark
Enter your AWS key information
if you encounted the error Failed to communicate with API server: Get https://yourIPaddress/api/v1/componentstatuses?timeout=30s: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
read this thred rancher/rancher#15319
if you encounted the error "AuthFailure: AWS was not able to validate the provided access credentials"
maybe your EC2 instans's time was wrong. check ntp synchronization.
if you encounted the error "[network] Host [masuternode IPaddress] is not able to connect to the following ports: [your nodes IPaddress]. Please check network policies and firewall rules"
check your Security Group. Permit any port (e.g.79) from master node IPaddress.
This cluster is currently Unavailable; areas that interact directly with it will not be available until the API is ready.
if you encounted the error "skipped because they could not be contacted"