Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Epic] 3.6: Upgrading CoW EKS clusters to 1.28 #61

Closed
16 tasks done
ahhda opened this issue May 2, 2024 · 1 comment
Closed
16 tasks done

[Epic] 3.6: Upgrading CoW EKS clusters to 1.28 #61

ahhda opened this issue May 2, 2024 · 1 comment
Assignees
Labels
epic Tracks a yearly team epic (only for cowprotocol/pm repo)

Comments

@ahhda
Copy link

ahhda commented May 2, 2024

Epic label: E:3.6 Upgrading CoW EKS clusters to 1.27
Planned start date: 29th April
Due date: 30th May

Summary

CoW EKS clusters are running older versions of Kubernetes i.e. 1.23. This was because we did a lift and shift migration from Gnosis and wanted to have minimum drift. As the old Kubernetes version reach end of support we must update our clusters to a newer version as soon as possible.

Acceptance Criteria

  • Staging cluster upgraded to 1.27
  • Production cluster upgraded to 1.27
  • Addons (kube-proxy, vpc-cni, ebs-csi-driver) are added via EKS addon and are versioned
  • All supported software including ingress controller, prometheus, logging are upgraded to support the latest versions

Tasks

About switching RPC nodes

Since our internal cluster RPC nodes currently run on ephemeral storage, as soon as we upgrade the managed node group the instances need to resync the data which can take more than a day slowing down multiple version upgrades.

Changing our RPCs to use external URL's will allow us to migrate our Kubernetes cluster in an accelerated way.

The plan is to switch to these RPC's and remove our internal RPC nodes temporarily till we upgrade our clusters to the latest versions. Once the clusters are upgraded we'll switch back to internal RPC's. Erigon node on the internal cluster is taking a very long time to sync, hence we direct RPC requests for Gnosis to the OVH instance.

  • staging.nodes.cow.fi points to a dev cluster running mainnet and sepolia nodes (see #1429)
  • 141.95.126.150 points to a OVH instance which we were going to use for GNO validators

Viewing logs:

  • For verifying the nodes mainnet and sepolia node logs, we can connect to the dev cluster and check RPC logs
  • For verifying the OVH logs, we can SSH into the instance and use tmux to check logs

For just normally checking the endpoints

NODE_URL=staging.nodes.cow.fi/mainnet
REQUEST='{"id":1,"jsonrpc":"2.0","method":"eth_blockNumber"}'
curl --data $REQUEST -H "Content-Type: application/json" -X POST $NODE_URL
wscat -c ws://staging.nodes.cow.fi/sepolia-ws
@ahhda ahhda added the epic Tracks a yearly team epic (only for cowprotocol/pm repo) label May 2, 2024
@ahhda ahhda added this to the Complexity Reduction milestone May 2, 2024
@ahhda ahhda changed the title [Epic] Upgrading CoW EKS clusters to 1.27 [Epic] 3.6 Upgrading CoW EKS clusters to 1.27 May 2, 2024
@mfw78 mfw78 changed the title [Epic] 3.6 Upgrading CoW EKS clusters to 1.27 [Epic] 3.6: Upgrading CoW EKS clusters to 1.27 May 2, 2024
@ahhda ahhda self-assigned this May 2, 2024
@ahhda ahhda changed the title [Epic] 3.6: Upgrading CoW EKS clusters to 1.27 [Epic] 3.6: Upgrading CoW EKS clusters to 1.28 May 22, 2024
@ahhda
Copy link
Author

ahhda commented May 22, 2024

All upgrades have been completed
cc: @fleupold @beefbrisket911

@ahhda ahhda closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Tracks a yearly team epic (only for cowprotocol/pm repo)
Projects
None yet
Development

No branches or pull requests

1 participant