You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: getting-started/getting-started-activiti-cloud/getting-started-activiti-cloud-jx/amazon-eks-jx.md
+95-70
Original file line number
Diff line number
Diff line change
@@ -18,22 +18,30 @@ All of the persistence volume claims of Activiti Cloud infrastructure and applic
18
18
19
19
In case, you know what you are doing, get Jx from [https://jenkins-x.io/getting-started/install/](https://jenkins-x.io/getting-started/install/) and then follow the short version:
20
20
21
-
```text
21
+
```bash
22
22
export AWS_ACCESS_KEY_ID=1234567890
23
23
export AWS_SECRET_ACCESS_KEY=123456789
24
24
export CLUSTER_NAME=activiti-cloud
25
25
26
-
$ jx upgrade cli
26
+
jx upgrade cli
27
+
```
27
28
28
-
$ jx create cluster eks \
29
-
--cluster-name=$CLUSTER_NAME \
30
-
--skip-installation=true \
31
-
--node-type='m5.xlarge' \
32
-
--nodes=3
29
+
```bash
30
+
jx create cluster eks \
31
+
--cluster-name=$CLUSTER_NAME \
32
+
--skip-installation=true \
33
+
--node-type='m5.xlarge' \
34
+
--nodes=2 \
35
+
--advanced-mode
36
+
```
33
37
34
-
$ jx install \
35
-
--provider=eks \
36
-
--no-default-environments
38
+
```bash
39
+
jx install \
40
+
--provider=eks \
41
+
--no-default-environments \
42
+
--static-jenkins \
43
+
--no-tiller=false \
44
+
--advanced-mode
37
45
```
38
46
39
47
Then, skip to _Let’s Deploy Activiti Cloud in EKS_ section at the end of this document.
@@ -71,7 +79,7 @@ After successful installation of jx client you should now be able to display the
71
79
```text
72
80
$ jx version
73
81
NAME VERSION
74
-
Jx 1.3.836
82
+
Jx 2.0.323
75
83
```
76
84
77
85
#### Upgrade Warning for jx
@@ -80,18 +88,12 @@ jx version is aggressive about upgrading, so much so that the version command pr
80
88
81
89
```text
82
90
~ $ jx version
83
-
Failed to find helm installs: failed to run 'helm list' command in directory '', output: 'Error: Get https://localhost:6443/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: dial tcp [::1]:6443: connect: connection refused': exit status 1
84
-
Failed to get kubernetes server version: Get https://localhost:6443/version?timeout=32s: dial tcp [::1]:6443: connect: connection refused
85
-
Failed to get kubectl version: Command failed 'kubectl version --short': Client Version: v1.13.2
86
-
The connection to the server localhost:6443 was refused - did you specify the right host or port? exit status 1
87
91
88
-
Failed to get helm version: failed to run 'helm version --short' command in directory '', output: 'Client: v2.12.2+g7d2b0c7
89
-
Error: Get https://localhost:6443/api/v1/namespaces/kube-system/pods?labelSelector=app%3Dhelm%2Cname%3Dtiller: dial tcp [::1]:6443: connect: connection refused': exit status 1
90
92
NAME VERSION
91
-
jx 1.3.126
93
+
jx 2.0.232
92
94
git git version 2.17.2 (Apple Git-113)
93
95
94
-
A new jx version is available: 1.3.769
96
+
A new jx version is available: 2.0.333
95
97
? Would you like to upgrade to the new jx version? No
96
98
```
97
99
@@ -127,15 +129,16 @@ Let’s create the new Kubernetes cluster with EKS using the following command:
127
129
128
130
Note: Jx cli simply wraps eksctl cli to create cluster using Aws api. You may choose to create cluster manually based on your requirements using eksctl command, if you know what you are doing.
129
131
130
-
```text
131
-
$ jx create cluster eks \
132
-
--cluster-name=$CLUSTER_NAME \
133
-
--skip-installation=true \
134
-
--node-type='m5.xlarge' \
135
-
--nodes=3
132
+
```bash
133
+
jx create cluster eks \
134
+
--cluster-name=$CLUSTER_NAME \
135
+
--skip-installation=true \
136
+
--node-type='m5.xlarge' \
137
+
--nodes=2 \
138
+
--advanced-mode
136
139
```
137
140
138
-
This will provision activiti-cloud EKS cluster with 3 nodes of type m5.xlarge \(4CPU’s, 16GB RAM\)
141
+
This will provision activiti-cloud EKS cluster with 2 nodes of type m5.xlarge \(4CPU’s, 16GB RAM\)
@@ -160,10 +163,13 @@ Now that we have the EKS cluster up and running, we can install the Jenkins X pl
160
163
161
164
The Jenkins X platform can be installed using the following command without installing default environments repos. We will create Activiti Cloud Environments GitOps repos later.
162
165
163
-
```text
164
-
$ jx install \
165
-
--provider=eks \
166
-
--no-default-environments
166
+
```bash
167
+
jx install \
168
+
--provider=eks \
169
+
--no-default-environments \
170
+
--static-jenkins \
171
+
--no-tiller=false \
172
+
--advanced-mode
167
173
```
168
174
169
175
Notes: To setup and use other than Github Git provider see: [https://jenkins-x.io/developing/git/](https://jenkins-x.io/developing/git/)
@@ -200,14 +206,14 @@ The URL to access Jenkins will printed in the output of the console together wit
200
206
201
207
Note: after you have installed Jenkins-X, you may want to configure Jenkins-X to make all new repositories private by default with the following command:
202
208
203
-
```text
204
-
$ jx edit gitprivate
209
+
```bash
210
+
jx edit gitprivate
205
211
```
206
212
207
213
To open Jenkins UI in the browser, run the following command::
export CLUSTER_DOMAIN=$(kubectl get cm ingress-config -o=go-template --template='{{.data.domain}}' -n jx)&&echo$CLUSTER_DOMAIN
239
+
export ENV_PREFIX=$CLUSTER_NAME&&echo$ENV_PREFIX
235
240
```
236
241
237
242
### Create Activiti Cloud DevOps Environments
238
243
239
244
Run this command to configure environments using domain name of the cluster with the Activiti Cloud Environment Git repository used as the fork when creating new GitOps environment Git repo and custom environment repo prefix. Your Environment Git repo will be of the form 'environment-$prefix-$envName'
After Jx created new environments, run `jx console` command to open Jenkins UI, you can confirm that Jenkins X has successfully provisioned two environments for us: a staging environment and a production environment:
0 commit comments