当前位置: 首页 > 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.yutouwan.com/news/234736/

相关文章:

  • 宁陵网站建设汕头潮阳网站建设
  • 四站合一网站建设公司网上购物哪个平台能买到正品
  • 陕西省住房建设厅官方网站中小企业网站建设多少钱
  • 网站备案是给什么进行备案系统小说
  • 深圳网站建设 龙华信科免费软件下载网站哪个好
  • 内部链接网站大全网站按钮设计成什么颜色原因
  • 傻瓜式网站全网关键词指数查询
  • 网站备案 强制宝塔和WordPress一样吗
  • 做网站和编程在郑州建设网站这么做
  • 数码网站建设论文做电子商务平台网站需要多少钱
  • 朝城做网站公司平面设计画图软件
  • 呼伦贝尔网站建设做淘宝网站用什么软件
  • 深圳企业模板网站建设微商可以做网站推广吗
  • wcm 可以做网站吗衡阳县专业做淘宝网站
  • 建设搜索引擎友好的网站推广普通话手抄报简单漂亮
  • 网站备案查询接口帮忙做公司网站
  • 杭州企业网站定制html网页制作简单范例
  • 百度网站怎么建设的家具公司网站模板下载
  • 专业制作广告字潍坊网站建设seo
  • 网站变成灰色wordpress文章分多列排
  • 花都区建设工程造价管理网站常德网站建设产品
  • 网络营销网站建设与策划分析做暧暧前戏视频网站
  • 如何制作网站app上海网页制作步骤
  • 做网站项目流程空白网站怎么做
  • 大连做网站建设傻瓜式建站软件
  • 百度给做网站收费多少钱招商网站建设费用价格
  • 中山开发公司seo最好的网站
  • 怎么找网站的根目录小程序可以自己开发吗
  • 手机网站制作方法wordpress会员上限
  • 网络架构师和网络工程师区别麒麟seo