Executing code with containers/Dockers can be very different then doing so for desktop or web apps as it is based on several moving parts which must work together. Lets look at the steps we will need to follow
- Write the application we wish to use.
- Containerize the app via docker tool (Dockerfile)- docker build.
- Push to registry docker push.
- Use the registry URL Address in the sample-app.yaml
- Deploy the app on K8s kubectl apply.
- View the logs with the output in the K8s dashboard.