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: docs/before_prod.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
### Important to know before deploying to production
2
2
3
3
-`LightrunJavaAgent` Customer resource hardly dependent on the secret with `lightrun_key` and `pinned_cert_hash` values. It has do be deployed in the same namespace as the secret.
4
-
-`LightrunJavaAgent` CR has to be installed in the same namespace as deployment
5
-
- You need to create `LightrunJavaAgent` CR per deployment that you want to patch
6
-
- When `creating or deleting CR`, deployment will trigger `recreation of all the pods`, as Pod Template Spec will be changed
7
-
- If, for some reason, your cluster will not be able to `download init container` images from https://hub.docker.com/, your deployment will stuck in this state until it won't be resolved. This is the limitation of the init containers
4
+
-`LightrunJavaAgent` CR has to be installed in the same namespace as the target resource (Deployment or StatefulSet)
5
+
- You need to create `LightrunJavaAgent` CR per resource (Deployment or StatefulSet) that you want to patch
6
+
- When `creating or deleting CR`, the target resource will trigger `recreation of all the pods`, as Pod Template Spec will be changed
7
+
- If, for some reason, your cluster will not be able to `download init container` images from https://hub.docker.com/, your target resource will stuck in this state until it won't be resolved. This is the limitation of the init containers
8
8
- If you will change `secret` values, `agentConfig` or `agentTags`, operator will update Config Map with that data and trigger recreation of the pods to apply new config of the agent
9
9
- Always check `release notes` before upgrading the operator. If CRD fields was changed you'll need to act accordingly during the upgrade
10
10
- You can't have `duplicate ENV` variable in the container spec.
Copy file name to clipboardExpand all lines: docs/how.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,14 @@
7
7
(subject to how it's been installed).
8
8
Every event related to these CRs triggers the reconcile loop of the controller. You can find logic of this loop [here](reconcile_loop.excalidraw.png)
9
9
- When triggered, the controller performs several actions:
10
-
- Check if it has access to deployment
10
+
- Check if it has access to the target resource (Deployment or StatefulSet)
11
11
- Fetch data from the CR secret
12
12
- Create config map with agent config from CR data
13
-
- Patch the deployment:
13
+
- Patch the target resource (Deployment or StatefulSet):
14
14
- insert init container
15
15
- add volume
16
16
- map that volume to the specified container
17
17
- add/update specified ENV variable in order to let Java know where agent files are found (the mapped volume)
18
-
- After deployment is patched, k8s will `recreate all the pods` in the deployment. New Pods will be initialized with the Lightrun agent
19
-
- If user deletes the `LightrunJavaAgent` CR, the Controller will roll back all the changes to deployment. This will trigger `recreation of all pods` again
18
+
- After the target resource is patched, k8s will `recreate all the pods` in the Deployment or StatefulSet. New Pods will be initialized with the Lightrun agent
19
+
- If user deletes the `LightrunJavaAgent` CR, the Controller will roll back all the changes to the target resource. This will trigger `recreation of all pods` again
20
20
-[High level diagram](resource_relations.excalidraw.png) of resources created/edited by the operator
0 commit comments