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

k8s v2 backend #3630

Merged
merged 19 commits into from
Jul 10, 2024
Merged

k8s v2 backend #3630

merged 19 commits into from
Jul 10, 2024

Conversation

busma13
Copy link
Contributor

@busma13 busma13 commented May 24, 2024

This PR makes the following changes:

  • Creates a kubernetesV2 directory under packages/teraslice/src/lib/cluster/services/cluster/backends with copies of all files in kubernetes directory
  • Modify K8s class to use @kubernetes/client-node instead of kubernetes-client
  • Modify index.ts:
    • Rename class KubernetesClusterBackendV2
    • Account for typed responses from new client
  • Account for kubernetesV2 possibility anywhere cluster_manager_type, CLUSTERING_TYPE or TEST_PLATFORM are checked
  • Duplicate unit tests related to k8s to run k8sV2 also
  • Add e2e-k8s-v2-tests to github workflow
  • Update ts-scripts test and ts-scripts k8s-env to allow for kubernetesV2 clustering
  • Add clustering-type and keep-open flags to ts-scripts k8s-env
  • Add k8sV2 script to root package.json
  • Add @terascope/types:0.17.2 as scripts dependency

Ref: #1799

@busma13
Copy link
Contributor Author

busma13 commented May 28, 2024

Set cluster_manager_type to kubernetesV2 in your terafoundation config:

terafoundation:
    ...
teraslice:
    ...
    cluster_manager_type: kubernetesV2
    ...

Check the clustering_type to verify kubernetesV2 backend:

curl localhost:5678
{
    "arch": "arm64",
    "clustering_type": "kubernetesV2",
    "name": "ts-dev1",
    "node_version": "v18.19.1",
    "platform": "linux",
    "teraslice_version": "v1.6.1"
}

@busma13 busma13 force-pushed the migrate-to-official-k8s-client branch from ab7f634 to cd29930 Compare May 30, 2024 21:36
@busma13 busma13 marked this pull request as ready for review June 3, 2024 22:23
@busma13 busma13 requested review from sotojn and godber June 3, 2024 22:23
@godber godber added this to the v2.1 milestone Jun 5, 2024
@busma13 busma13 force-pushed the migrate-to-official-k8s-client branch from cdab1a5 to 7f1d610 Compare June 18, 2024 15:30
@busma13 busma13 force-pushed the migrate-to-official-k8s-client branch from aebb747 to 786f28b Compare July 5, 2024 15:57
@busma13 busma13 force-pushed the migrate-to-official-k8s-client branch from 786f28b to 2a45d48 Compare July 9, 2024 21:33
@godber godber merged commit 5817340 into master Jul 10, 2024
62 checks passed
@godber godber deleted the migrate-to-official-k8s-client branch July 10, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants