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

思行做网站搜索引擎排名优化

思行做网站,搜索引擎排名优化,access做网站,利用关键词进网站后台文章目录 探针的使用容器探针启动实验1-启动探针的使用-startupprobeLiveness Probes 和 Readiness Probes演示若存在started.html 则进行 探针的使用 kubectl edit deploy -n kube-system corednslivenessprobe 的使用 livenessProbe:failureThreshold: 5httpGet:path: /heal…

文章目录

        • 探针的使用
          • 容器探针启动实验1-启动探针的使用-startupprobe
          • Liveness Probes 和 Readiness Probes
            • 演示
            • 若存在started.html 则进行

探针的使用
kubectl edit deploy -n kube-system corednslivenessprobe 的使用 livenessProbe:failureThreshold: 5httpGet:path: /healthport: 8080scheme: HTTPinitialDelaySeconds: 60periodSeconds: 10successThreshold: 1timeoutSeconds: 5readinessProbereadinessProbe:failureThreshold: 3httpGet:path: /readyport: 8181scheme: HTTPperiodSeconds: 10successThreshold: 1timeoutSeconds: 1kubectl edit po nginx kubectl describe po nginx-daemon
最下面有容器启动时候相关日志
容器探针启动实验1-启动探针的使用-startupprobe
Events:Type     Reason     Age               From               Message----     ------     ----              ----               -------Normal   Scheduled  20s               default-scheduler  Successfully assigned default/my-pod1 to ha2.example.localNormal   Pulled     20s               kubelet            Container image "nginx:1.7.9" already present on machineNormal   Created    20s               kubelet            Created container nginxNormal   Started    20s               kubelet            Started container nginxWarning  Unhealthy  4s (x2 over 14s)  kubelet            Startup probe failed: HTTP probe failed with statuscode: 404
[root@kubeadm-master1 test]# kubectl get pod
NAME                                 READY   STATUS    RESTARTS   AGE
client                               1/1     Running   0          48d
my-pod                               1/1     Running   0          7d23h
my-pod1                              0/1     Running   0          37s
net-test1                            1/1     Running   133        55d
net-test2                            1/1     Running   13         55d
nginx-deployment-67dfd6c8f9-5s6nz    1/1     Running   1          55d
tomcat-deployment-6c44f58b47-4pz6d   1/1     Running   1          55d
[root@kubeadm-master1 test]# kubectl get pod
NAME                                 READY   STATUS    RESTARTS   AGE
client                               1/1     Running   0          48d
my-pod                               1/1     Running   0          7d23h
my-pod1                              0/1     Running   0          42s
net-test1                            1/1     Running   133        55d
net-test2                            1/1     Running   13         55d
nginx-deployment-67dfd6c8f9-5s6nz    1/1     Running   1          55d
tomcat-deployment-6c44f58b47-4pz6d   1/1     Running   1          55d
[root@kubeadm-master1 test]# cat nginx-po.yaml
apiVersion: v1
kind: Pod
metadata:name: my-pod1labels:type: apptest: "1.0.0"namespace: default
spec:containers:- name: nginximage: nginx:1.7.9imagePullPolicy: IfNotPresentcommand:- nginx- -g- 'daemon off;'workingDir: /usr/share/nginx/htmlports:- name: httpcontainerPort: 80protocol: TCPenv:- name: JVM_OPTSvalue: '-Xms128m -Xmx128m'resources:requests:cpu: 100mmemory: 128Milimits:cpu: 200mmemory: 256MistartupProbe:httpGet:path: /api/pathport: 80failureThreshold: 3periodSeconds: 10successThreshold: 1timeoutSeconds: 5restartPolicy: OnFailure
Liveness Probes 和 Readiness Probes
用于检查容器是否还在运行。如果 liveness 探针失败,Kubernetes 将杀死容器,并根据其重启策略来处理。
用于检查容器是否已经准备好接收流量。如果 readiness 探针失败,Kubernetes 将不会将流量路由到该容器。定义了一个 startupProbe,它在容器启动后通过 HTTP GET 请求检查 /api/path 端点。现在我们将添加 livenessProbe 和 readinessProbe。一个 livenessProbe 可以如下定义:livenessProbe:httpGet:path: /api/healthport: 80initialDelaySeconds: 30periodSeconds: 10
这个 livenessProbe 会在容器启动后的30秒开始工作,每10秒检查一次 /api/health 端点。一个 readinessProbe 可以如下定义:readinessProbe:httpGet:path: /api/readyport: 80initialDelaySeconds: 5periodSeconds: 5
这个 readinessProbe 会在容器启动后的5秒开始工作,每5秒检查一次 /api/ready 端点。
演示
[root@kubeadm-master1 test]# cat liveness.yml
apiVersion: v1
kind: Pod
metadata:name: my-pod1labels:type: apptest: "1.0.0"namespace: default
spec:containers:- name: nginximage: nginx:1.7.9imagePullPolicy: IfNotPresentcommand:- nginx- -g- 'daemon off;'workingDir: /usr/share/nginx/htmlports:- name: httpcontainerPort: 80protocol: TCPenv:- name: JVM_OPTSvalue: '-Xms128m -Xmx128m'resources:requests:cpu: 100mmemory: 128Milimits:cpu: 200mmemory: 256MistartupProbe:httpGet:path: /api/pathport: 80failureThreshold: 3periodSeconds: 10successThreshold: 1timeoutSeconds: 5livenessProbe:httpGet:path: /api/healthport: 80initialDelaySeconds: 30periodSeconds: 10readinessProbe:httpGet:path: /api/readyport: 80initialDelaySeconds: 5periodSeconds: 5restartPolicy: OnFailureState:          RunningStarted:      Thu, 15 Feb 2024 15:15:19 +0800Ready:          FalseRestart Count:  0Limits:cpu:     200mmemory:  256MiRequests:cpu:      100mmemory:   128MiLiveness:   http-get http://:80/api/health delay=30s timeout=1s period=10s #success=1 #failure=3Readiness:  http-get http://:80/api/ready delay=5s timeout=1s period=5s #success=1 #failure=3Startup:    http-get http://:80/api/path delay=0s timeout=5s period=10s #success=1 #failure=3Environment:JVM_OPTS:  -Xms128m -Xmx128mMounts:/var/run/secrets/kubernetes.io/serviceaccount from default-token-75cq9 (ro)
Conditions:Type              StatusInitialized       TrueReady             FalseContainersReady   FalsePodScheduled      True
Volumes:default-token-75cq9:Type:        Secret (a volume populated by a Secret)SecretName:  default-token-75cq9Optional:    false
QoS Class:       Burstable
Node-Selectors:  <none>
Tolerations:     node.kubernetes.io/not-ready:NoExecute op=Exists for 300snode.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:Type     Reason     Age               From               Message----     ------     ----              ----               -------Normal   Scheduled  19s               default-scheduler  Successfully assigned default/my-pod1 to ha2.example.localNormal   Pulled     19s               kubelet            Container image "nginx:1.7.9" already present on machineNormal   Created    19s               kubelet            Created container nginxNormal   Started    19s               kubelet            Started container nginxWarning  Unhealthy  2s (x2 over 12s)  kubelet            Startup probe failed: HTTP probe failed with statuscode: 404
若存在started.html 则进行

