You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## INSTALL ISTIO
curl -L https://istio.io/downloadIstio | sh -
cd istio-1.18.2
export PATH=$PWD/bin:$PATH
istioctl install --set profile=demo -y
kubectl create ns default-istio
kubectl label namespace default-istio istio-injection=enabled
kubectl apply -f samples/addons/kiali.yaml
kubectl apply -f samples/addons/prometheus.yaml
git clone https://github.com/gilangvperdana/k8s-sharingsession/blob/master/skenarioA/deployment3-istio-splitting.yaml
kubectl apply -f deployment.yaml,deployment2.yaml,deployment3-istio-splitting.yaml -n default-istio
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj '/O=Labs Inc./CN=prod.sharing2.gbesar.link' -keyout sharing2.gbesar.link.key -out sharing2.gbesar.link.crt
kubectl create -n istio-system secret tls tls-secret --key=sharing2.gbesar.link.key --cert=sharing2.gbesar.link.crt -n default-istio
ACCESS THEN SEE HTML WILL SPLIT TO 2 VERSION
MINIO INDEX HTML AUTO UP
git clone https://github.com/gilangvperdana/k8s-sharingsession/blob/master/skenarioB/deployment2-minio.yaml
kubectl apply -f deployment2-minio.yaml
UPLOAD TO TEMPGGG S3 BUCKET
ACCESS TO SEE INDEX HTML AUTO UP TO HOSTING
TEST HPA TO MINIO DEPLOYMENT
git clone https://github.com/gilangvperdana/k8s-sharingsession/blob/master/skenarioB/deployment3-hpa.yaml
kubectl apply -f deployment3-hpa.yaml -n default-istio
kubectl run -i --tty load-generator --rm --image=busybox --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://192.168.100.17; done"
SEE KIALI FOR TRAFFIC ANIMATION
SEE HPA WILL AUTO SCALE POD TO EXPECTATION VALUE