Skip to content

Commit 7ef4dbb

Browse files
Update cli.adoc
Starting my CLI doc draft with this first commit
1 parent 86244c8 commit 7ef4dbb

File tree

1 file changed

+34
-0
lines changed
  • docs/modules/ROOT/pages/getting-started

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,35 @@
11
= Getting started with the CLI
2+
3+
4+
5+
== What PEs need to do
6+
7+
== What developers need to do
8+
9+
.Prerequisites
10+
11+
* Install link:https://kubernetes.io/docs/tasks/tools/[`kubectl`]
12+
* Install link:https://github.com/int128/kubelogin[`kubelogin`]
13+
14+
.Procedure
15+
16+
. Get the template `kubeconfig` file for your organization's instance of Konfluence. A PE should be able to provide you with this.
17+
. Using your preferred text editor, in your copy of the template `kubeconfig`, replace <username> with your Konflux username.
18+
. Use one of these two methods for making your `kubeconfig` file accessible to the `kubectl` CLI tool:
19+
.. In your CLI, run the following command:
20+
+
21+
[source]
22+
--
23+
export $KUBECONFIG=<path to your kubeconfig file>
24+
--
25+
+
26+
.. Or, overwrite the file located at `${HOME}/.kube/config` with your `kubeconfig` file.
27+
. Verify your available contexts by running the following command in your CLI. You should see the `konflux` context.
28+
+
29+
`kubectl config get-contexts`
30+
. Still in your CLI, set Konflux as the default context:
31+
+
32+
`kubectl config set-context konflux`
33+
. Trigger a round trip from your machine to the cluster and back, to verify the connection:
34+
+
35+
`kubectl get cm`

0 commit comments

Comments
 (0)