-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathskills-network-kube-setup.adoc
More file actions
50 lines (37 loc) · 1.01 KB
/
skills-network-kube-setup.adoc
File metadata and controls
50 lines (37 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (c) 2021 IBM Corporation and others.
// Licensed under Creative Commons Attribution-NoDerivatives
// 4.0 International (CC BY-ND 4.0)
// https://creativecommons.org/licenses/by-nd/4.0/
//
// Contributors:
// IBM Corporation
ifdef::cloud-hosted[]
== **Logging into your cluster**
For this guide, you will use a container registry on IBM Cloud to deploy to Kubernetes.
Get the name of your namespace with the following command:
```
bx cr namespace-list
```
{: codeblock}
Look for output that is similar to the following:
```
Listing namespaces for account 'QuickLabs - IBM Skills Network' in registry 'us.icr.io'...
Namespace
sn-labs-yourname
```
Run the following command to store the namespace name in a variable.
```
NAMESPACE_NAME=`bx cr namespace-list | grep sn-labs- | sed 's/ //g'`
```
{: codeblock}
Verify that the variable contains your namespace name:
```
echo $NAMESPACE_NAME
```
{: codeblock}
Log in to the registry with the following command:
```
bx cr login
```
{: codeblock}
endif::[]