Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Kubernetes Deployment

Deployment of containerized applications to Kubernetes


Download and Install Minikube

You could download and install the Minikube from the start page.


Deploy the applications as a container to Kubernetes using kubectl

Go to the "iac/k8s" directory with the following command and after please run the next commands in this directory;

cd iac/k8s

Nginx Ingress Controller Installation Guide

Enable the ingress add-on for Minikube.

minikube addons enable ingress

Deploy the applications as a container to Kubernetes

  1. Create a new Namespace for the project in Kubernetes

    kubectl create ns observer
  2. Deploy the Python RestApi Application to Kubernetes

    kubectl apply -n observer -f deploy-api.yaml
  3. Deploy the Client Application to Kubernetes

    kubectl apply -n observer -f deploy-client.yaml
  4. Delete the deployment resources with the following command;

    kubectl delete all --all -n observer

Note:
If there is any apiVersion incompatibility during distribution, please check the kind and api version compatibility with below command and update it in .yaml file;

kubectl api-resources | grep deployment