Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
frontend: readiness add initialDelaySeconds
  • Loading branch information
wilhelmguo committed Mar 22, 2019
commit 5d317ce55f2f377c37648d0643396b73cf524bec
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,15 @@ <h3 class="header-title" id="创建模版">{{'DAEMONSET.CREATE_TMP' | translate}
<label class="clr-col-md-3 form-group-label-override">{{'TEMPLATE.FAIL_NUM' | translate}}</label>
<input type="number" required name="container.readinessProbe.failureThreshold{{i}}"
[(ngModel)]="container.readinessProbe.failureThreshold">
<label class="clr-col-md-3 form-group-label-override">{{'TEMPLATE.CHECK_DELAY' | translate}}
<a role="tooltip" aria-haspopup="true" class="tooltip tooltip-md">
<clr-icon shape="info-circle" size="24"></clr-icon>
<span class="tooltip-content">{{'TEMPLATE.CHECK_DELAY_MESSAGE' | translate}}</span>
</a>
</label>
<input type="number" required name="container.readinessProbe.initialDelaySeconds{{i}}"
[(ngModel)]="container.readinessProbe.initialDelaySeconds"
[placeholder]="'PLACEHOLDER.SECOND' | translate">
</div>

<div class="form-group form-group-padding">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ export class CreateEditDaemonSetTplComponent extends ContainerTpl implements OnI
probe.httpGet = new HTTPGetAction();
probe.timeoutSeconds = 1;
probe.periodSeconds = 10;
probe.initialDelaySeconds = 30;
probe.failureThreshold = 10;
}
this.kubeResource.spec.template.spec.containers[i].readinessProbe = probe;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,15 @@ <h3 class="header-title" id="创建模版">
<label class="clr-col-md-3 form-group-label-override">{{'TEMPLATE.FAIL_NUM' | translate}}</label>
<input type="number" required name="container.readinessProbe.failureThreshold{{i}}"
[(ngModel)]="container.readinessProbe.failureThreshold">
<label class="clr-col-md-3 form-group-label-override">{{'TEMPLATE.CHECK_DELAY' | translate}}
<a role="tooltip" aria-haspopup="true" class="tooltip tooltip-md">
<clr-icon shape="info-circle" size="24"></clr-icon>
<span class="tooltip-content">{{'TEMPLATE.CHECK_DELAY_MESSAGE' | translate}}</span>
</a>
</label>
<input type="number" required name="container.readinessProbe.initialDelaySeconds{{i}}"
[(ngModel)]="container.readinessProbe.initialDelaySeconds"
[placeholder]="'PLACEHOLDER.SECOND' | translate">
</div>

<div class="form-group form-group-padding">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ export class CreateEditDeploymentTplComponent extends ContainerTpl implements On
probe.httpGet = new HTTPGetAction();
probe.timeoutSeconds = 1;
probe.periodSeconds = 10;
probe.initialDelaySeconds = 30;
probe.failureThreshold = 10;
}
this.kubeResource.spec.template.spec.containers[i].readinessProbe = probe;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,16 @@ <h3 class="header-title" id="创建模版">
<label class="clr-col-md-3 form-group-label-override">{{'TEMPLATE.FAIL_NUM' | translate}}</label>
<input type="number" required name="container.readinessProbe.failureThreshold{{i}}"
[(ngModel)]="container.readinessProbe.failureThreshold">
<label class="clr-col-md-3 form-group-label-override">{{'TEMPLATE.CHECK_DELAY' | translate}}
<a role="tooltip" aria-haspopup="true" class="tooltip tooltip-md">
<clr-icon shape="info-circle" size="24"></clr-icon>
<span class="tooltip-content">{{'TEMPLATE.CHECK_DELAY_MESSAGE' | translate}}</span>
</a>
</label>
<input type="number" required name="container.readinessProbe.initialDelaySeconds{{i}}"
[(ngModel)]="container.readinessProbe.initialDelaySeconds"
[placeholder]="'PLACEHOLDER.SECOND' | translate">

</div>

<div class="form-group form-group-padding">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ export class CreateEditStatefulsettplComponent extends ContainerTpl implements O
probe.httpGet = new HTTPGetAction();
probe.timeoutSeconds = 1;
probe.periodSeconds = 10;
probe.initialDelaySeconds = 30;
probe.failureThreshold = 10;
}
this.kubeResource.spec.template.spec.containers[i].readinessProbe = probe;
Expand Down