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

黄一级a做爰片免费网站wordpress 插件play

黄一级a做爰片免费网站,wordpress 插件play,全球域名注册查询,百度上做网站模板Chaos Mesh云原生的混沌测试平台搭建 一.环境准备 ​ 确认已经安装helm,如要查看 Helm 是否已经安装,请执行如下命令: helm version二.使用helm安装 1.添加 Chaos Mesh 仓库 ​ 在 Helm 仓库中添加 Chaos Mesh 仓库: helm re…

Chaos Mesh云原生的混沌测试平台搭建

一.环境准备

​ 确认已经安装helm,如要查看 Helm 是否已经安装,请执行如下命令:

helm version

image-20241216141133264

二.使用helm安装

1.添加 Chaos Mesh 仓库

​ 在 Helm 仓库中添加 Chaos Mesh 仓库:

helm repo add chaos-mesh https://charts.chaos-mesh.org
2.查看可以安装的 Chaos Mesh 版本
#最新版
helm search repo chaos-mesh
#可查看历史版本
helm search repo chaos-mesh -l

如图:image-20241216151042116

3.安装 Chaos Mesh
#创建命名空间
kubectl create ns chaos-mesh

​ 因为在安装部署Chaos Mesh的时候,会涉及到k8s拉取不到镜像,或者需要自定义其他配置。所以在部署的时候可以指定values.yml文件。

​ 进入这个网站:chaos-mesh/helm/chaos-mesh at release-2.7 · chaos-mesh/chaos-mesh,找到自己对应安装的版本。

image-20241216152534469

找到该目录的values.yaml文件,然后复制里面需要修改的内容,在本地新建一个文件进行对应的调整。

如图是一些可能修改的点,要注意复制修改的时候,需要把一些必要的上下文一起复制,注意缩进。

image-20241216153241436

下面是自己的例子,主要是修改了镜像地址和时区:

