From b3ace99d96a3587a1b0465b5e22481c3474ace17 Mon Sep 17 00:00:00 2001 From: mengkzhaoyun Date: Thu, 5 Nov 2020 19:50:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E7=94=A8=20startupProbe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Deploy.md | 10 ++++------ templates/core/core-dpl.yaml | 16 ++++++++-------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/Deploy.md b/Deploy.md index 7abd61f..438cc26 100644 --- a/Deploy.md +++ b/Deploy.md @@ -4,18 +4,16 @@ ```bash # 1.install - -# label node -kubectl label node harbor=enabled - helm install \ +harbor \ /etc/kubernetes/helm/harbor \ ---name=harbor \ --namespace=devops \ -f /etc/kubernetes/helm/harbor/values-overrides.yaml # uninstall -helm delete harbor --purge +helm uninstall \ +harbor \ +--namespace devops # update helm upgrade harbor /etc/kubernetes/helm/harbor \ diff --git a/templates/core/core-dpl.yaml b/templates/core/core-dpl.yaml index 10002f1..ceac1b2 100644 --- a/templates/core/core-dpl.yaml +++ b/templates/core/core-dpl.yaml @@ -42,14 +42,14 @@ spec: - name: core image: {{ .Values.core.image.repository }}:{{ .Values.core.image.tag }} imagePullPolicy: {{ .Values.imagePullPolicy }} - startupProbe: - httpGet: - path: /api/v2.0/ping - scheme: {{ include "harbor.component.scheme" . | upper }} - port: {{ template "harbor.core.containerPort" . }} - failureThreshold: 360 - initialDelaySeconds: {{ .Values.core.startupProbe.initialDelaySeconds }} - periodSeconds: 10 + # startupProbe: + # httpGet: + # path: /api/v2.0/ping + # scheme: {{ include "harbor.component.scheme" . | upper }} + # port: {{ template "harbor.core.containerPort" . }} + # failureThreshold: 360 + # initialDelaySeconds: {{ .Values.core.startupProbe.initialDelaySeconds }} + # periodSeconds: 10 livenessProbe: httpGet: path: /api/v2.0/ping -- 2.26.0