Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第 272 期 《系统运维的一些干货分享》 by 临川 #268

Open
zven21 opened this issue Mar 6, 2020 · 0 comments
Open

第 272 期 《系统运维的一些干货分享》 by 临川 #268

zven21 opened this issue Mar 6, 2020 · 0 comments

Comments

@zven21
Copy link

zven21 commented Mar 6, 2020

第 272 期 《系统运维的一些干货分享》 by 临川

K8S

Nginx

nginx 部分,主要是查看流量和查看超时 API 的。

阿里云-日志服务

K8S

阿里云-容器服务 Kubernetes

  • 节点
  • 命名空间
  • 保密字典

阿里云-云监控

  • 主机监控

K8S Command

  • K8s 认证 ~/.kube/config
  • 命令集
ID 操作 语法 描述 例子
1 get kubectl get (-f FILENAME | TYPE [NAME | /NAME | -l label]) [–watch] [–sort-by=FIELD] [[-o | –output]=OUTPUT_FORMAT] [flags] 列出一个或多个资源。 k get pod
2 attach kubectl attach POD -c CONTAINER [-i] [-t] [flags] 附加到正在运行的容器,查看输出流或与容器(stdin)交互 k attach pod web-zelda-7f75f69587-ll9rt
3 delete kubectl delete (-f FILENAME | TYPE [NAME | /NAME | -l label | –all]) [flags] 从文件、标准输入或指定标签选择器、名称、资源选择器或资源中删除资源。 k delete pod web-magic-58f9f5545c-d98gp
4 describe kubectl describe (-f FILENAME | TYPE [NAME_PREFIX | /NAME | -l label]) [flags] 显示一个或多个资源的详细状态。 k describe pod web-zelda-7f75f69587-ll9rt
5 edit kubectl edit (-f FILENAME | TYPE NAME | TYPE/NAME) [flags] 使用默认编辑器编辑和更新服务器上一个或多个资源的定义。 k edit deploy web-magic
6 exec kubectl exec POD [-c CONTAINER] [-i] [-t] [flags] [-- COMMAND [args...]] 对 pod 中的容器执行命令。 k exec pod -it web-zelda-7f75f69587-ll9rt bash
7 logs kubectl logs POD [-c CONTAINER] [--follow] [flags] 在 pod 中打印容器的日志。 k logs -l project=web-magic
8 scale kubectl scale (-f FILENAME | TYPE NAME | TYPE/NAME) –replicas=COUNT [–resource-version=version] [–current-replicas=count] [flags] 更新指定副本控制器的大小。 k scale --replicas=11 deploy/web-magic
9 top kubectl top (TYPE NAME) 查看容器的 cpu 和 mem 占用 k get node

PG

阿里云-云数据库 RDS 版

  • 监控与报警
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant