Preparation
- Deploy the Kubernetes exercise
- 1.Run the following commands:
- The exercise has been deployed successfully.
The exercise does not contain any licenses. Therefore, Airlock Microgateway runs as Community Edition
For more details see Features and support.
To run the exercise as Premium Edition, copy a valid license to .templates/microgateway/secret/microgateway.lic and execute kubectl apply -k . to re-deploy the Microgateway.
Instruction
- Change the Microgateway configuration
- 1.Watch the logs of the Microgateway pod.
- Check the following
- ●Did the Microgateway configbuilder start successfully?
- ●Did the Microgateway runtime container start sucessfully?
- 2.Check the status of the Microgateway pod.
- Check the following:
- ●Is the Microgateway pod ready?
- ●What are the events shown for the Microgateway pod?
- 3.Edit the Microgateway deployment definition.
- Configure the following settings for the Microgateway deployment:
- ●deployment.spec.template.spec.containers.readinessProbe.httpGet.port
- ●deployment.spec.template.spec.containers.livenessProbe.httpGet.port
- 4.Check the status of the Microgateway pod.
- 5.Connect to the website:
- ●Open the URL in your browser: https://<MINIKUBE_IP>/
- The web application should be reachable from the browser.
- 6.Watch the logs of the Microgateway pod.
- The log message WR-SG-SUMMARY with the key action:allowed indicates that the request has successfully proceeded.
Use the (Microgateway) Liveness and Readiness probes to accomplish this task.
Cleanup
- Delete Kubernetes resources from previously exercises or solutions
- 1.Run the following commands:
- All relevant Kubernetes resources in the namespace have been deleted successfully.
copy
kubectl delete all,ing,cm,secrets,pv,pvc,sa,roles,rolebindings,clusterroles,clusterrolebindings -l purpose=microgateway-tutorial