Deploy K8s in Azure
Python script calls the Azure API to create a kubernetes Cluster. Calls to create the following functions from the API call:
- Get the Azure credentials to make API calls
- Get the service profile
- Resource client to initiate Azure Resource creation
- Container client - to initiate container creation in kubernetes service
- Create resource groups to logical grouping of resources created, in this case Kubernetes.
- Create the cluster using the resource client, container client and in the resource group
- Create the deployment object to define the K8s service, manifest to expose external IP for Loadbalancer.
- Deploy the created object for k8s service.
- Create the k8s cluster service.
- Obtain cluster information using az cli
- Get the cluster endpoint exposed from the external LB IP.
- Wait for the cluster endpoint to be exposed - poll for endpoing
Goal of the entire script is to create a kubernetes cluster, expose the external IPs for connections, etc. the rest of the script explains itself