install docker
wget -qO- https://get.docker.com/ | shadding your user to the "docker" group:
sudo usermod -aG docker $USERmake sure docker is installed
docker versiondownload openshift using the following command
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit.tar.gzunzip the tar file
tar xvf openshift-origin-client-tools*.tar.gzmoving to the right directory
cd openshift-origin-client-tools-v3.11.0-0cbc58b-linux-64bit/
sudo mv oc kubectl /usr/local/bin/volia! Openshift has now been installed. Let's check it out:
oc versionAllow use of Insecure Docker registry.
cat << EOF | sudo tee /etc/docker/daemon.json
{
"insecure-registries" : [ "172.30.0.0/16" ]
}
EOFRestart Docker service after adding the file.
sudo systemctl restart dockerNow, finally we can up and run Openshift,
oc cluster up --routing-suffix=<ServerPublicIP>.xip.io \
--public-hostname=<ServerPulicDNSName>After the server successfuly updated, you can see the following output,
The server is accessible via web console at: https://ec2-13-58-44-107.us-east-2.compute.amazonaws.com:8443
Login to openshift console using OC client
sudo oc login -u system:adminDeploying strimzi in openshift
oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.17.0/strimzi-cluster-operator-0.17.0.yaml \
-n myprojectProvision the Apache Kafka cluster
oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/0.17.0/examples/kafka/kafka-persistent-single.yaml \
-n myprojectCheck Kafka Cluster Status
sudo oc wait kafka/my-cluster \
--for=condition=Ready \
--timeout=300s -n myprojectPersistent volumes are at host directory /etc/openshift/openshift.local.pv