Cloud Kubernetes Resume Challenge

Forrest Brazeal + Kodekloud

Cloud Architectural Overview

Civo

Cloud Architecture and Overview I once suggested using Civo on a new project and was immediately dismissed in favour of AWS. A Civo managed Kubernetes cluster costs less than half of the the price of any of the three hyperscalers EKS, AKS and GKE, and being a dedicated Kubernetes cloud provider, running a lightweight version of Kubernetes (k3s), the set up times are super fast. This means, for a developer, it is cost effective in a second sense: you can start up a cluster and then shut it down each time you work on it.

Week Four

Extra Credit

Extra Credit Three tasks were suggested here: Package Everything in Helm Implement Persistent Storage Implement Basic CI/CD Pipeline Make use of Serverless 2 Persistent Storage When the mysql deployment pods go down due to restarts, updates, or scaling the data is lost. Therefore we want to persist the contents of the container directory /var/lib/mysql with outside storage. kubectl get storageclass -oyaml apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: civo-volume provisioner: csi.civo.com reclaimPolicy: Delete volumeBindingMode: WaitForFirstConsumer The presence of a StorageClass configuration indicates that Civo Cloud offers a default persistent storage solution to dynamically provision storage with PVs (Persistent volumes) and PVC’s (Persistent Volume Claims).

Week Three

Kubernetes automation and persistance

Step 6: Implement Configuration Management Task: Add a feature toggle to the web application to enable a “dark mode” for the website. I first attempted this without reading the instructions carefully. It does not ask to create a physical day night switch on the web app to toggle between dark mode and light mode, but rather to create a kubernetes config map to toggle the settings with the default set to dark mode.

Week Two

Kubernetes Management and scaling

Step 3: Set Up Kubernetes on a Public Cloud Provider Since it takes less than 2 minutes this is and easy first step. This command being the final iteration: civo kubernetes create ecom –remove-applications=traefik2-nodeport –applications traefik2-loadbalancer, cert-manager –cni-plugin cilium --nodes 1 --size g4s.kube.medium create-firewall –wait –save –merge –switch You can interact with Civo in three ways: The Dashboard Civo CLI Terraform I used the CLI. I was able to set up a bash script to automate the next step of exposing the cluster to https, Traefic LoadBalancer and cert-manager shown in the scripts section of my code-repository https://github.

Week One

dockerize the eccomerce site

Step 1: Certification KodeKloud have excellent resources: The Certified Kubernetes Application Developer (CKAD) and what I enjoyed the most was the Ultimate Certified Kubernetes CKAD Mock Exams. I completed the CKA on 26 may 2021 and the CKS on 18 Nov 2021. Step 2: Containerize Your E-Commerce Website and Database A. Web Application Containerization The first step was to set up civo and kubectl cli client running on ubuntu Windows WSL running with Docker Desktop installed.