From 5b822b4dcbad92be46076c6af69dd2149c450ebd Mon Sep 17 00:00:00 2001 From: Ihar Hancharenka Date: Sun, 3 Sep 2023 10:08:48 +0300 Subject: [PATCH] m --- devops/cloud/azure/cli.txt | 3 + .../mini/rancher/k3s/k3d/feature/cluster.txt | 77 ++++++++++--------- .../k3s/k3d/integration/vscode-k3d.txt | 2 +- devops/k8s/tools/mesh/istio/docs/books.txt | 9 ++- devops/k8s/tools/workflow/argo.txt | 9 --- pl/cross/tools/ci/argo-cd.txt | 30 +++++++- .../hibernate/features/entity-lifecycle.txt | 4 + .../features/internals/dirty-check.txt | 4 + 8 files changed, 90 insertions(+), 48 deletions(-) delete mode 100644 devops/k8s/tools/workflow/argo.txt create mode 100644 pl/java/libfws/io/persistence/orm/hibernate/features/entity-lifecycle.txt diff --git a/devops/cloud/azure/cli.txt b/devops/cloud/azure/cli.txt index 78a34c753..13d574160 100644 --- a/devops/cloud/azure/cli.txt +++ b/devops/cloud/azure/cli.txt @@ -7,3 +7,6 @@ macos !! brew install azure-cli https://github.com/urllib3/urllib3/issues/3020 https://github.com/Azure/azure-cli/issues/27047 + +linux-asdf +apt install python-3.10-venv diff --git a/devops/k8s/mini/rancher/k3s/k3d/feature/cluster.txt b/devops/k8s/mini/rancher/k3s/k3d/feature/cluster.txt index 7dd8296ba..de451f9da 100644 --- a/devops/k8s/mini/rancher/k3s/k3d/feature/cluster.txt +++ b/devops/k8s/mini/rancher/k3s/k3d/feature/cluster.txt @@ -1,39 +1,46 @@ -k3d cluster create mycluster -INFO[0000] Prep: Network -INFO[0000] Created network 'k3d-mycluster' -INFO[0000] Created image volume k3d-mycluster-images -INFO[0000] Starting new tools node... -INFO[0001] Creating node 'k3d-mycluster-server-0' -INFO[0001] Pulling image 'ghcr.io/k3d-io/k3d-tools:5.4.4' -INFO[0003] Starting Node 'k3d-mycluster-tools' -INFO[0003] Pulling image 'docker.io/rancher/k3s:v1.23.8-k3s1' -INFO[0011] Creating LoadBalancer 'k3d-mycluster-serverlb' -INFO[0013] Pulling image 'ghcr.io/k3d-io/k3d-proxy:5.4.4' -INFO[0016] Using the k3d-tools node to gather environment information -INFO[0017] HostIP: using network gateway 172.18.0.1 address -INFO[0017] Starting cluster 'mycluster' -INFO[0017] Starting servers... -INFO[0017] Starting Node 'k3d-mycluster-server-0' -INFO[0020] All agents already running. -INFO[0020] Starting helpers... -INFO[0021] Starting Node 'k3d-mycluster-serverlb' -INFO[0027] Injecting records for hostAliases (incl. host.k3d.internal) and for 2 network members into CoreDNS configmap... -INFO[0029] Cluster 'mycluster' created successfully! -INFO[0029] You can now use it like this: -kubectl cluster-info - - -$ k cluster-info -Kubernetes control plane is running at https://0.0.0.0:44873 -CoreDNS is running at https://0.0.0.0:44873/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy -Metrics-server is running at https://0.0.0.0:44873/api/v1/namespaces/kube-system/services/https:metrics-server:https/proxy - -To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. - -$ k cluster-info dump - > huge yml - k3d cluster create start stop + +$ k cluster cleate ihcluster +INFO[0000] Prep: Network +INFO[0000] Created network 'k3d-ihcluster' +INFO[0000] Created image volume k3d-ihcluster-images +INFO[0000] Starting new tools node... +INFO[0001] Creating node 'k3d-ihcluster-server-0' +INFO[0001] Pulling image 'ghcr.io/k3d-io/k3d-tools:5.6.0' +INFO[0003] Pulling image 'docker.io/rancher/k3s:v1.27.4-k3s1' +INFO[0004] Starting Node 'k3d-ihcluster-tools' +INFO[0010] Creating LoadBalancer 'k3d-ihcluster-serverlb' +INFO[0011] Pulling image 'ghcr.io/k3d-io/k3d-proxy:5.6.0' +INFO[0020] Using the k3d-tools node to gather environment information +INFO[0021] HostIP: using network gateway 172.19.0.1 address +127.20.0.1 +INFO[0021] Starting cluster 'ihcluster' +INFO[0021] Starting servers... +INFO[0021] Starting Node 'k3d-ihcluster-server-0' +INFO[0025] All agents already running. +INFO[0025] Starting helpers... +INFO[0025] Starting Node 'k3d-ihcluster-serverlb' +INFO[0031] Injecting records for hostAliases (incl. host.k3d.internal) and for 2 network members into CoreDNS configmap... +INFO[0033] Cluster 'ihcluster' created successfully! +INFO[0033] You can now use it like this: +kubectl cluster-info + +$ k cluster-info +Kubernetes control plane is running at https://0.0.0.0:43459 +CoreDNS is running at https://0.0.0.0:43459/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy +Metrics-server is running at https://0.0.0.0:43459/api/v1/namespaces/kube-system/services/https:metrics-server:https/proxy + +To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. +To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. + +$ k cluster-info dump + > huge yml + https://k3d.io/v5.6.0/usage/configfile/ + +$ dc +CONTAINER ID IMAGE NAMES STATUS +53f199ccc713 ghcr.io/k3d-io/k3d-proxy:5.6.0 k3d-ihcluster-serverlb Up 2 minutes +f3270ddc915b rancher/k3s:v1.27.4-k3s1 k3d-ihcluster-server-0 Up 2 minutes diff --git a/devops/k8s/mini/rancher/k3s/k3d/integration/vscode-k3d.txt b/devops/k8s/mini/rancher/k3s/k3d/integration/vscode-k3d.txt index e45f1c084..e1272e90d 100644 --- a/devops/k8s/mini/rancher/k3s/k3d/integration/vscode-k3d.txt +++ b/devops/k8s/mini/rancher/k3s/k3d/integration/vscode-k3d.txt @@ -1,2 +1,2 @@ -https://marketplace.visualstudio.com/items?itemName=inercia.vscode-k3 +https://marketplace.visualstudio.com/items?itemName=inercia.vscode-k3d https://github.com/k3d-io/vscode-k3d diff --git a/devops/k8s/tools/mesh/istio/docs/books.txt b/devops/k8s/tools/mesh/istio/docs/books.txt index 150ff8beb..fe67d8fc6 100644 --- a/devops/k8s/tools/mesh/istio/docs/books.txt +++ b/devops/k8s/tools/mesh/istio/docs/books.txt @@ -1,7 +1,14 @@ +https://www.baeldung.com/hibernate-entity-lifecycle +2022 +PostaMaloku - Istio in Action + E869C2218B6CA45D184D5C4E324DC7CE 2020 +SunBerg - Istio Explained + 7CA8D7F08260B76E4D31EB908B196A08 + ! 134p CalcoteButcher - Istio up and Running ru C4969E4AFB1AA95E1B9EA65F089139D8 C042CAD935A6269DAE06F72586C1AB2F + ru - Pristupaem k rabote CalcoteButcher - Istio Up and Running 44F3302FD4789512DB289F550924DB33 -ru - Pristupaem k rabote diff --git a/devops/k8s/tools/workflow/argo.txt b/devops/k8s/tools/workflow/argo.txt deleted file mode 100644 index cb93a45dc..000000000 --- a/devops/k8s/tools/workflow/argo.txt +++ /dev/null @@ -1,9 +0,0 @@ -https://argoproj.github.io/ -https://github.com/argoproj - -2022 -SaiyamPathak - ArgoCD - Walkthrough of 17:28 - https://www.youtube.com/watch?v=2B3qcyCcBXs -2020 -https://medium.com/soluto-engineering/practical-canary-releases-in-kubernetes-with-argo-rollouts-933884133aea - https://nuancesprog.ru/p/9904/ diff --git a/pl/cross/tools/ci/argo-cd.txt b/pl/cross/tools/ci/argo-cd.txt index be6d77234..042a943e7 100644 --- a/pl/cross/tools/ci/argo-cd.txt +++ b/pl/cross/tools/ci/argo-cd.txt @@ -1,5 +1,31 @@ -https://argoproj.github.io/argo-cd/ -https://github.com/argoproj/argo-cd/ +https://argoproj.github.io +https://github.com/argoproj +https://github.com/argoproj/argo-workflows + https://github.com/sudermanjr/asdf-argo + +https://argoproj.github.io/argo-cd +https://github.com/argoproj/argo-cd +https://argo-cd.readthedocs.io/en/stable/ +https://argo-cd.readthedocs.io/en/stable/getting_started/#2-download-argo-cd-cli +https://argo-cd.readthedocs.io/en/stable/developer-guide/toolchain-guide/#using-k3d + +https://argoproj.github.io/argo-rollouts +https://argoproj.github.io/argo-rollouts/getting-started/ +https://argo-rollouts.readthedocs.io/en/stable/ +https://argo-rollouts.readthedocs.io/en/stable/features/kubectl-plugin/ + k argo roullouts get rollout + -w/--watch + +https://www.youtube.com/@argoproj7170 + +2023 +https://www.redhat.com/architect/blue-green-canary-argo-rollouts +2022 +SaiyamPathak - ArgoCD - Walkthrough of 17:28 + https://www.youtube.com/watch?v=2B3qcyCcBXs 2021 https://www.youtube.com/playlist?list=PL34sAs7_26wMW4bWKnMIfEd87aPuw75by +2020 +https://medium.com/soluto-engineering/practical-canary-releases-in-kubernetes-with-argo-rollouts-933884133aea + https://nuancesprog.ru/p/9904/ diff --git a/pl/java/libfws/io/persistence/orm/hibernate/features/entity-lifecycle.txt b/pl/java/libfws/io/persistence/orm/hibernate/features/entity-lifecycle.txt new file mode 100644 index 000000000..62f673316 --- /dev/null +++ b/pl/java/libfws/io/persistence/orm/hibernate/features/entity-lifecycle.txt @@ -0,0 +1,4 @@ +2019 +https://www.baeldung.com/hibernate-entity-lifecycle + HibernateLifecycleUtil.getManagedEntities(session) + DirtyDataInspector.getDirtyEntities() diff --git a/pl/java/libfws/io/persistence/orm/hibernate/features/internals/dirty-check.txt b/pl/java/libfws/io/persistence/orm/hibernate/features/internals/dirty-check.txt index bccea7627..3fd846edc 100644 --- a/pl/java/libfws/io/persistence/orm/hibernate/features/internals/dirty-check.txt +++ b/pl/java/libfws/io/persistence/orm/hibernate/features/internals/dirty-check.txt @@ -5,6 +5,10 @@ https://docs.jboss.org/hibernate/core/4.3/javadocs/org/hibernate/Interceptor.html#findDirty%28java.lang.Object,%20java.io.Serializable,%20java.lang.Object[],%20java.lang.Object[],%20java.lang.String[],%20org.hibernate.type.Type[]%29 https://docs.jboss.org/hibernate/orm/4.3/javadocs/org/hibernate/CustomEntityDirtinessStrategy.html !!! +2019 +https://www.baeldung.com/hibernate-entity-lifecycle + HibernateLifecycleUtil.getManagedEntities(session) + DirtyDataInspector.getDirtyEntities() 2016 https://medium.com/@paul.klingelhuber/hibernate-dirty-checking-with-converted-attributes-1b6d1cd27f68 ! DefaultFlushEntityEventListener