当前位置: 首页 > news >正文

网站推广存在的问题网站攻击一般有那些

网站推广存在的问题,网站攻击一般有那些,好用的免费网站建设,购物网站设计图作者 | Addo Zhang来源 | 云原生指北其实日常工作中在集群上的操作也非常多#xff0c;今天就来介绍我所使用的工具。kubectl-alias使用频率最高的工具#xff0c;我自己稍微修改了一下#xff0c;加入了 StatefulSet 的支持。这个是我的 https://github.com/addozhang/kube… 作者 | Addo Zhang来源 | 云原生指北其实日常工作中在集群上的操作也非常多今天就来介绍我所使用的工具。kubectl-alias使用频率最高的工具我自己稍微修改了一下加入了 StatefulSet 的支持。这个是我的 https://github.com/addozhang/kubectl-aliases基于 https://github.com/ahmetb/kubectl-aliases。比如输出某个 pod 的 jsonkgpoojson xxx 等同于 kubectl get pod xxx -o json。结合 jq 使用效果更好 。语法解读•kkubectl•sys--namespace kube-system•commands:•gget•ddescribe•rmdelete•a:apply -f•ak:apply -k•k:kustomize•ex: exec -i -t•lo: logs -f•resources:•popod, depdeployment, ingingress, svcservice, cmconfigmap, secsecret,nsnamespace, nonode•flags:•output format: oyaml, ojson, owide•all: --all or --all-namespaces depending on the command•sl: --show-labels•w-w/--watch•value flags (should be at the end):•n-n/--namespace•f-f/--filename•l-l/--selectorkubectx kubens安装看这里kubectx 用于在不同的集群间进行快速切换。假如用 kubectl你需要# context 列表 kubectl config current-context # 设置 context kubectl config use-context coffeekubectx-demokubens 就是在不同 namespace 间快速切换的工具。用 kubectl 的话需要# namespace 列表 kbuectl get ns # kubectl config set-context --current --namespacekube-systemkubens-demok9s没错只比 k8s 多了个 1 。k9s 提供了终端 UI 与 Kubernetes 集群进行编辑交互。本人常用的比如•F 配置端口转发•l 输出 pod 日志•e 修改资源对象•s pod 终端交互模式•y yaml 方式输出资源对象•d describe 资源对象•ctrld 删除 pod启动方式# 指定 namespace 运行 k9s -n mycoolns # 指定 context 运行 k9s --context coolCtx # 只读模式运行 k9s --readonlyk9s-pod键入问号“?” 就可以打开快捷操作指引。helpsternstern 可以用来 tail 集群上的多个 pod 和 pod 中多个容器的日志。不同的 pod 和容器以不同的颜色区分方便 debug。比如使用命令 stern -l tiercontrol-plane -n kube-system 可以输出 kube-system 命名空间下控制平面label 为 tiercontrol-plane pod 的日志。stern-control-plane命令行选项Tail multiple pods and containers from Kubernetes Usage:stern pod-query [flags] Flags:-A, --all-namespaces If present, tail across all namespaces. A specific namespace is ignored even if specified with --namespace.--color string Color output. Can be always, never, or auto (default auto)--completion string Outputs stern command-line completion code for the specified shell. Can be bash or zsh-c, --container string Container name when multiple containers in pod (default .*)--container-state string If present, tail containers with status in running, waiting or terminated. Default to running. (default running)--context string Kubernetes context to use. Default to current context configured in kubeconfig.-e, --exclude strings Regex of log lines to exclude-E, --exclude-container string Exclude a Container name--field-selector string Selector (field query) to filter on. If present, default to .* for the pod-query.-h, --help help for stern-i, --include strings Regex of log lines to include--init-containers Include or exclude init containers (default true)--kubeconfig string Path to kubeconfig file to use-n, --namespace strings Kubernetes namespace to use. Default to namespace configured in Kubernetes context. To specify multiple namespaces, repeat this or set comma-separated value.-o, --output string Specify predefined template. Currently support: [default, raw, json] (default default)-l, --selector string Selector (label query) to filter on. If present, default to .* for the pod-query.-s, --since duration Return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to 48h.--tail int The number of lines from the end of the logs to show. Defaults to -1, showing all logs. (default -1)--template string Template to use for log lines, leave empty to use --output flag-t, --timestamps Print timestamps--timezone string Set timestamps to specific timezone (default Local)-v, --version Print the version and exitLensLens 是用来控制 Kubernetes 的 IDE开源且免费。消除了集群操作的复杂性、提供了实时的可观察性、方便故障排查、支持多系统的桌面客户端、兼容多种集群。LensInfra AppInfra App 跟 Lens 差不多UI 较 Lens 好些但是功能就弱很多类似 Lens 的只读模式。免费版比收费版的区别只在于支持的集群数量免费版只支持一个集群。Infrakubefwdkubefwd这个一直有安装但是使用次数寥寥因为应用之间的访问没有走 service不过偶尔做些实验的时候会用的上。kubefwd 是一个用于端口转发Kubernetes中指定namespace下的全部或者部分pod的命令行工具。kubefwd 使用本地的环回IP地址转发需要访问的service并且使用与service相同的端口。kubefwd 会临时将service的域条目添加到 /etc/hosts 文件中。启动kubefwd后在本地就能像在Kubernetes集群中一样使用service名字与端口访问对应的应用程序。kubefwd_ani总结善用工具可以提升效率但并不是不可或缺的。如果你有其他的工具欢迎留言提出。往期推荐苹果将于2025年推出的Apple Car长什么样长跑11年腾讯开源的变与不变边缘应用增长800%听听Akamai边缘部署的经验CSDN云原生Meet up深圳站与你不见不散点分享点收藏点点赞点在看
http://www.huolong8.cn/news/234736/

相关文章:

  • 房屋自建设计哪个网站好ui设计在线培训机构
  • 厦门专业网站建设建站做国际贸易哪个网站比较好
  • 宁波模板建站定制建设兼职网站目的
  • 成都网站建设公司思乐科技企业网站建设公司上海
  • 韩雪冬个人网站 北京北京公司网站建设服务
  • 建站快车是什么建设网站的和服务器
  • 购物商城html网站代码学校微网站模板下载
  • 备案网站查询网址五八同城58同城找工作
  • 珠海网站建设 金蝶网页制作与设计知识点复习
  • 网站建设 福田山西建设机械网站
  • 图片在线制作网站苏州品牌网站设计
  • 苏华建设集团网站网站建设维护成本
  • 外贸网站自我建设与优化网站开发维护需要哪些人
  • 网站搜索框设计网站菜单模板
  • 网站建设排名软件数字化转型对企业的影响
  • cms网站模板套用教程wordpress 创建自定义面板类文件
  • 观音桥网站建设网站建设设计logo 费用
  • 鄂州网站设计公司自己网站怎么做优化
  • 电商网站的建设背景图片做h的游戏 迅雷下载网站
  • 做博物馆网站最重要郑州模板建站多少钱
  • wordpress 前台注册网站建设优化服务
  • 车轮违章查询是什么网站开发做网站用apache还是nginx
  • 大型购物网站alexa全球排名
  • 危险网站怎么做腾讯云认证北京网站优化推广公司
  • 发布网站域名设置桂林网站建设公司
  • 彩票网站开发有连带专业格泰网站建设
  • 电子商务网站开发背景专门做特医食品的网站
  • 房地产销售工资一般多少钱一个月上海seo有哪些公司
  • 成品超市网站简述网站建设的基本思路
  • 在家做网站企业建站方案