In this post I deploy my scores-service container to the IBM Cloud Kubernetes service. This is not a blueprint for IBM Kubernetes deployments, if you looking for a blueprint, just take a look here. IBM Cloud documentation contains a great guide for getting started: How to setup and use IBM Cloud Kubernetes
I share my experiences and observations with you, along with my deployment.
Let’s start with an overview of the topics I touch in this blog post:
- Setting up the IBM Cloud Kubernetes service
- Pushing the local container image to IBM Cloud Container Registry
- Defining the Kubernetes deployment YAML to deploy the container
- Defining the Kubernetes service YAML for access the running Highscores-Service from the internet
The above picture shows a simplified architecture for the scores-service inside Kubernetes. You can see the relevant elements for the deployment. If you are interested in the details of these elements, just click on the linked Kubernetes documentation.
The major elements:
- Kubernetes in IBM Cloud
- Service inside Kubernetes is responsible for providing access to the scores-service over the internet, using a Loadbalancer
- Deployment is responsible for container deployment inside the Pod.
- Pod instantiation with the container image stored in the Container Registry