This repository explains the steps of installing Openshift 3.11 with AWS Cloud configurations.
Open ports on the network which will be used to setup Openshift Cluster.
22 TCP
53 or 8053 TCP/UDP
80 or 443 TCP
1936 TCP
4001 TCP
2379 and 2380 TCP
4789 UDP
8443 TCP
10250 TCP
To get more details understanding on ports for Openshift, refer this link https://docs.openshift.com/container-platform/3.11/install/prerequisites.html
Provision 'n' number of nodes. In this example, I created 3 CentOS nodes on AWS. You need to make necessary changes to be able to login on CentOS with 'root' user account.
sudo vi /etc/ssh/sshd_config
PermitRootLogin yes #Uncomment this line in /etc/ssh/sshd_config and save it.
sudo systemctl restart sshd
By default IAM doesn't allow to login with root user on EC2 instances but you can use the authroized_keys of centos user to access it.
sudo -s
cp /home/centos/.ssh/authorized_keys /root/.ssh/authorized_keys
yum install -y git
git clone https://github.com/arunvdsharma/openshift-centos.git
cd openshift-centos
chmod +x install-tools.sh
./install-tools.sh
Exit from the nodes but master.
Ensure you have the right inventory.ini file with AWS configurations in it. Check if that file has below properties
openshift_cloudprovider_aws_access_key=AWS_ACCESS_KEY
openshift_cloudprovider_aws_secret_key=AWS_SECRET_KEY
openshift_clusterid=openshift
openshift_cloudprovider_kind=aws
openshift_hosted_manage_registry=true
openshift_hosted_registry_storage_kind=object
openshift_hosted_registry_storage_provider=s3
openshift_hosted_registry_storage_s3_accesskey=AWS_ACCESS_KEY
openshift_hosted_registry_storage_s3_secretkey=AWS_SECRET_KEY
openshift_hosted_registry_storage_s3_bucket=openshift-bucket-aruns
openshift_hosted_registry_storage_s3_region=ap-south-1a
openshift_hosted_registry_storage_s3_chunksize=26214400
openshift_hosted_registry_storage_s3_rootdirectory=/registry
openshift_hosted_registry_pullthrough=true
openshift_hosted_registry_acceptschema2=true
openshift_hosted_registry_enforcequota=true
openshift_hosted_registry_replicas=3
Every master host, node host, and subnet must have the tags defined as below format
e.g. kubernetes.io/cluster/<clusterid>,Value=(owned|shared)
One security group, preferably the one linked to the nodes, must have the
kubernetes.io/cluster/<clusterid>,Value=(owned|shared) tag
chmod +x install-openshift.sh
./install-openshift.sh