Please select the kubeconfig file that you have created to configure access to the cluster. To find out more about how to configure and use kubeconfig file, please refer to the <ahref='https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/'>Configure Access to Multiple Clusters</a> section.
</ng-container>
<ng-container*ngSwitchCase="loginModes.Basic">
Basic login description.
Make sure that support for basic authentication is enabled in the cluster. To find out more about how to configure basic authentication, please refer to the <ahref="https://kubernetes.io/docs/admin/authentication/">Authenticating</a> and <ahref="https://kubernetes.io/docs/admin/authorization/abac/">ABAC Mode</a> sections.
</ng-container>
<ng-container*ngSwitchCase="loginModes.Token">
Every Service Account has a Secret with valid Bearer Token that can be used to log in to Dashboard. To find out more about how to configure and use Bearer Tokens, please refer to the <ahref='https://kubernetes.io/docs/admin/authentication/'>Authentication</a> section.
...
...
@@ -51,9 +53,12 @@ limitations under the License.
<mat-form-field*ngSwitchCase="loginModes.Token"
class="kd-login-input">
<inputmatInput
placeholder="Token"
id="token"
name="token"
placeholder="Enter token"
type="password"
required>
required
(change)="onChange($event)">
</mat-form-field>
<div*ngSwitchCase="loginModes.Basic"
...
...
@@ -64,7 +69,8 @@ limitations under the License.
name="username"
matInput
placeholder="Username"
required>
required
(change)="onChange($event)">
</mat-form-field>
<mat-form-fieldfxFlex
...
...
@@ -74,13 +80,15 @@ limitations under the License.
matInput
placeholder="Password"
type="password"
required>
required
(change)="onChange($event)">
</mat-form-field>
</div>
<div*ngSwitchCase="loginModes.Kubeconfig"
class="kd-login-input">
kubeconfig placeholder
<kd-upload-filelabel="Choose kubeconfig file"
(onLoad)="onChange($event)"></kd-upload-file>
</div>
</ng-container>
...
...
@@ -94,6 +102,7 @@ limitations under the License.
</button>
<buttonmat-button
color="primary"
type="button"
class="kd-login-button"
(click)="skip()">
Skip
...
...
@@ -103,33 +112,3 @@ limitations under the License.
</div>
</kd-card>
</div>
<!--<kd-content-card class="kd-login-card">
<kd-title>
[[Kubernetes Dashboard|Title shown on login page on login card]]
title="[[Token|Token option label shown on login page]]"
desc="[[Every Service Account has a Secret with valid Bearer Token that can be used to log in to Dashboard. To find out more about how to configure and use Bearer Tokens, please refer to the <a href='https://kubernetes.io/docs/admin/authentication/'>Authentication</a> section.|]]"
<kd-kube-config-login title="[[Kubeconfig|Kubeconfig option label shown on login page]]"
desc="[[Please select the kubeconfig file that you have created to configure access to the cluster. To find out more about how to configure and use kubeconfig file, please refer to the <a href='https://kubernetes.io/docs/tasks/access-application-cluster/configure-access-multiple-clusters/'>Configure Access to Multiple Clusters</a> section.|]]"
Local settings are stored in the browser cookies, so they are not synchronized between multiple devices. Changes are applied automatically on every input change.
Local settings are stored in the browser cookies, so they are not synchronized between multiple devices. Changes are applied automatically on every change.