rbac:create: true# timezone is the timezone where controller-manager, chaos-daemon and dashboard uses.
# For example: "UTC" or "Asia/Shanghai"
# This value will be set on controller-manager and dashboard container's
# environment variable TZ.
# You may need to set the timezone to be consistent with your Grafana configuration,
# otherwise the query Grafana used to retrieve event maybe in wrong timezone.
timezone: "Asia/Shanghai"images:# images.registry is the global container registry for the images, you could replace it with your self-hosted container registry.registry: "registry.cn-hangzhou.aliyuncs.com"# images.tag is the global image tag (for example, semiVer with prefix v, or latest).tag: "v2.7.0"controllerManager:# securityContext if neededsecurityContext: {}# running chaos-controller-manager on host networkhostNetwork: false# Allow testing on `hostNetwork` pods. This is Dangerous. Please run only as temporary solution.allowHostNetworkTesting: false# The serviceAccount for chaos-controller-managerserviceAccount: chaos-controller-manager# ServiceAccount annotations for chaos-controller-managerserviceAccountAnnotations: {}# Create the serviceAccount for chaos-controller-managerserviceAccountCreate: true# Custom priorityClassName for using pod prioritiespriorityClassName: ""# Replicas for chaos-controller-managerreplicaCount: 3# image would be constructed by <registry>/<repository>:<tag>image:# override global registry, empty value means using the global images.registryregistry: ""# repository part for image of chaos-controller-managerrepository: <阿里云镜像仓库地址>/chaos-mesh# override global tag, empty value means using the global images.tagtag: ""# Image pull policyimagePullPolicy: IfNotPresent# The keys within the "env" map are mounted as environment variables on the pod.env:# WEBHOOK_PORT is configured the port for chaos-controller-manager provides webhooks.# In GKE private clusters, by default kubernetes apiservers are allowed to# talk to the cluster nodes only on 443 and 10250. so configuring# WEBHOOK_PORT: 10250, will work out of the box without needing to add firewall# rules or requiring NET_BIND_SERVICE capabilities to bind port numbers <1000WEBHOOK_PORT: 10250# METRICS_PORT is configured the port for chaos-controller-manager exposing prometheus metricsMETRICS_PORT: 10080# If enabled, only pods in the namespace annotated with `"chaos-mesh.org/inject": "enabled"` could be injectedenableFilterNamespace: false# targetNamespace only works with clusterScoped is false(namespace scoped mode).# It means namespace which will be injected chaostargetNamespace: chaos-meshservice:# Kubernetes Service type for service chaos-controller-managertype: ClusterIPresources:# We usually recommend not to specify default resources and to leave this as a conscious# choice for the user. This also increases chances charts run on environments with little# resources, such as Minikube. If you do want to specify resources, uncomment the following# lines, adjust them as necessary, and remove the curly braces after 'resources:'.limits: {}#  cpu: 500m#  memory: 1024Mirequests:cpu: 25mmemory: 256Mi# Node labels for chaos-controller-manager pod assignmentnodeSelector: {}# Toleration labels for chaos-controller-manager pod assignmenttolerations: []# Map of chaos-controller-manager node/pod affinitiesaffinity: {}# Pod annotations of chaos-controller-managerpodAnnotations: {}# A list of controllers to enable. "*" enables all controllers by default.enabledControllers:- "*"# A list of webhooks to enable. "*" enables all webhooks by default.enabledWebhooks:- "*"podChaos:podFailure:# Custom Pause Container Image for Pod Failure ChaospauseImage: registry.cn-hangzhou.aliyuncs.com/<阿里云镜像仓库地址>/pause:latestleaderElection:# Enable leader election for controller manager.enabled: true# The duration that non-leader candidates will wait to force acquire leadership. This is measured against time of last observed ack.leaseDuration: 15s# The duration that the acting control-plane will retry refreshing leadership before giving up.renewDeadline: 10s# The duration the LeaderElector clients should wait between tries of actions.retryPeriod: 2s# chaosdSecurityMode is enabled for mTLS connection between chaos-controller-manager and chaosdchaosdSecurityMode: true# multi cluster install offline helm chart pathlocalHelmChart:enabled: falsevolume:hostPath:path: /data/helmtype: DirectoryOrCreatechaosDaemon:# image would be constructed by <registry>/<repository>:<tag>image:# override global registry, empty value means using the global images.registryregistry: ""# repository part for image of chaos-daemonrepository: <阿里云镜像仓库地址>/chaos-daemon# empty tag means using the global images.tagtag: ""# Image pull policyimagePullPolicy: IfNotPresent# The port which grpc server listens on.grpcPort: 31767# The port which http server listens on.httpPort: 31766# extra chaosDaemon envsenv: {}# securityContext if neededsecurityContext: {}# running chaosDaemon on host networkhostNetwork: false# configurations about mtls.# currently we do not support use specified ca and cert for mtls, it would generate the ca and certs when chaos mesh deploy by helm.mtls:# enable mtls on the grpc connection between chaos-controller-manager and chaos-daemonenabled: trueruntime: containerdsocketPath: /run/containerd/containerd.sockdashboard:# Enable chaos-dashboardcreate: true# Optional, the secret name that has `DATABASE_DATASOURCE` defined.# It's recommended to use a secret to store the database credentials.databaseSecretName: ""# rootUrl specify the base url for openid/oauth2 (like GCP Auth Integration) callback URL.rootUrl: http://localhost:2333# securityContext if neededsecurityContext: {}# running chaos-dashboard on host networkhostNetwork: false# replicas of chaos-dashboardreplicaCount: 1# Custom priorityClassName for using pod prioritiespriorityClassName: ""# The serviceAccount for chaos-dashboardserviceAccount: chaos-dashboardimage:# override global registry, empty value means using the global images.registryregistry: ""# repository part for image of chaos-dashboardrepository: <阿里云镜像仓库地址>/chaos-dashboard# override global tag, empty value means using the global images.tagtag: ""# Image pull policyimagePullPolicy: IfNotPresent# securityMode requires user to provide credentials on Chaos Dashboard, instead of using chaos-dashboard service accountsecurityMode: truednsServer:# Enable DNS Server which required by DNSChaoscreate: true# Name of serviceaccount for chaos-dns-server.serviceAccount: chaos-dns-server# image would be constructed by <registry>/<repository>:<tag>image:# override global registry, empty value means using the global images.registryregistry: ""# repository part for image of chaos-dns-serverrepository: chaos-mesh/chaos-coredns# override global tag, empty value means using the global images.tagtag: "v0.2.6"# Image pull policyimagePullPolicy: IfNotPresent# Customized priorityClassName for chaos-dns-serverpriorityClassName: ""dnsServer:# Enable DNS Server which required by DNSChaoscreate: true# Name of serviceaccount for chaos-dns-server.serviceAccount: chaos-dns-server# image would be constructed by <registry>/<repository>:<tag>image:# override global registry, empty value means using the global images.registryregistry: ""# repository part for image of chaos-dns-serverrepository: <阿里云镜像仓库地址>/chaos-coredns# override global tag, empty value means using the global images.tagtag: "v0.2.6"# Image pull policyimagePullPolicy: IfNotPresent# Customized priorityClassName for chaos-dns-serverpriorityClassName: ""

