随笔分类 - DevOps
摘要:一、k8s概念介绍 1、k8s介绍 kubernetes,简称K8s,是用8代替8个字符“ubernete”而成的缩写。是一个开源的,用于管理云平台中多个主机上的容器化的应用,Kubernetes的目标是让部署容器化的应用简单并且高效(powerful),Kubernetes提供了应用部署,规划,更
阅读全文
摘要:Pull httpd:latest image Normally you want to attach the version httpd:2.4, because everytime you run the image, we with the same version is running. b
阅读全文
摘要:Provision a Kubernetes Cluster with GKE using gcloud To complete the work in this course you going to need some tools. Kubernetes can be configured wi
阅读全文
摘要:Demo Code In order to maintain your tfstate file properly, you MUST have versioning enabled on your S3 bucket. Here is the code I used to create the b
阅读全文
摘要:Verify you are in the correct directory by running which terraform Locate the directory containing your terraform files Initialize the directory with
阅读全文
摘要:Configuring Your Cluster Kubernetes has configurations that can be tuned to optimize your deployed application. Cost Replicas: you can reduce number o
阅读全文
摘要:After build sucess, we want to push the build docker image to dockerhub. For that we need to login dockerhub provide username and password. Of course,
阅读全文
摘要:CI/CD enables us to have a streamlined process for how our code transforms from being written to being deployed to production. Continuous Integration
阅读全文
摘要:When we need to spin up a database instance for our new project, installing the database management system directly on our local machine is almost alw
阅读全文
摘要:Which of the following is a PAAS option for hosting web apps on GCP? Which of the following is a IAAS option for hosting web apps on GCP? Which of the
阅读全文
摘要:1. Define a yml file: nginx.pod.yml: apiVersion: v1 kind: Pod metadata: name: my-nginx labels: app: nginx rel: stable spec: containers: - name: my-ngi
阅读全文
摘要:1. Create and run a Pod kubectl run my-nginx --image=nginx:alpine We can run kubectl get all to see what has been created: 2. Delete a Pod: kubectl de
阅读全文
摘要:For example you are working in a backend project, you have setup Dockerfile: Here is the .env: Because we want to setup Database as well, therefore we
阅读全文
摘要:Automate all the things!! Automation is crucial for increasing the quality and productivity. In this lesson we will learn how to automate the deployme
阅读全文
摘要:Add 'stage' which we can know what is the progress in a high level way: 'sh' is for any shell commands. Pipeline is written in Rudy, so can use rudy s
阅读全文
摘要:After installing the jenkins, we start creating new job. 1. Give job names (your project name): 2. Go to "Source Code Management tab": Connect to sour
阅读全文