-
Notifications
You must be signed in to change notification settings - Fork 23
Setup scripts for Kubernetes control plane high-availability mode #379
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
Open
cvetkovic
wants to merge
8
commits into
main
Choose a base branch
from
ha_k8s
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
8b7b8f6
Rewrite YAMLs
cvetkovic a459835
Setup config
cvetkovic b487d89
K8s high-availability mode
cvetkovic bd77ff3
Change of API Server port
cvetkovic 51daea0
Documentation for HA mode
cvetkovic 0969fac
Fixed issues with node labelling
cvetkovic 4bae0c3
Fixing bugs
cvetkovic 40546b6
Control plane replica set to 1
cvetkovic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,14 @@ | ||
| { | ||
| "K8sVersion": "1.29.1", | ||
| "AlternativeImageRepo": "", | ||
| "ApiserverAdvertiseAddress": "", | ||
| "PodNetworkCidr": "10.168.0.0/16", | ||
| "ApiserverPort": "6443", | ||
| "ApiserverToken": "", | ||
| "ApiserverTokenHash": "", | ||
| "CalicoVersion": "3.27.2" | ||
| "CalicoVersion": "3.27.2", | ||
| "AlternativeImageRepo": "", | ||
| "ApiserverAdvertiseAddress": "", | ||
| "PodNetworkCidr": "10.168.0.0/16", | ||
| "PodNetworkAddonConfigURL": "https://raw.githubusercontent.com/vhive-serverless/vHive/main/configs/calico/canal.yaml", | ||
| "ApiserverPort": "6443", | ||
| "ApiserverToken": "", | ||
| "ApiserverDiscoveryToken": "", | ||
| "ApiserverCertificateKey": "", | ||
| "CPHAEndpoint": "10.0.1.254", | ||
| "CPHAPort": "6443" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| import os | ||
| import pandas as pd | ||
|
|
||
| path = '/home/lcvetkovic/Downloads/day6_hour8_samples/samples' | ||
|
|
||
| for files in os.listdir(path): | ||
| df = pd.read_csv(f'{path}/{files}/invocations.csv') | ||
| dirigent = pd.DataFrame() | ||
|
|
||
| for index, row in df.iterrows(): | ||
| function = row['HashFunction'] | ||
|
|
||
| dirigent = dirigent.append( { | ||
| 'HashFunction': function, | ||
| 'Image': 'docker.io/cvetkovic/dirigent_trace_function:latest', | ||
| 'Port': 80, | ||
| 'Protocol': 'tcp', | ||
| 'ScalingUpperBound': 10000, | ||
| 'ScalingLowerBound': 0, | ||
| 'IterationMultiplier': 155, | ||
| }, ignore_index=True) | ||
|
|
||
| dirigent.to_csv(f'{path}/{files}/dirigent.csv', index=False) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,8 @@ | ||
| VHIVE_BRANCH='v1.7' | ||
| LOADER_BRANCH='main' | ||
| VHIVE_BRANCH='k8s_ha_mode' | ||
| LOADER_BRANCH='ha_k8s' | ||
| CLUSTER_MODE='container' # choose from {container, firecracker, firecracker_snapshots} | ||
| PODS_PER_NODE=240 | ||
| DEPLOY_PROMETHEUS=false | ||
|
|
||
| # K8s control plane replicas (default: 1, for high-availability use 3 or 5) | ||
| CONTROL_PLANE_REPLICAS=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| for s in $(kubectl get pods -n knative-serving -o name | cut -c 5- | grep -v activator); | ||
| do | ||
| kubectl delete pod $s -n knative-serving & | ||
| done | ||
| for s in $(kubectl get pods -n kube-system -o name | cut -c 5-); | ||
| do | ||
| kubectl delete pod $s -n kube-system & | ||
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| for s in $(kubectl get pods -n knative-serving -o name | cut -c 5- | grep activator); | ||
| do | ||
| kubectl delete pod $s -n knative-serving & | ||
| done | ||
| for s in $(kubectl get pods -n istio-system -o name | cut -c 5- ); | ||
| do | ||
| kubectl delete pod $s -n istio-system & | ||
| done |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.