Main : contains all instructions for IS7.0
IS-6.1 : contains all instructions for IS6.1
Copy the IS 7.0 folder (named wso2is-7.0.0) to the docker folder and run the following commands
sudo systemctl start docker
docker build -t is7.0 .
image will be named IS7.0
docker rmi is7.0
delete image named IS7.0
docker rmi -f is7.0
force delete image named IS7.0`
docker run -d --rm -p 127.0.0.1:9443:9443 is7.0
run container in background and map port 8080 to 8080
docker ps -a
docker logs -f <container id>
docker stop <container id>
docker container prune
docker exec -it <container id> /bin/bash
minikube start
kubectl is required for steps to follow
run alias kubectl="minikube kubectl --"
to use minikube kubectl
OR
sudo snap install kubectl --classic
to install kubectl
eval $(minikube docker-env)
docker build -t is7.0 .
image will be named IS7.0
OR
minikube image load is7.0
load image to local mini kube repository from docker repository
minikube image ls
check local mini kube repository
kubectl create -f is.yaml
get pod name using kubectl get pods
kubectl logs -f <pod name>
This exposes the deployment directly to the host machine and creates a service named with the same name as the deployment
kubectl expose deployment is-deployment --type=NodePort --port=9443 --target-port=9443
minikube service is-deployment --url
change link to https:// to access IS 7.0 deployment on kubernetes
or
minikube service is-service --url
change link to https:// to access IS 7.0 deployment on kubernetes
minikube service list
kubectl get services
minikube delete --all