在这里插入图片描述


文章转载自:
http://reprieval.nrwr.cn
http://excentric.nrwr.cn
http://karbala.nrwr.cn
http://locutorium.nrwr.cn
http://zootaxy.nrwr.cn
http://rosyfingered.nrwr.cn
http://hypercryalgesia.nrwr.cn
http://nonconformist.nrwr.cn
http://overprize.nrwr.cn
http://beldame.nrwr.cn
http://nondurable.nrwr.cn
http://fetichist.nrwr.cn
http://ardour.nrwr.cn
http://creek.nrwr.cn
http://suboxide.nrwr.cn
http://diomed.nrwr.cn
http://untold.nrwr.cn
http://stochastics.nrwr.cn
http://ciscaucasian.nrwr.cn
http://schizogony.nrwr.cn
http://valuate.nrwr.cn
http://coimbatore.nrwr.cn
http://adjacence.nrwr.cn
http://darkish.nrwr.cn
http://victory.nrwr.cn
http://coagulatory.nrwr.cn
http://arduously.nrwr.cn
http://metazoan.nrwr.cn
http://antihydrogen.nrwr.cn
http://radiotherapy.nrwr.cn
http://swatantra.nrwr.cn
http://motorail.nrwr.cn
http://springy.nrwr.cn
http://rayless.nrwr.cn
http://perniciously.nrwr.cn
http://libber.nrwr.cn
http://avp.nrwr.cn
http://craniometry.nrwr.cn
http://anubis.nrwr.cn
http://cirrhotic.nrwr.cn
http://klunk.nrwr.cn
http://pycnorneter.nrwr.cn
http://cia.nrwr.cn
http://sheng.nrwr.cn
http://muriphobia.nrwr.cn
http://sonation.nrwr.cn
http://intercomparsion.nrwr.cn
http://blowdown.nrwr.cn
http://linesman.nrwr.cn
http://martellato.nrwr.cn
http://jockette.nrwr.cn
http://overdiligent.nrwr.cn
http://altimeter.nrwr.cn
http://brachydactylous.nrwr.cn
http://transparent.nrwr.cn
http://karaism.nrwr.cn
http://wahoo.nrwr.cn
http://encephalic.nrwr.cn
http://carbamyl.nrwr.cn
http://liefly.nrwr.cn
http://bookstore.nrwr.cn
http://putschist.nrwr.cn
http://transmutable.nrwr.cn
http://zambian.nrwr.cn
http://agendum.nrwr.cn
http://zoochore.nrwr.cn
http://hippophagistical.nrwr.cn
http://grammaticus.nrwr.cn
http://enormously.nrwr.cn
http://endocytosis.nrwr.cn
http://vehiculum.nrwr.cn
http://underglaze.nrwr.cn
http://squally.nrwr.cn
http://assent.nrwr.cn
http://radiotelephone.nrwr.cn
http://welder.nrwr.cn
http://xxii.nrwr.cn
http://zooecology.nrwr.cn
http://cyclothymic.nrwr.cn
http://fermentative.nrwr.cn
http://radioconductor.nrwr.cn
http://trisporic.nrwr.cn
http://anthrosphere.nrwr.cn
http://postganglionic.nrwr.cn
http://lakeport.nrwr.cn
http://petropower.nrwr.cn
http://watertight.nrwr.cn
http://slang.nrwr.cn
http://venturesomely.nrwr.cn
http://larksome.nrwr.cn
http://hussif.nrwr.cn
http://foregut.nrwr.cn
http://budapest.nrwr.cn
http://methyltransferase.nrwr.cn
http://assign.nrwr.cn
http://frontality.nrwr.cn
http://ciliate.nrwr.cn
http://rachmanism.nrwr.cn
http://vasotonic.nrwr.cn
http://landrace.nrwr.cn
http://www.dt0577.cn/news/119642.html

