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
{{ message }}
This repository was archived by the owner on Oct 13, 2021. It is now read-only.
cp -a staging-edge.devcluster.openshift.com/ "$SITE_NAME/"
24
+
```
25
+
26
+
### Edit profile requirements
27
+
28
+
The user should know which exact version of OCP wants to deploy, and should edit the `requirements.yaml` file
29
+
accordingly, to download the right client tools versions.
30
+
31
+
Also, the user should know which version of kubernetes is using the exact version of OCP.
32
+
33
+
For example, for OCP 4.4, k8s 1.17 is used. The user should always check [OCP release notes](https://docs.openshift.com/container-platform/4.4/release_notes/ocp-4-4-release-notes.html#ocp-4-4-about-this-release) before.
34
+
35
+
```bash
36
+
cd blueprint-industrial-edge/profiles/
37
+
vi "$PROFILE_NAME/requirements.yaml"
38
+
```
39
+
40
+
#### Edit 00_install
41
+
42
+
```bash
43
+
cd blueprint-industrial-edge/sites/$SITE_NAME/00_install-config
44
+
```
45
+
46
+
+**kustomization.yaml** -> Change git url.
47
+
+**install-config.patch.yaml** -> Change baseDomain, and alterantively other fields, such as the aws zone for example.
48
+
+**install-config.name.patch.yaml** -> Change the cluster-name.
49
+
50
+
#### Edit 02_cluster_addons
51
+
52
+
If registering the site againts a RHACM hub, then:
53
+
54
+
```bash
55
+
cd blueprint-industrial-edge/sites/$SITE_NAME/02_cluster_addons/00_acm_registration
56
+
```
57
+
58
+
+**acm-name-config.patch.yaml** -> Change clusterName and clusterNamespace, use the same value.
59
+
60
+
##### Git push
61
+
62
+
Push the changes to your repo, the url go the git repo should match the git url you have specified in previous steps:
63
+
64
+
```bash
65
+
cd blueprint-industrial-edge
66
+
git add .
67
+
git commit -m "Adds my new blueprint site"
68
+
git push <my-remote> master
69
+
```
70
+
71
+
## Deploy your site cluster
72
+
73
+
### AWS credentials
2
74
3
75
First of all you need to have your Amazon Web Service credentials file located in the following path:
4
76
@@ -12,22 +84,94 @@ aws_access_key_id = xxxx
12
84
aws_secret_access_key = xxxx
13
85
```
14
86
15
-
The OpenShift installer binary will read that file if aws is set as a platform. From the path where the `knictl` binary is located, and in order to pull our staging-edge site and its requirements, please execute:
87
+
The OpenShift installer binary will read that file if aws is set as a platform.
This command will download the site blueprint definition, and all its requirements (oc, openshift-install, kustomize, etc) to the `$HOME/.kni/`. Every site will have a separate directory within that location. The next step involves the actual rendering of the manifests (site + profile + base) into one set of manifests via kustomize that we can pass to the openshift-install binary.
91
+
Your `.kni/` folder should contain the following files, otherwise either your deployment or Day 2 workloads will fail to be deployed.
+**dockerconfig.json:** It is a valid pull secret to pull RHACM images on the registered cluster. Only needed if you want your OCP cluster to be autoregisters against a RHACM Hub cluster.
104
+
105
+
It is basically a base64 encoded pull secret. To generate it, just execute:
+**kubeconfighub.json:** It is the the kubeconfig of the RHACM hub cluster, base64 encoded. It is used by the RHACM Endpoint pod to register itself against the RHACM.
alias openshift-install="$HOME/.kni/$SITE_NAME/requirements/openshift-install"
128
+
```
129
+
130
+
### kncitl: Preparation steps
131
+
132
+
From the path where the `knictl` binary is located, and in order to pull our site and its requirements, please execute:
22
133
23
-
If everything goes well, the command will get out some instructions to deploy the cluster. It's basically asking you to run `openshift-install` binary pointing to where the final manifests created by `knictl` are:
This command will download the site blueprint definition, and all its requirements (oc, openshift-install, kustomize, etc) to the `$HOME/.kni/`. Every site will have a separate directory within that location.
139
+
140
+
The next step involves the actual rendering of the manifests (site + profile + base) into one set of manifests via kustomize that we can pass to the openshift-install binary.
141
+
142
+
```bash
143
+
knictl prepare_manifests "$SITE_NAME"
144
+
```
145
+
146
+
If everything goes well, the command will get out some instructions to deploy the cluster. It's basically asking you to run `openshift-install` binary pointing to where the final manifests created by `knictl` are.
If you have manifests that you want to deploy as Day 2 operations located in any of the 02_cluster-addons or 03_services directories, you can deploy them running the following command:
156
+
Wait until the deployment is completed, and you will information about console endpoint, kubeadmin password and kubeconfig path.
If you have manifests that you want to deploy as Day 2 operations located in any of the `02_cluster-addons` or `03_services directories`, you can deploy them running the following command:
161
+
162
+
```bash
163
+
knictl apply_workloads "$SITE_NAME"
164
+
```
32
165
33
166
This is basically running kustomize to build and render all the manifests enabling alpha plugins, and apply them via oc/kubectl.
167
+
168
+
**NOTE:**: If for some reasons the previous command fails, you can check the kustomize rendered manifests under `/tmp`,
169
+
or under `~/.kni/tmp` if using a containerized version of knictl.
0 commit comments