-
Create
DigitalOcean Kubernetes
(DOKS) -
Install
ingress controller
by1-CLICK APPS
-
Setup
Github actions
for CI$ mkdir .github/workflows # And then put your CI pipeline.yaml under this folder
-
Setup
ArgoCD
for CDhttps://github.com/TreeKat71/my-k8s-challenge/tree/main/argocd
-
Create bucket for
logs
-
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.
-
Config
ingress
andapp
forArgoCD
$ kubectl apply -f argocd/
-
Deploy
fastapi
-
Play around the
fastapi
-
See logs are collected to
Spaces
Feel free to contact me through email in english or chinese.