-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.stable
54 lines (35 loc) · 1.91 KB
/
README.stable
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
51
52
Steps to Deploy ZTS-CMC-APP
1) RHACM configuration:
RHACM Gui
Click on Applications
Application Name: zts-cmc
Namespace: default
Repository location for resource
Repository types : Git
URL: https://github.com/zettaset/zettaset-public
Branch: main
Path: zts-cmc-app
Check: Deploy application resources only on clusters matching specified labels
Label: environment
Value: dev
Save the Configuration.
This will create the application UI on RHACM.
Alternatively, the zts-cmc Application can be configured using CLI
URL: https://github.com/zettaset/zettaset-public
git clone https://github.com/zettaset/zettaset-public
oc apply -f /path/zts-cmc-rhacm/application.yaml
2) Run the configmap reloader on the managed cluster
oc apply -f
https://raw.githubusercontent.com/stakater/Reloader/master/deployments/kubernetes/reloader.yaml
This starts a pod on the managed cluster that automatically restarts the zts-cmc pod when the config map changes.
3) Policy for Deployment of Application
Deploy the zts-cmc-app from the Governance menu using the policy file contents
policy-zts-cmc.yaml. This file is from https://github.com/stolostron/policy-collection/tree/main/stable/CM-Configuration-Management/
This policy is set to inform. If the ConfigMap required by the Application has the correct values,
then the configmap policy will be in Compliance. If the reloader has been started that too should be in compliance.
4) Change policy-zts-cmc from inform to enforce if step 3 checks out okay for the configmap part
Once the policy is changed to enforce, the entire policy policy-zts-cmc will become
compliant.
5) When changing the IP Address of the CMC Server, use the github resources to change the configmap.yaml.
Then Sync the changes on the Application in RHACM using the Sync button. Changing the Ip Address of
the CMC Server on RHACM directly will be overwritten by the automatic sync that happens every few minutes.