Terraform Cheatsheet

Terraform Cheatsheet
Useful Snippets
Read more →

DevOps Interview Questions

DevOps Interview Questions
kubernetes 如何保证滚动更新过程中 0当机,从k8s, 容器,应用本身 如何保证终止信号能正确传递给容器内的应用进程 resource limit存在的意义是什么,cpu 内存用超了分别会发生什么;查看node已经分配了多少资源,查看实际使用率 自动扩容 pod,处于pending状态/一直重启 如何排查问题 RBAC cloud 阿里云 iam IAM role, assume role 授权机制, policy举例 CDN cdn的缓存策略如何设置的 Iac terraform state文件的作用是什么 如何减少重复的代码,如何编写一个module 如何导入一个已存在的资源 如果runtime的资源被人为修改了或者删除了,跑terraform会发生什么,怎么处理 monitoring grafana dashboard 有许多复杂的查询语句,怎么优化提高速度,recording rule 作用 一个counter类型指标,怎么查看它的波动情况 是否关注过p99延迟,p99是什么意思,如何获取指标的p99 指标 label是主机名,怎么查询看主机名包含 某个关键词的指标 logging elasticsearch JVM 层面优化 es node 数量,replica 数量,分片数量 如何设置, 有何考量 cicd 构建 部署,如何从技术上提高构建效率和部署效率 蓝绿,金丝雀 区别与实现方式 TCP/IP tcp 三次握手,四次挥手,包头内容的变化,状态机变化, TIMEWAIT CLOSING_WAIT nginx 网络层面 优化, 慢请求 tcpdump分析过的问题,及分析过程 Java 接触过的jvm参数及含义 内存模型 jdk8/jdk11, java/springboot 如何监控,关注的监控指标有哪些 排错 遇到过哪些java层面问题,如何排查的 java服务响应慢,从jvm层面怎么排查 有哪些排错手段 编程 用python django 写过什么项目,有什么功能,如何实现的 工作方法 从部门协作的角度,devops如何提高我们的支持效率? 时间主要花费在哪里? 如何减少不必要的时间开销? 未涉及 还有哪些地方比较擅长,但是没有问到的
Read more →

Yq & Jq Cheatsheet

Yq & Jq Cheatsheet
Read more →

Kubectl Cheatsheet

Kubectl Cheatsheet
Kubectl Cheatsheet Docs: https://kubernetes.io/docs/reference/kubectl/cheatsheet/ https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands https://erosb.github.io/post/json-patch-vs-merge-patch/ Viewing, Finding Resources Nodes # get node status confditions JSONPATH='{range .items[]}{@.metadata.name}: {range @.status.conditions[]}{@.type}={@.status}, {end}{"\n"}{end}' \ && kubectl get nodes -o jsonpath="$JSONPATH" # check node cpu / memory usage kubectl top pod # check node status kubectl describe nodes kubernetes-minion-emt8.c.myproject.internal # find out the most hight cpu cost pod of a node kubectl get po -A -owide | grep ${NODE_NAME} | awk '{print $1, $2}' | xargs -n2 kubectl top pod –no-headers -n $1 | sort –key 2 -nr | column -t # find out the most hight memory cost pod of a node kubectl get po -A -owide | grep ${NODE_NAME} | awk '{print $1, $2}' | xargs -n2 kubectl top pod –no-headers -n $1 | sort –key 3 -nr | column -t Pods # get resource sort by name kubectl get services –sort-by=.
Read more →

Helm Cheatsheet

Helm Cheatsheet
Read more →

AWS CLI Cheatsheet

AWS CLI Cheatsheet
Read more →

MySQL Cheatsheet

MySQL Cheatsheet
Read more →

MySQL Cheatsheet

MySQL Cheatsheet
nginx sni proxy force https redirection
Read more →

Git & Github Cheatsheet

Git & Github Cheatsheet
Git branch tag submodule Github CLI Git Ignore https://github.com/github/gitignore Frequently Used misc # macOS .DS_Store # Vi / Vim *.swp
Read more →

AWS CLI Cheatsheet

AWS CLI Cheatsheet
aws configure cli output filtering For basic syntax, please refer to https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-filter.html This article only share some practical examples. server side filtering with option –filter Server-side filtering in the AWS CLI is provided by the AWS service API. The AWS service only returns the records in the HTTP response that match your filter, which can speed up HTTP response times for large data sets. Since server-side filtering is defined by the service API, the parameter names and functions vary between services.
Read more →