mirror of https://github.com/rancher/dashboard.git
44 lines
1.0 KiB
Vue
44 lines
1.0 KiB
Vue
<script>
|
|
import Probe from '@/components/form/Probe';
|
|
|
|
export default {
|
|
components: { Probe },
|
|
props: {
|
|
spec: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
mode: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<div class="row">
|
|
<div class="col span-11-of-23">
|
|
<Probe
|
|
v-model="spec.readinessProbe"
|
|
:mode="mode"
|
|
:for-liveness="false"
|
|
label="Readiness Check"
|
|
description="Containers will be removed from service endpoints when this check is failing. Recommended."
|
|
/>
|
|
</div>
|
|
<div class="col span-1-of-23" style="position: relative; overflow: hidden">
|
|
<hr class="vertical" />
|
|
</div>
|
|
<div class="col span-11-of-23">
|
|
<Probe
|
|
v-model="spec.livenessProbe"
|
|
:mode="mode"
|
|
:for-liveness="true"
|
|
label="Liveness Check"
|
|
description="Containers will be restarted when this check is failing. Not recommended for most uses."
|
|
/>
|
|
</div>
|
|
</div>
|
|
</template>
|