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: artifacts/rhdh-plugins-reference/argocd/argocd-plugin-admin.adoc
+143Lines changed: 143 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,149 @@ global:
70
70
disabled: false
71
71
----
72
72
73
+
== Enabling Argo CD Rollouts
74
+
75
+
The optional Argo CD Rollouts feature enhances Kubernetes by providing advanced deployment strategies, such as blue-green and canary deployments, for your applications. When integrated into the backstage Kubernetes plugin, it allows developers and operations teams to visualize and manage Argo CD Rollouts seamlessly within the Backstage interface.
76
+
77
+
.Prerequisites
78
+
79
+
* The Backstage Kubernetes plugin (`@backstage/plugin-kubernetes`) is installed and configured.
80
+
81
+
** To install and configure Kubernetes plugin in Backstage, see link:https://backstage.io/docs/features/kubernetes/installation/[Installaltion] and link:https://backstage.io/docs/features/kubernetes/configuration/[Configuration] guide.
82
+
83
+
* You have access to the Kubernetes cluster with the necessary permissions to create and manage custom resources and `ClusterRoles`.
84
+
85
+
* The Kubernetes cluster has the `argoproj.io` group resources (for example, Rollouts and AnalysisRuns) installed.
86
+
87
+
.Procedures
88
+
89
+
. In the `app-config.yaml` file in your Backstage instance, add the following `customResources` component under the `kubernetes` configuration to enable Argo Rollouts and AnalysisRuns:
90
+
91
+
+
92
+
[source,yaml]
93
+
----
94
+
kubernetes:
95
+
...
96
+
customResources:
97
+
- group: 'argoproj.io'
98
+
apiVersion: 'v1alpha1'
99
+
plural: 'Rollouts'
100
+
- group: 'argoproj.io'
101
+
apiVersion: 'v1alpha1'
102
+
plural: 'analysisruns'
103
+
----
104
+
105
+
. Grant `ClusterRole` permissions for custom resources.
106
+
107
+
.. If the Backstage Kubernetes plugin is already configured, the `ClusterRole` permissions for `Rollouts` and `AnalysisRuns` might already be granted.
108
+
109
+
+
110
+
[NOTE]
111
+
====
112
+
Use a link:https://raw.githubusercontent.com/backstage/community-plugins/main/workspaces/redhat-argocd/plugins/argocd/manifests/clusterrole.yaml[prepared manifest] for a read-only `ClusterRole` that provides access for both the Kubernetes plugin and the ArgoCD plugin.
113
+
====
114
+
115
+
.. If the `ClusterRole` permission is not granted, use the following YAML manifest to create the `ClusterRole`:
116
+
117
+
+
118
+
[source,yaml]
119
+
----
120
+
apiVersion: rbac.authorization.k8s.io/v1
121
+
kind: ClusterRole
122
+
metadata:
123
+
name: backstage-read-only
124
+
rules:
125
+
- apiGroups:
126
+
- argoproj.io
127
+
resources:
128
+
- Rollouts
129
+
- analysisruns
130
+
verbs:
131
+
- get
132
+
- list
133
+
----
134
+
135
+
.. Apply the manifest to the cluster using `kubectl`:
136
+
+
137
+
[source,bash]
138
+
----
139
+
kubectl apply -f <your-clusterrole-file>.yaml
140
+
----
141
+
142
+
.. Ensure the `ServiceAccount` accessing the cluster has this `ClusterRole` assigned.
143
+
144
+
. Add annotations to `catalog-info.yaml` to identify Kubernetes resources for Backstage.
Ensure you specify the labels declared in `backstage.io/kubernetes-label-selector` on your Kubernetes resources. This annotation overrides entity-based or namespace-based identification annotations, such as `backstage.io/kubernetes-id` and `backstage.io/kubernetes-namespace`.
176
+
====
177
+
178
+
. Add label to Kubernetes resources to enable Backstage to find the appropriate Kubernetes resources.
179
+
180
+
.. Backstage Kubernetes plugin label: Add this label to map resources to specific Backstage entities.
If using the label selector annotation (backstage.io/kubernetes-label-selector), ensure the specified labels are present on the resources. The label selector will override other annotations like kubernetes-id or kubernetes-namespace.
202
+
====
203
+
204
+
.Verification
205
+
206
+
. Push code changes to your GitOps repository to trigger a deployment.
207
+
208
+
. Open the Backstage interface and navigate to the entity you configured.
209
+
210
+
. Confirm that the Argo CD Rollouts feature is functioning as expected by performing the following checks:
211
+
212
+
** Kubernetes resources, such as `Rollouts` and `AnalysisRuns`, are visible under the *Kubernetes* tab.
213
+
214
+
** You are able to monitor `Rollouts` status and manage deployments.
0 commit comments