File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
docs/modules/ROOT/pages/getting-started Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1
1
= 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`
You can’t perform that action at this time.
0 commit comments