Skip to content

Commit 50c2b6d

Browse files
authored
Add kubectl and kustomize install artifacts for 1.5.1 (#730)
Signed-off-by: Leo Christy Jesuraj <[email protected]>
1 parent 901bd46 commit 50c2b6d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+37417
-0
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
== Installation
3+
4+
The Runtime Component Operator 1.5.1 can be installed to:
5+
6+
* watch own namespace
7+
* watch another namespace
8+
* watch all namespaces in the cluster
9+
10+
Appropriate roles and bindings are required to watch another namespace or watch all namespaces.
11+
12+
---
13+
14+
. Install Custom Resource Definition (CRD) resources for `RuntimeComponent` and `RuntimeOperation` for day-2 operation. This needs to be done only ONCE per cluster:
15+
+
16+
[source,sh]
17+
----
18+
kubectl create -f https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.5.1/kubectl/runtime-component-crd.yaml
19+
----
20+
21+
. Install the Runtime Component Operator:
22+
23+
.. Set operator namespace and the namespace to watch:
24+
+
25+
NOTE: Ensure that you replace `<SPECIFY_OPERATOR_NAMESPACE_HERE>` and `<SPECIFY_WATCH_NAMESPACE_HERE>` with proper values. The namespaces must already exist. The commands below will not create the namespaces.
26+
+
27+
* To watch all namespaces in the cluster, set `WATCH_NAMESPACE='""'`
28+
29+
[source,sh]
30+
----
31+
OPERATOR_NAMESPACE=<SPECIFY_OPERATOR_NAMESPACE_HERE>
32+
WATCH_NAMESPACE=<SPECIFY_WATCH_NAMESPACE_HERE>
33+
----
34+
35+
.. _Optional_: Install roles and bindings to watch another namespace or all namespaces. This step can be skipped if the operator is only watching own namespace.
36+
37+
... To watch all namespaces, install cluster-level role-based access:
38+
+
39+
[source,sh]
40+
----
41+
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.5.1/kubectl/runtime-component-rbac-watch-all.yaml \
42+
| sed -e "s/RUNTIME_COMPONENT_OPERATOR_NAMESPACE/${OPERATOR_NAMESPACE}/" \
43+
| kubectl apply -f -
44+
----
45+
46+
... To watch another namespace, install role with access to another namespace:
47+
+
48+
[source,sh]
49+
----
50+
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.5.1/kubectl/runtime-component-rbac-watch-another.yaml \
51+
| sed -e "s/RUNTIME_COMPONENT_OPERATOR_NAMESPACE/${OPERATOR_NAMESPACE}/" \
52+
| sed -e "s/RUNTIME_COMPONENT_WATCH_NAMESPACE/${WATCH_NAMESPACE}/" \
53+
| kubectl apply -f -
54+
----
55+
56+
.. Install the operator:
57+
+
58+
[source,sh]
59+
----
60+
curl -L https://raw.githubusercontent.com/application-stacks/runtime-component-operator/main/deploy/releases/1.5.1/kubectl/runtime-component-operator.yaml \
61+
| sed -e "s/RUNTIME_COMPONENT_WATCH_NAMESPACE/${WATCH_NAMESPACE}/" \
62+
| kubectl apply -n ${OPERATOR_NAMESPACE} -f -
63+
----
64+
65+
== Uninstallation
66+
67+
To uninstall the operator, run commands from Step 2c first and then Step 2b (if applicable), but after replacing `kubectl apply` with `kubectl delete`.
68+
69+
Optionally you can delete the CRD resources, but note that deleting the CRD also deletes all instances of the RuntimeComponent and RuntimeOperation custom resources in the cluster. Skip this step if you are planning to install the Runtime Component Operator again and want the existing instances of these custom resources to be managed by the new instance of the Operator. To delete the CRD, run command from Step 1, but after replacing `kubectl create` with `kubectl delete`.

deploy/releases/1.5.1/kubectl/runtime-component-crd.yaml

Lines changed: 17672 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)