forked from mtusi2026/mtusi2026lab2
Implement lab 2 with PostgreSQL, Valkey admission and Helm deployment
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
UTC: 2026-10-07T14:05:13Z
|
||||
Context: dev; namespace: highload-applications; release: lab2
|
||||
Initial adoption attempt (failure retained):
|
||||
Release "lab2" does not exist. Installing it now.
|
||||
Error: conflict occurred while applying object highload-applications/postgres apps/v1, Kind=StatefulSet: Apply failed with 1 conflict: conflict with "kubectl-client-side-apply" using apps/v1: .spec.volumeClaimTemplates && conflict occurred while applying object highload-applications/valkey apps/v1, Kind=StatefulSet: Apply failed with 1 conflict: conflict with "kubectl-client-side-apply" using apps/v1: .spec.volumeClaimTemplates
|
||||
Retry with client-side apply:
|
||||
Release "lab2" has been upgraded. Happy Helming!
|
||||
NAME: lab2
|
||||
LAST DEPLOYED: Wed Oct 7 16:55:02 2026
|
||||
NAMESPACE: highload-applications
|
||||
STATUS: deployed
|
||||
REVISION: 2
|
||||
DESCRIPTION: Upgrade complete
|
||||
TEST SUITE: None
|
||||
Repeated upgrade:
|
||||
helm upgrade --install "lab2" charts/messenger --kube-context "dev" -n "highload-applications" --create-namespace -f "charts/messenger/values.yaml" --wait --timeout 180s
|
||||
Release "lab2" has been upgraded. Happy Helming!
|
||||
NAME: lab2
|
||||
LAST DEPLOYED: Wed Oct 7 16:55:41 2026
|
||||
NAMESPACE: highload-applications
|
||||
STATUS: deployed
|
||||
REVISION: 3
|
||||
DESCRIPTION: Upgrade complete
|
||||
TEST SUITE: None
|
||||
PASS: all four PVC UIDs unchanged across adoption, restart and reshard 3->2->3
|
||||
NAME UID VOLUME
|
||||
data-postgres-0 b592cc47-82be-4635-afa4-d65e3246e82a pvc-b592cc47-82be-4635-afa4-d65e3246e82a
|
||||
data-valkey-0 fafeeae5-f6f6-487d-ba50-15d50f9678c7 pvc-fafeeae5-f6f6-487d-ba50-15d50f9678c7
|
||||
data-valkey-1 a39c3e41-fae2-4096-b83f-807aada803e9 pvc-a39c3e41-fae2-4096-b83f-807aada803e9
|
||||
data-valkey-2 ad5c9d15-ae01-409e-ad11-7f7f7b42e7fe pvc-ad5c9d15-ae01-409e-ad11-7f7f7b42e7fe
|
||||
Data counts immediately before/after adoption (users|messages|sessions):
|
||||
21|10|18
|
||||
21|10|18
|
||||
PASS: ordinary upgrade rejected live topology change:
|
||||
Error: UPGRADE FAILED: execution error at (messenger/templates/guard.yaml:5:4): Changing shards requires drained API: use make reshard SHARDS=2 or SHARDS=3
|
||||
PASS: full restart changed UID of every API/PostgreSQL/Valkey pod:
|
||||
[
|
||||
{
|
||||
"name": "api-b97b8fd5c-5q97w",
|
||||
"uid": "62df6b84-8f49-427f-ab57-0763ab746bb8"
|
||||
},
|
||||
{
|
||||
"name": "postgres-0",
|
||||
"uid": "3f8b6638-9e4f-4004-85de-b8a51624b35a"
|
||||
},
|
||||
{
|
||||
"name": "valkey-0",
|
||||
"uid": "462a6c71-ac57-4afb-9269-53e81d22fb04"
|
||||
},
|
||||
{
|
||||
"name": "valkey-1",
|
||||
"uid": "f9bf5ec7-5da4-46d3-88c4-810b2d16a286"
|
||||
},
|
||||
{
|
||||
"name": "valkey-2",
|
||||
"uid": "d27c9814-3f9c-4b31-9961-4ff728fa45f8"
|
||||
}
|
||||
]
|
||||
[
|
||||
{
|
||||
"name": "api-b97b8fd5c-kz2nh",
|
||||
"uid": "084b7261-6a07-4a61-9f61-6ecbac605edf"
|
||||
},
|
||||
{
|
||||
"name": "postgres-0",
|
||||
"uid": "fd274452-2236-44a9-b30d-978ae06623ba"
|
||||
},
|
||||
{
|
||||
"name": "valkey-0",
|
||||
"uid": "370b84f2-04f6-40ce-a057-e1f577a902fa"
|
||||
},
|
||||
{
|
||||
"name": "valkey-1",
|
||||
"uid": "750bd2bb-0b03-4479-92f4-70c60ee0aa56"
|
||||
},
|
||||
{
|
||||
"name": "valkey-2",
|
||||
"uid": "b9f8dcb6-fd91-4959-83a6-3247c4dfc53d"
|
||||
}
|
||||
]
|
||||
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
|
||||
lab2 highload-applications 9 2026-10-07 17:00:05.477871 +0300 MSK deployed messenger-0.1.0 lab2
|
||||
NAME READY STATUS RESTARTS AGE
|
||||
api-b97b8fd5c-kz2nh 1/1 Running 0 6s
|
||||
postgres-0 1/1 Running 0 27s
|
||||
valkey-0 1/1 Running 0 9s
|
||||
valkey-1 1/1 Running 0 23s
|
||||
valkey-2 1/1 Running 0 27s
|
||||
cr.yandex/crpv8disueqk68pv29jg/mtusi2026lab2@sha256:bd5a0157693a9c288e3691c6d187a7314a798a91ff42a36228c7381cc5ce6496
|
||||
Reference in New Issue
Block a user