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

河南建筑网站网站开发网上教学

河南建筑网站,网站开发网上教学,贵州网站建设维护,哪个公司建网站好Chaos Mesh云原生的混沌测试平台搭建 一.环境准备 ​ 确认已经安装helm#xff0c;如要查看 Helm 是否已经安装#xff0c;请执行如下命令#xff1a; helm version二.使用helm安装 1.添加 Chaos Mesh 仓库 ​ 在 Helm 仓库中添加 Chaos Mesh 仓库#xff1a; helm re… Chaos Mesh云原生的混沌测试平台搭建 一.环境准备 ​ 确认已经安装helm如要查看 Helm 是否已经安装请执行如下命令 helm version二.使用helm安装 1.添加 Chaos Mesh 仓库 ​ 在 Helm 仓库中添加 Chaos Mesh 仓库 helm repo add chaos-mesh https://charts.chaos-mesh.org2.查看可以安装的 Chaos Mesh 版本 #最新版 helm search repo chaos-mesh #可查看历史版本 helm search repo chaos-mesh -l如图 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找到自己对应安装的版本。 找到该目录的values.yaml文件然后复制里面需要修改的内容在本地新建一个文件进行对应的调整。 如图是一些可能修改的点要注意复制修改的时候需要把一些必要的上下文一起复制注意缩进。 下面是自己的例子主要是修改了镜像地址和时区 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 containers # 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/Shanghaiimages:# 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.0controllerManager:# 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:tagimage:# 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:tagimage:# 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.# Its 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:tagimage:# 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:tagimage:# 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 --namespacechaos-mesh --create-namespace-f 后面是自己修改的values配置文件 检查是否部署成功 kubectl get po -n chaos-mesh4.访问Chaos Mesh 访问地址是集群IP:30768如图。 Chaos MeshRBAC 鉴权 按如下步骤选择好命名空间和角色之后点击自动生成的文件创建即可。 这里要注意 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输入环境名和token就可以成功创建实验了。 三.创建测试实验 1.选择实验方法设置实验条件 这里Workers代表进程这里是三个进程对Pod施加100M的压力。 这里可以配置标签选择器和命名空间以确定哪些Pod参与此次实验。 此处要注意当最后一步提交的时候如果没有反应。报错信息则需要在F12里看具体的接口报错。此处报错信息在Pod日志 里无法看见。 a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, ‘-’ or ‘.’ 这里可以看到失败的原因是实验名称必须小写且不能有除这些字符以外的特殊字符。 修改之后则可以正常提交。 2.检查实验结果 在提交了实验之后我们可以看到实验正在进行。 此时进入容器内部top可以看到会有其他的进程对该pod施加内存压力则证明Chaos Mesh安装成功可以如期进行实验
http://www.w-s-a.com/news/970287/

相关文章:

  • tp5做企业网站宿迁房产网租房信息
  • php高级网站开发wordpress不能添加文章
  • 小学校园网站建设付费阅读下载网站开发
  • 如何做招聘网站网站建设中 敬请期待
  • 雅安工程交易建设网站做vip电影网站
  • 网站建设方维网站标题title为什么不能频繁的改
  • 网站建设如何上传文件wordpress列表自定义数据表
  • 摄影课程自学网站科技项目的类型有
  • 未来最紧缺的十大专业长春seo顾问
  • 为什么点不开网站公关公司是做什么的
  • wordpress主要菜单如何对网站页面进行优化
  • 建设银行深分行圳招聘网站建立互联网公司网站
  • 湖南做旅游网站哪家最好html5手机网站免费模板
  • 云服务器上放多个网站wordpress ping大全
  • 以下属于网站的管理 更新 维护如何才能做好品牌网站建设
  • 国家工业和信息化部网站备案系统网站建设设计费用
  • 网站建设利弊宁波高端网站建设联系方式
  • 网站订票策划方案郑州代做网站
  • 免费的网站加速器注册公司邮箱
  • 千助网站建设网站整站程序
  • 自学建网站做网站优化访问网站出现目录
  • 济南网站建设是什么百度官网登录入口手机版
  • net快速建站西宁手机网站建设
  • 网站浏览器不兼容怎么办软件系统开发大概多少钱
  • 网站建设哪个公司最好shift wordpress
  • 公司网站建设功能介绍室内设计学习
  • 做网站策划容易遇到哪些问题沈阳公司网站制作
  • 做php网站都用框架吗网站备案当面核验拍摄照片
  • 泉州企业自助建站兰州最好的互联网公司
  • 监察部门网站建设方案网站seo技术教程