-
Notifications
You must be signed in to change notification settings - Fork 5
WIP: Add support for running with a remote Armada server #83
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
richscott
wants to merge
23
commits into
master
Choose a base branch
from
rich/support-remote-server
base: master
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
23 commits
Select commit
Hold shift + click to select a range
b635db5
Start adding support for running against remote Armada cluster server.
richscott 49aa0a7
Merge branch 'master' into rich/support-remote-server
richscott b14a8e8
Add script for getting TLS cert files for remote server
richscott 16fc24e
Merge branch 'master' into rich/support-remote-server
richscott 7d3a456
Move K8sClient class from src/test into src/main
richscott 5bc5858
Merge branch 'master' into rich/support-remote-server
richscott aa1e144
Remove debugging messages; re-enable init-cluster on e2e script.
richscott c538b1b
In E2E script, if Armada server is not localhost, don't do certain st…
richscott 0c06f07
Add more README.md content on setting up for using a remote Armada se…
richscott fee4552
Quote evaluated script vars, for CI checker
richscott e4e4a83
Disable building/testing for Spark 3.5.5 config for now.
richscott 7e49435
Scala linter fixes; Bash lint fixes
richscott 2b705ae
Add ARMADA_LOOKOUT_URL to init.sh
richscott cc7639a
Check if TLS cert vars are defined before referencing
richscott b3d4265
Conditionally add TLS cert properties to test invocation
richscott 616dcac
Dynamically extract external IP addr for TLS cert setup
richscott 8127bcb
Check for busybox image for init container
richscott 5d51466
Add init container image name.
richscott 1172550
Add diagnostic search log for .spark-* directory
richscott a0c0d8a
More GH Actions debugging
richscott 233e413
More diagnostics for finding spark source dir
richscott 9e0b309
Clone the Spark repo to get bin/spark-class and jars.
richscott 6345155
Always rebuild the Spark jars before running E2E.
richscott 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
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 |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/bin/bash | ||
|
|
||
| CONTEXT="kind-armada" | ||
|
|
||
| E2E_DIR=$(realpath "$0" | xargs dirname) | ||
|
|
||
| cd "$E2E_DIR" || (echo "Error: could not cd to $E2E_DIR"; exit 1) | ||
|
|
||
| # What These Files Are | ||
| # - client.crt: Your user (client) certificate | ||
| # - client.key: The private key associated with the certificate | ||
| # - ca.crt: The CA certificate used by the Kubernetes API server (for verifying client and server certs) | ||
|
|
||
| # Extract the client certificate | ||
| kubectl config view --raw -o json | jq -r \ | ||
| ".users[] | select(.name == \"${CONTEXT}\") | .user.[\"client-certificate-data\"]" | base64 -d > client.crt | ||
|
|
||
| # Extract the client key | ||
| kubectl config view --raw -o json | jq -r \ | ||
| ".users[] | select(.name == \"${CONTEXT}\") | .user.[\"client-key-data\"]" | base64 -d > client.key | ||
|
|
||
| # Extract the cluster CA certificate | ||
| kubectl config view --raw -o json | jq -r \ | ||
| ".clusters[] | select(.name == \"${CONTEXT}\") | .cluster.[\"certificate-authority-data\"]" | base64 -d > ca.crt | ||
|
|
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,52 @@ | ||
| # A kind configuration for running an Armada server that can be accessed | ||
| # outside the host system, for working/developing with remote clients, | ||
| # such as Armada-Spark clients. | ||
| # | ||
| # This configuration will allow you to run kubectl and armadactl | ||
| # against the Armada instance on this system. To use this: | ||
| # - Copy your $HOME/.kube/config on this system to the same directory | ||
| # on your remote client host, then modify that copied file so the | ||
| # IP address in there (0.0.0.0) is the address of the external interface | ||
| # mentioned below. | ||
| # - Copy your $HOME/.armadactl.yaml to your $HOME directory on the remote | ||
| # client host, in that copied file, change the value of the 'armadaUrl' | ||
| # field from 'localhost' to the hostname (or IP address) of this server, | ||
| # and below that line a new line (at same indent level), add the entry | ||
| # forceNoTls: true | ||
| # You should then be able to run `kubectl cluster-info` or | ||
| # `armadactl get queues` without errors on the remote client host. | ||
| kind: Cluster | ||
| apiVersion: kind.x-k8s.io/v1alpha4 | ||
| nodes: | ||
| - role: control-plane | ||
| kubeadmConfigPatches: | ||
| - | | ||
| kind: ClusterConfiguration | ||
| apiServer: | ||
| certSANs: | ||
| - localhost | ||
| - 127.0.0.1 | ||
| # replace the following line with the IP address | ||
| # of the external interface on this system | ||
| - 192.168.12.135 | ||
| - 0.0.0.0 | ||
| extraPortMappings: | ||
| # Lookout UI | ||
| - containerPort: 30000 | ||
| hostPort: 30000 | ||
| protocol: TCP | ||
| # Armada Server REST API | ||
| - containerPort: 30001 | ||
| hostPort: 30001 | ||
| protocol: TCP | ||
| # Armada Server gRPC API | ||
| - containerPort: 30002 | ||
| hostPort: 30002 | ||
| protocol: TCP | ||
| # Kubernetes API | ||
| - containerPort: 6443 | ||
| hostPort: 6443 | ||
| protocol: TCP | ||
| - role: worker | ||
| labels: | ||
| armada-spark: true |
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should e2e/*crt be in .gitignore?