TreeKat71 / my-k8s-challenge-manifests

DigitalOcean Kubernetes Challenge - YAML Manifests for ArgoCD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DigitalOcean Kubernetes Challenge - k8s manifests for ArgoCD

  1. Create DigitalOcean Kubernetes (DOKS)

    image

  2. Install ingress controller by 1-CLICK APPS

    image

  3. Setup Github actions for CI

     $ mkdir .github/workflows
     # And then put your CI pipeline.yaml under this folder
    
  4. Setup ArgoCD for CD

    https://github.com/TreeKat71/my-k8s-challenge/tree/main/argocd

  5. Create bucket for logs

    image

  6. Create secret for fluentd sidecar

     $ kubectl create secret generic fluentd --from-file=fluentd.conf
    

The fluentd.conf should contain keys for Spaces so there should be a way to handle secret. I just put the sample config in the repo. It is better to handle it with Vault or sth else.

  1. Config ingress and app for ArgoCD

     $ kubectl apply -f argocd/
    
  2. Deploy fastapi

    Now, you can manually sync it by clicking button. image

  3. Play around the fastapi

    image

  4. See logs are collected to Spaces

    image

Found mistakes?

Feel free to contact me through email in english or chinese.

About

DigitalOcean Kubernetes Challenge - YAML Manifests for ArgoCD