2018-03-17 18:26:18 +05:30
|
|
|
<script>
|
2018-10-15 14:42:47 +05:30
|
|
|
import _ from 'underscore';
|
2018-12-13 13:39:08 +05:30
|
|
|
import helmInstallIllustration from '@gitlab/svgs/dist/illustrations/kubernetes-installation.svg';
|
2018-12-05 23:21:45 +05:30
|
|
|
import elasticsearchLogo from 'images/cluster_app_logos/elasticsearch.png';
|
|
|
|
import gitlabLogo from 'images/cluster_app_logos/gitlab.png';
|
|
|
|
import helmLogo from 'images/cluster_app_logos/helm.png';
|
|
|
|
import jeagerLogo from 'images/cluster_app_logos/jeager.png';
|
|
|
|
import jupyterhubLogo from 'images/cluster_app_logos/jupyterhub.png';
|
|
|
|
import kubernetesLogo from 'images/cluster_app_logos/kubernetes.png';
|
2018-12-23 12:14:25 +05:30
|
|
|
import certManagerLogo from 'images/cluster_app_logos/cert_manager.png';
|
2018-12-13 13:39:08 +05:30
|
|
|
import knativeLogo from 'images/cluster_app_logos/knative.png';
|
2018-12-05 23:21:45 +05:30
|
|
|
import meltanoLogo from 'images/cluster_app_logos/meltano.png';
|
|
|
|
import prometheusLogo from 'images/cluster_app_logos/prometheus.png';
|
2018-10-15 14:42:47 +05:30
|
|
|
import { s__, sprintf } from '../../locale';
|
|
|
|
import applicationRow from './application_row.vue';
|
|
|
|
import clipboardButton from '../../vue_shared/components/clipboard_button.vue';
|
2018-12-23 12:14:25 +05:30
|
|
|
import { CLUSTER_TYPE, APPLICATION_STATUS, INGRESS } from '../constants';
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
applicationRow,
|
|
|
|
clipboardButton,
|
|
|
|
},
|
|
|
|
props: {
|
2018-12-23 12:14:25 +05:30
|
|
|
type: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: CLUSTER_TYPE.PROJECT,
|
|
|
|
},
|
2018-10-15 14:42:47 +05:30
|
|
|
applications: {
|
|
|
|
type: Object,
|
|
|
|
required: false,
|
|
|
|
default: () => ({}),
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
2018-10-15 14:42:47 +05:30
|
|
|
helpPath: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: '',
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
2018-10-15 14:42:47 +05:30
|
|
|
ingressHelpPath: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
ingressDnsHelpPath: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
managePrometheusPath: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
},
|
2018-12-05 23:21:45 +05:30
|
|
|
data: () => ({
|
|
|
|
elasticsearchLogo,
|
|
|
|
gitlabLogo,
|
|
|
|
helmLogo,
|
|
|
|
jeagerLogo,
|
|
|
|
jupyterhubLogo,
|
|
|
|
kubernetesLogo,
|
2018-12-23 12:14:25 +05:30
|
|
|
certManagerLogo,
|
2018-12-13 13:39:08 +05:30
|
|
|
knativeLogo,
|
2018-12-05 23:21:45 +05:30
|
|
|
meltanoLogo,
|
|
|
|
prometheusLogo,
|
|
|
|
}),
|
2018-10-15 14:42:47 +05:30
|
|
|
computed: {
|
2018-12-23 12:14:25 +05:30
|
|
|
isProjectCluster() {
|
|
|
|
return this.type === CLUSTER_TYPE.PROJECT;
|
|
|
|
},
|
2018-12-05 23:21:45 +05:30
|
|
|
helmInstalled() {
|
|
|
|
return (
|
|
|
|
this.applications.helm.status === APPLICATION_STATUS.INSTALLED ||
|
|
|
|
this.applications.helm.status === APPLICATION_STATUS.UPDATED
|
2018-10-15 14:42:47 +05:30
|
|
|
);
|
|
|
|
},
|
|
|
|
ingressId() {
|
|
|
|
return INGRESS;
|
|
|
|
},
|
|
|
|
ingressInstalled() {
|
2018-11-18 11:00:15 +05:30
|
|
|
return this.applications.ingress.status === APPLICATION_STATUS.INSTALLED;
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
|
|
|
ingressExternalIp() {
|
|
|
|
return this.applications.ingress.externalIp;
|
|
|
|
},
|
2018-12-23 12:14:25 +05:30
|
|
|
certManagerInstalled() {
|
|
|
|
return this.applications.cert_manager.status === APPLICATION_STATUS.INSTALLED;
|
|
|
|
},
|
2018-10-15 14:42:47 +05:30
|
|
|
ingressDescription() {
|
|
|
|
const extraCostParagraph = sprintf(
|
|
|
|
_.escape(
|
|
|
|
s__(
|
2018-03-17 18:26:18 +05:30
|
|
|
`ClusterIntegration|%{boldNotice} This will add some extra resources
|
|
|
|
like a load balancer, which may incur additional costs depending on
|
2018-10-15 14:42:47 +05:30
|
|
|
the hosting provider your Kubernetes cluster is installed on. If you are using
|
|
|
|
Google Kubernetes Engine, you can %{pricingLink}.`,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
{
|
|
|
|
boldNotice: `<strong>${_.escape(s__('ClusterIntegration|Note:'))}</strong>`,
|
|
|
|
pricingLink: `<a href="https://cloud.google.com/compute/pricing#lb" target="_blank" rel="noopener noreferrer">
|
2018-03-17 18:26:18 +05:30
|
|
|
${_.escape(s__('ClusterIntegration|check the pricing here'))}</a>`,
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
|
|
|
false,
|
|
|
|
);
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
const externalIpParagraph = sprintf(
|
|
|
|
_.escape(
|
|
|
|
s__(
|
2018-03-17 18:26:18 +05:30
|
|
|
`ClusterIntegration|After installing Ingress, you will need to point your wildcard DNS
|
|
|
|
at the generated external IP address in order to view your app after it is deployed. %{ingressHelpLink}`,
|
2018-10-15 14:42:47 +05:30
|
|
|
),
|
|
|
|
),
|
|
|
|
{
|
|
|
|
ingressHelpLink: `<a href="${this.ingressHelpPath}">
|
2018-03-17 18:26:18 +05:30
|
|
|
${_.escape(s__('ClusterIntegration|More information'))}
|
|
|
|
</a>`,
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
|
|
|
false,
|
|
|
|
);
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
return `
|
2018-03-17 18:26:18 +05:30
|
|
|
<p>
|
|
|
|
${extraCostParagraph}
|
|
|
|
</p>
|
|
|
|
<p class="settings-message append-bottom-0">
|
|
|
|
${externalIpParagraph}
|
|
|
|
</p>
|
|
|
|
`;
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
2018-12-23 12:14:25 +05:30
|
|
|
certManagerDescription() {
|
|
|
|
return sprintf(
|
|
|
|
_.escape(
|
|
|
|
s__(
|
|
|
|
`ClusterIntegration|Cert-Manager is a native Kubernetes certificate management controller that helps with issuing certificates.
|
|
|
|
Installing Cert-Manager on your cluster will issue a certificate by %{letsEncrypt} and ensure that certificates
|
|
|
|
are valid and up-to-date.`,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
{
|
|
|
|
letsEncrypt: `<a href="https://letsencrypt.org/"
|
|
|
|
target="_blank" rel="noopener noreferrer">
|
|
|
|
${_.escape(s__("ClusterIntegration|Let's Encrypt"))}</a>`,
|
|
|
|
},
|
|
|
|
false,
|
|
|
|
);
|
|
|
|
},
|
2018-10-15 14:42:47 +05:30
|
|
|
prometheusDescription() {
|
|
|
|
return sprintf(
|
|
|
|
_.escape(
|
|
|
|
s__(
|
2018-03-17 18:26:18 +05:30
|
|
|
`ClusterIntegration|Prometheus is an open-source monitoring system
|
|
|
|
with %{gitlabIntegrationLink} to monitor deployed applications.`,
|
2018-10-15 14:42:47 +05:30
|
|
|
),
|
|
|
|
),
|
|
|
|
{
|
|
|
|
gitlabIntegrationLink: `<a href="https://docs.gitlab.com/ce/user/project/integrations/prometheus.html"
|
2018-03-17 18:26:18 +05:30
|
|
|
target="_blank" rel="noopener noreferrer">
|
|
|
|
${_.escape(s__('ClusterIntegration|GitLab Integration'))}</a>`,
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
|
|
|
false,
|
|
|
|
);
|
2018-03-17 18:26:18 +05:30
|
|
|
},
|
2018-11-08 19:23:39 +05:30
|
|
|
jupyterInstalled() {
|
2018-11-18 11:00:15 +05:30
|
|
|
return this.applications.jupyter.status === APPLICATION_STATUS.INSTALLED;
|
2018-11-08 19:23:39 +05:30
|
|
|
},
|
|
|
|
jupyterHostname() {
|
|
|
|
return this.applications.jupyter.hostname;
|
|
|
|
},
|
2018-12-13 13:39:08 +05:30
|
|
|
knativeInstalled() {
|
|
|
|
return this.applications.knative.status === APPLICATION_STATUS.INSTALLED;
|
|
|
|
},
|
2018-12-23 12:14:25 +05:30
|
|
|
knativeExternalIp() {
|
|
|
|
return this.applications.knative.externalIp;
|
|
|
|
},
|
2018-10-15 14:42:47 +05:30
|
|
|
},
|
2018-12-05 23:21:45 +05:30
|
|
|
created() {
|
|
|
|
this.helmInstallIllustration = helmInstallIllustration;
|
|
|
|
},
|
2018-10-15 14:42:47 +05:30
|
|
|
};
|
2018-03-17 18:26:18 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2018-12-05 23:21:45 +05:30
|
|
|
<section id="cluster-applications">
|
2018-12-23 12:14:25 +05:30
|
|
|
<h4>{{ s__('ClusterIntegration|Applications') }}</h4>
|
2018-12-05 23:21:45 +05:30
|
|
|
<p class="append-bottom-0">
|
2018-12-23 12:14:25 +05:30
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Choose which applications to install on your Kubernetes cluster.
|
|
|
|
Helm Tiller is required to install any of the following applications.`)
|
|
|
|
}}
|
|
|
|
<a :href="helpPath"> {{ __('More information') }} </a>
|
2018-12-05 23:21:45 +05:30
|
|
|
</p>
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
<div class="cluster-application-list prepend-top-10">
|
|
|
|
<application-row
|
|
|
|
id="helm"
|
|
|
|
:logo-url="helmLogo"
|
|
|
|
:title="applications.helm.title"
|
|
|
|
:status="applications.helm.status"
|
|
|
|
:status-reason="applications.helm.statusReason"
|
|
|
|
:request-status="applications.helm.requestStatus"
|
|
|
|
:request-reason="applications.helm.requestReason"
|
|
|
|
class="rounded-top"
|
|
|
|
title-link="https://docs.helm.sh/"
|
|
|
|
>
|
|
|
|
<div slot="description">
|
2018-12-23 12:14:25 +05:30
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Helm streamlines installing
|
2018-12-05 23:21:45 +05:30
|
|
|
and managing Kubernetes applications.
|
|
|
|
Tiller runs inside of your Kubernetes Cluster,
|
2018-12-23 12:14:25 +05:30
|
|
|
and manages releases of your charts.`)
|
|
|
|
}}
|
2018-12-05 23:21:45 +05:30
|
|
|
</div>
|
|
|
|
</application-row>
|
2018-12-23 12:14:25 +05:30
|
|
|
<div v-show="!helmInstalled" class="cluster-application-warning">
|
|
|
|
<div class="svg-container" v-html="helmInstallIllustration"></div>
|
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|You must first install Helm Tiller before
|
|
|
|
installing the applications below`)
|
|
|
|
}}
|
2018-12-05 23:21:45 +05:30
|
|
|
</div>
|
|
|
|
<application-row
|
|
|
|
:id="ingressId"
|
|
|
|
:logo-url="kubernetesLogo"
|
|
|
|
:title="applications.ingress.title"
|
|
|
|
:status="applications.ingress.status"
|
|
|
|
:status-reason="applications.ingress.statusReason"
|
|
|
|
:request-status="applications.ingress.requestStatus"
|
|
|
|
:request-reason="applications.ingress.requestReason"
|
|
|
|
:disabled="!helmInstalled"
|
|
|
|
title-link="https://kubernetes.io/docs/concepts/services-networking/ingress/"
|
|
|
|
>
|
|
|
|
<div slot="description">
|
|
|
|
<p>
|
2018-12-23 12:14:25 +05:30
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Ingress gives you a way to route
|
2018-12-05 23:21:45 +05:30
|
|
|
requests to services based on the request host or path,
|
2018-12-23 12:14:25 +05:30
|
|
|
centralizing a number of services into a single entrypoint.`)
|
|
|
|
}}
|
2018-12-05 23:21:45 +05:30
|
|
|
</p>
|
2018-03-27 19:54:05 +05:30
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
<template v-if="ingressInstalled">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="ingress-ip-address">
|
|
|
|
{{ s__('ClusterIntegration|Ingress IP Address') }}
|
|
|
|
</label>
|
2018-12-23 12:14:25 +05:30
|
|
|
<div v-if="ingressExternalIp" class="input-group">
|
2018-03-27 19:54:05 +05:30
|
|
|
<input
|
2018-12-05 23:21:45 +05:30
|
|
|
id="ingress-ip-address"
|
|
|
|
:value="ingressExternalIp"
|
2018-03-27 19:54:05 +05:30
|
|
|
type="text"
|
|
|
|
class="form-control js-ip-address"
|
|
|
|
readonly
|
|
|
|
/>
|
2018-12-05 23:21:45 +05:30
|
|
|
<span class="input-group-append">
|
|
|
|
<clipboard-button
|
|
|
|
:text="ingressExternalIp"
|
|
|
|
:title="s__('ClusterIntegration|Copy Ingress IP Address to clipboard')"
|
|
|
|
class="input-group-text js-clipboard-btn"
|
|
|
|
/>
|
|
|
|
</span>
|
2018-03-27 19:54:05 +05:30
|
|
|
</div>
|
2018-12-23 12:14:25 +05:30
|
|
|
<input v-else type="text" class="form-control js-ip-address" readonly value="?" />
|
|
|
|
<p class="form-text text-muted">
|
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Point a wildcard DNS to this
|
|
|
|
generated IP address in order to access
|
|
|
|
your application after it has been deployed.`)
|
|
|
|
}}
|
|
|
|
<a :href="ingressDnsHelpPath" target="_blank" rel="noopener noreferrer">
|
|
|
|
{{ __('More information') }}
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-12-05 23:21:45 +05:30
|
|
|
</div>
|
2018-03-27 19:54:05 +05:30
|
|
|
|
2018-12-23 12:14:25 +05:30
|
|
|
<p v-if="!ingressExternalIp" class="settings-message js-no-ip-message">
|
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|The IP address is in
|
2018-12-05 23:21:45 +05:30
|
|
|
the process of being assigned. Please check your Kubernetes
|
2018-12-23 12:14:25 +05:30
|
|
|
cluster or Quotas on Google Kubernetes Engine if it takes a long time.`)
|
|
|
|
}}
|
2018-03-27 19:54:05 +05:30
|
|
|
|
2018-12-23 12:14:25 +05:30
|
|
|
<a :href="ingressHelpPath" target="_blank" rel="noopener noreferrer">
|
2018-12-05 23:21:45 +05:30
|
|
|
{{ __('More information') }}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</template>
|
2018-12-23 12:14:25 +05:30
|
|
|
<div v-html="ingressDescription"></div>
|
2018-12-05 23:21:45 +05:30
|
|
|
</div>
|
|
|
|
</application-row>
|
|
|
|
<application-row
|
2018-12-23 12:14:25 +05:30
|
|
|
id="cert_manager"
|
|
|
|
:logo-url="certManagerLogo"
|
|
|
|
:title="applications.cert_manager.title"
|
|
|
|
:status="applications.cert_manager.status"
|
|
|
|
:status-reason="applications.cert_manager.statusReason"
|
|
|
|
:request-status="applications.cert_manager.requestStatus"
|
|
|
|
:request-reason="applications.cert_manager.requestReason"
|
|
|
|
:install-application-request-params="{ email: applications.cert_manager.email }"
|
|
|
|
:disabled="!helmInstalled"
|
|
|
|
title-link="https://cert-manager.readthedocs.io/en/latest/#"
|
|
|
|
>
|
|
|
|
<template>
|
|
|
|
<div slot="description">
|
|
|
|
<p v-html="certManagerDescription"></p>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="cert-manager-issuer-email">
|
|
|
|
{{ s__('ClusterIntegration|Issuer Email') }}
|
|
|
|
</label>
|
|
|
|
<div class="input-group">
|
|
|
|
<input
|
|
|
|
v-model="applications.cert_manager.email"
|
|
|
|
:readonly="certManagerInstalled"
|
|
|
|
type="text"
|
|
|
|
class="form-control js-email"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<p class="form-text text-muted">
|
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Issuers represent a certificate authority.
|
|
|
|
You must provide an email address for your Issuer. `)
|
|
|
|
}}
|
|
|
|
<a
|
|
|
|
href="http://docs.cert-manager.io/en/latest/reference/issuers.html?highlight=email"
|
|
|
|
target="_blank"
|
|
|
|
rel="noopener noreferrer"
|
|
|
|
>
|
|
|
|
{{ __('More information') }}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</application-row>
|
|
|
|
<application-row
|
|
|
|
v-if="isProjectCluster"
|
2018-12-05 23:21:45 +05:30
|
|
|
id="prometheus"
|
|
|
|
:logo-url="prometheusLogo"
|
|
|
|
:title="applications.prometheus.title"
|
|
|
|
:manage-link="managePrometheusPath"
|
|
|
|
:status="applications.prometheus.status"
|
|
|
|
:status-reason="applications.prometheus.statusReason"
|
|
|
|
:request-status="applications.prometheus.requestStatus"
|
|
|
|
:request-reason="applications.prometheus.requestReason"
|
|
|
|
:disabled="!helmInstalled"
|
|
|
|
title-link="https://prometheus.io/docs/introduction/overview/"
|
|
|
|
>
|
2018-12-23 12:14:25 +05:30
|
|
|
<div slot="description" v-html="prometheusDescription"></div>
|
2018-12-05 23:21:45 +05:30
|
|
|
</application-row>
|
|
|
|
<application-row
|
2018-12-23 12:14:25 +05:30
|
|
|
v-if="isProjectCluster"
|
2018-12-05 23:21:45 +05:30
|
|
|
id="runner"
|
|
|
|
:logo-url="gitlabLogo"
|
|
|
|
:title="applications.runner.title"
|
|
|
|
:status="applications.runner.status"
|
|
|
|
:status-reason="applications.runner.statusReason"
|
|
|
|
:request-status="applications.runner.requestStatus"
|
|
|
|
:request-reason="applications.runner.requestReason"
|
|
|
|
:disabled="!helmInstalled"
|
|
|
|
title-link="https://docs.gitlab.com/runner/"
|
|
|
|
>
|
|
|
|
<div slot="description">
|
2018-12-23 12:14:25 +05:30
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|GitLab Runner connects to this
|
2018-12-05 23:21:45 +05:30
|
|
|
project's repository and executes CI/CD jobs,
|
|
|
|
pushing results back and deploying,
|
2018-12-23 12:14:25 +05:30
|
|
|
applications to production.`)
|
|
|
|
}}
|
2018-12-05 23:21:45 +05:30
|
|
|
</div>
|
|
|
|
</application-row>
|
|
|
|
<application-row
|
2018-12-23 12:14:25 +05:30
|
|
|
v-if="isProjectCluster"
|
2018-12-05 23:21:45 +05:30
|
|
|
id="jupyter"
|
|
|
|
:logo-url="jupyterhubLogo"
|
|
|
|
:title="applications.jupyter.title"
|
|
|
|
:status="applications.jupyter.status"
|
|
|
|
:status-reason="applications.jupyter.statusReason"
|
|
|
|
:request-status="applications.jupyter.requestStatus"
|
|
|
|
:request-reason="applications.jupyter.requestReason"
|
|
|
|
:install-application-request-params="{ hostname: applications.jupyter.hostname }"
|
|
|
|
:disabled="!helmInstalled"
|
|
|
|
title-link="https://jupyterhub.readthedocs.io/en/stable/"
|
|
|
|
>
|
|
|
|
<div slot="description">
|
|
|
|
<p>
|
2018-12-23 12:14:25 +05:30
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|JupyterHub, a multi-user Hub, spawns,
|
2018-12-05 23:21:45 +05:30
|
|
|
manages, and proxies multiple instances of the single-user
|
|
|
|
Jupyter notebook server. JupyterHub can be used to serve
|
|
|
|
notebooks to a class of students, a corporate data science group,
|
2018-12-23 12:14:25 +05:30
|
|
|
or a scientific research group.`)
|
|
|
|
}}
|
2018-12-05 23:21:45 +05:30
|
|
|
</p>
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
<template v-if="ingressExternalIp">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="jupyter-hostname">
|
|
|
|
{{ s__('ClusterIntegration|Jupyter Hostname') }}
|
|
|
|
</label>
|
2018-11-08 19:23:39 +05:30
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
<div class="input-group">
|
|
|
|
<input
|
|
|
|
v-model="applications.jupyter.hostname"
|
|
|
|
:readonly="jupyterInstalled"
|
|
|
|
type="text"
|
|
|
|
class="form-control js-hostname"
|
|
|
|
/>
|
2018-12-23 12:14:25 +05:30
|
|
|
<span class="input-group-btn">
|
2018-12-05 23:21:45 +05:30
|
|
|
<clipboard-button
|
|
|
|
:text="jupyterHostname"
|
|
|
|
:title="s__('ClusterIntegration|Copy Jupyter Hostname to clipboard')"
|
|
|
|
class="js-clipboard-btn"
|
2018-11-08 19:23:39 +05:30
|
|
|
/>
|
2018-12-05 23:21:45 +05:30
|
|
|
</span>
|
2018-11-08 19:23:39 +05:30
|
|
|
</div>
|
2018-12-23 12:14:25 +05:30
|
|
|
|
|
|
|
<p v-if="ingressInstalled" class="form-text text-muted">
|
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Replace this with your own hostname if you want.
|
|
|
|
If you do so, point hostname to Ingress IP Address from above.`)
|
|
|
|
}}
|
|
|
|
<a :href="ingressDnsHelpPath" target="_blank" rel="noopener noreferrer">
|
|
|
|
{{ __('More information') }}
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-12-05 23:21:45 +05:30
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</div>
|
|
|
|
</application-row>
|
2018-12-13 13:39:08 +05:30
|
|
|
<application-row
|
2018-12-23 12:14:25 +05:30
|
|
|
v-if="isProjectCluster"
|
2018-12-13 13:39:08 +05:30
|
|
|
id="knative"
|
|
|
|
:logo-url="knativeLogo"
|
|
|
|
:title="applications.knative.title"
|
|
|
|
:status="applications.knative.status"
|
|
|
|
:status-reason="applications.knative.statusReason"
|
|
|
|
:request-status="applications.knative.requestStatus"
|
|
|
|
:request-reason="applications.knative.requestReason"
|
2018-12-23 12:14:25 +05:30
|
|
|
:install-application-request-params="{ hostname: applications.knative.hostname }"
|
2018-12-13 13:39:08 +05:30
|
|
|
:disabled="!helmInstalled"
|
|
|
|
title-link="https://github.com/knative/docs"
|
|
|
|
>
|
|
|
|
<div slot="description">
|
|
|
|
<p>
|
2018-12-23 12:14:25 +05:30
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Knative extends Kubernetes to provide
|
|
|
|
a set of middleware components that are essential to build modern,
|
|
|
|
source-centric, and container-based applications that can run
|
|
|
|
anywhere: on premises, in the cloud, or even in a third-party data center.`)
|
|
|
|
}}
|
2018-12-13 13:39:08 +05:30
|
|
|
</p>
|
|
|
|
|
|
|
|
<template v-if="knativeInstalled">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="knative-domainname">
|
|
|
|
{{ s__('ClusterIntegration|Knative Domain Name:') }}
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
id="knative-domainname"
|
|
|
|
v-model="applications.knative.hostname"
|
|
|
|
type="text"
|
|
|
|
class="form-control js-domainname"
|
|
|
|
readonly
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
2018-12-23 12:14:25 +05:30
|
|
|
<template v-else-if="helmInstalled">
|
2018-12-13 13:39:08 +05:30
|
|
|
<div class="form-group">
|
|
|
|
<label for="knative-domainname">
|
|
|
|
{{ s__('ClusterIntegration|Knative Domain Name:') }}
|
|
|
|
</label>
|
|
|
|
<input
|
|
|
|
id="knative-domainname"
|
|
|
|
v-model="applications.knative.hostname"
|
|
|
|
type="text"
|
|
|
|
class="form-control js-domainname"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|
2018-12-23 12:14:25 +05:30
|
|
|
<template v-if="knativeInstalled">
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="knative-ip-address">
|
|
|
|
{{ s__('ClusterIntegration|Knative IP Address:') }}
|
|
|
|
</label>
|
|
|
|
<div v-if="knativeExternalIp" class="input-group">
|
|
|
|
<input
|
|
|
|
id="knative-ip-address"
|
|
|
|
:value="knativeExternalIp"
|
|
|
|
type="text"
|
|
|
|
class="form-control js-ip-address"
|
|
|
|
readonly
|
|
|
|
/>
|
|
|
|
<span class="input-group-append">
|
|
|
|
<clipboard-button
|
|
|
|
:text="knativeExternalIp"
|
|
|
|
:title="s__('ClusterIntegration|Copy Knative IP Address to clipboard')"
|
|
|
|
class="input-group-text js-clipboard-btn"
|
|
|
|
/>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<input v-else type="text" class="form-control js-ip-address" readonly value="?" />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<p v-if="!knativeExternalIp" class="settings-message js-no-ip-message">
|
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|The IP address is in
|
|
|
|
the process of being assigned. Please check your Kubernetes
|
|
|
|
cluster or Quotas on Google Kubernetes Engine if it takes a long time.`)
|
|
|
|
}}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
{{
|
|
|
|
s__(`ClusterIntegration|Point a wildcard DNS to this
|
|
|
|
generated IP address in order to access
|
|
|
|
your application after it has been deployed.`)
|
|
|
|
}}
|
|
|
|
<a :href="ingressDnsHelpPath" target="_blank" rel="noopener noreferrer">
|
|
|
|
{{ __('More information') }}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
</template>
|
2018-12-13 13:39:08 +05:30
|
|
|
</div>
|
|
|
|
</application-row>
|
2018-03-17 18:26:18 +05:30
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</template>
|