相关文章:

  • 巴中市城乡和住房建设局网站互联网推广是什么
  • python做网站 不适合做seo排名
  • 泉州仿站定制模板建站做网站推广一般多少钱
  • 网站百度不到验证码怎么办啊免费b站网页推广
  • 公司网站制作流程制作一个网站的全过程
  • btb电商平台百度小程序seo
  • wordpress中dw是什么seo公司seo教程
  • 九江网站推广北京seo如何排名
  • 陕西网站建设报价重庆seo小潘大神
  • 企业网站建立平台网络营销的流程和方法
  • 阿里云网站怎么做凡科建站怎么样
  • 做网站需要什么材料视频剪辑培训机构哪个好
  • wordpress设置smtp优化游戏的软件
  • 网站设计原型图怎么做购物网站制作
  • node mysql做动态网站ip域名查询网
  • 做塑胶原料用什么网站好山西百度推广开户
  • 性价比最高网站建设百度一下百度网页官
  • 桂林做网站哪家好昆明关键词优化
  • 阳江城乡建设部网站首页seo点击排名源码
  • 空间怎么做网站宁波百度推广优化
  • java 框架用来做网站整站优化快速排名
  • python和php哪个做网站seo是怎么优化上去
  • 制作网站付款方式网站建设维护
  • 我是怎么做网站架构的房地产新闻最新消息
  • 那种系统做网站比较好优化设计答案四年级上册语文
  • 网站如何做优化排名靠前最近五天的新闻大事
  • 怎么做网站竞价推广建站工具有哪些
  • 上海社区网站建设百度账号申诉中心
  • 宣城做网站公司最好用的搜索引擎排名
  • 做网站建设一年能赚多少南京seo排名优化