在修改完镜像地址等等东西之后,就可以执行命令部署。

helm install chaos-mesh -f chaos_mesh_values.yaml chaos-mesh/chaos-mesh --namespace=chaos-mesh --create-namespace

-f 后面是自己修改的values配置文件

检查是否部署成功

kubectl get po -n chaos-mesh

image-20241216160418158

4.访问Chaos Mesh

访问地址是<集群IP>:30768,如图。

image-20241216161440545

Chaos MeshRBAC 鉴权:

image-20241216170325685

image-20241216170310725

按如下步骤选择好命名空间和角色之后,点击自动生成的文件创建即可。

这里要注意:

kubectl create token account-default-viewer-ixqbu

这个命令生成的token是有过期时效的。所以我们还有一个方法可以生成长期可用的token。

apiVersion: v1
kind: Secret
metadata:name: account-test-manager-sequd-tokennamespace: testannotations:kubernetes.io/service-account.name: account-default-viewer-ixqbu
type: kubernetes.io/service-account-token

注意此处的kubernetes.io/service-account.name:和上一步创建的角色名字相同.

#查看secretskubectl describe secrets -n test account-test-manager-sequd-token

image-20241216174337082

输入环境名和token就可以成功创建实验了。

三.创建测试实验

1.选择实验方法设置实验条件

image-20241216183310384

image-20241216183337441

这里Workers代表进程,这里是三个进程对Pod施加100M的压力。

image-20241216183515998

这里可以配置标签选择器和命名空间,以确定哪些Pod参与此次实验。

image-20241216183622920

此处要注意,当最后一步提交的时候,如果没有反应。报错信息则需要在F12里看具体的接口报错。此处报错信息在Pod日志 里无法看见。

a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, ‘-’ or ‘.’

这里可以看到失败的原因是实验名称必须小写且不能有除这些字符以外的特殊字符。

image-20241216183924917image-20241216184010293

修改之后则可以正常提交。

2.检查实验结果

在提交了实验之后,我们可以看到实验正在进行。

image-20241216184038884

此时进入容器内部top,可以看到会有其他的进程对该pod施加内存压力,则证明Chaos Mesh安装成功可以如期进行实验

image-20241216184108052

http://www.yayakq.cn/news/99182/

相关文章:

  • 旅游网站建设国内外现状给公司创建网站
  • 昆山网站建设jofuns万网主机 网站重做
  • 济南做html5网站天津做网站的
  • 建设网站用什么好网站开发后台用什么语言
  • 想建立一个网站怎么做企业查询软件免费
  • 中国建设部网站关于资质批量网站建设
  • 苏州市网站网页设计案例图片
  • 网站制作零基础学习分销商城系统有哪些
  • 佛山公司网站推广外包服务外贸网站搭建推广
  • phpwind怎么做网站网络营销的目的
  • 网站主色调简介如何做彩票网站代理
  • 网站建设公司网站建设专业品牌国外优秀vi设计案例
  • 计算机网站建设相关的书籍小米发布会在哪看
  • 安徽住房和城乡建设厅网站首页学习网站建设好找工作吗
  • 营养早餐网站的设计与制作淘客网站建设收费吗
  • 网站建设 验证码做微商海报的网站
  • 网站付款方式电子商务网站建设调查问卷
  • 显示网站建设中淮安哪里做网站
  • 响应式博客网站模板深圳卓越城蔚蓝铂樾府
  • 开通网站必须做域名空间江门当地的免费网站优化
  • wordpress 多站点 多域名自适应网站制作教程
  • 广州哪家网站建设公司好开通建立企业网站
  • 移动网站建设是什么意思关键词优化软件哪家好
  • 东营网站建设app开发WordPress的主题制作教程
  • 通过ip直连打开网站要怎么做解聘 人力资源网站上怎么做
  • 定远建设局官方网站长扬科技北京有限公司
  • 重庆网站改版wordpress 地图xml生成
  • 公司建一个网站多少钱wordpress本地后台密码修改
  • 最大的地方门户网站源码太原制作网站的公司哪家好
  • 基础展示营销型型网站深圳市公司网站建设价格