Skip to content

Latest commit

 

History

History
197 lines (101 loc) · 2.65 KB

File metadata and controls

197 lines (101 loc) · 2.65 KB

[Stephen Grider] Microservices with Node JS and React [ENG, 2020]

CI/CD


01. Development Workflow


Application


02. Git Repository Approaches


Application


03. Creating a GitHub Action


04. Adding a CI Test Script


05. Running Tests on PR Creation


06. Output of Failing Tests


07. Running Tests in Parallel


08. Verifying a Test Run


09. Selective Test Execution


10. Deployment Options


Application


11. Creating a Hosted Cluster


12. Reminder on Kubernetes Context


13. Reminder on Swapping Contexts

$ doctl kubernetes cluster kubeconfig save ticketing

$ kubectl config view

// local
$ kubectl config use-context my-profile

// digital ocean
$ kubectl config use-context <do_context>

14. The Deployment Plan


Application


15. Building an Image in an Action

Github --> Settings --> Secretes --> Add

First secret:

Name: DOCKER_USERNAME

Second secret:

Name: DOCKER_PASSWORD


16. Testing the Image Build


17. Restarting the Deployment


DO -> API -> Generate Token

Name: Github-Acceess_Token


Github --> Settings --> Secretes --> Add

Third secret:

Name: DIGITAL_OCEAN_ACCESS_TOKEN


18. Applying Kubernetes Manifests


19. Prod vs Dev Manifest Files


20. Manual Secret Creation

$ kubectl create secret generic jwt-secret --from-literal=JWT_KEY=<any_random_string>
$ kubectl create secret generic stripe-secret --from-literal=STRIPE_KEY=<stripe_secret_key>

21. Don't Forget Ingress-Nginx!


https://kubernetes.github.io/ingress-nginx/deploy/#digital-ocean


$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.32.0/deploy/static/provider/do/deploy.yaml

22. Testing Automated Deployment


23. Additional Deploy Files


24. A Successful Deploy!


25. Buying a Domain Name


Application


26. Configuring the Domain Name


Digital Ocean --> Networking --> create --> Load Balancer

Digital Ocean --> Networking --> Add a domain


27. I Really Hope This Works


28. Next Steps




Marley

Any questions in english: Telegram Chat
Любые вопросы на русском: Телеграм чат