-
-
Notifications
You must be signed in to change notification settings - Fork 3
[Merged by Bors] - Add config maps #50
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
Closed
Closed
Changes from 52 commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
959c774
removed obsolete helm chart; added spark cluster role
24921ce
Added spark service account
60d6640
regenerated helm chart
979dba8
clippy fix
7329f44
clippy fix
3da2b05
fmt fix
8b9720d
clippy fix
cde716f
main merge
razvan d97d3cf
cargo fmt --all
razvan a64b8b9
Cluster Role
c176a80
added role permissions for PVCs
adwk67 0710e14
regenerate role yamls
adwk67 408f729
fixed indents
adwk67 c02ee47
fixed indents: manifests
adwk67 cc62802
Added recommended labels
7d37a0e
Merge branch 'rbac-setup' of github.com:stackabletech/spark-k8s-opera…
d2f56c9
Added a comment
00100f7
Changelog entry
b483452
reduce pvc permissions
adwk67 60e6002
initial missing standard docs
adwk67 9e4b602
added placeholders for pvc/rbac docs
adwk67 fd18d0d
added external storage comments
adwk67 a1b4ce8
Merge branch 'main' into documentation
adwk67 dd3cabb
added pvc example
adwk67 a754cc5
lint warning
adwk67 fc288b2
lint warning II
adwk67 26cd122
pv/pvc example
adwk67 c527606
initial RBAC page
adwk67 f1c3c0d
Merge branch 'main' into documentation
adwk67 e0f9307
rbac overview
adwk67 e3864c4
annotated some of the examples
adwk67 5b3971c
updated usage examples
adwk67 8206531
fixed yaml lint errors
adwk67 dd76aef
cleaned up examples/CRD defs
adwk67 4ae144a
initial impl of cmaps
adwk67 e2b25aa
Merge branch 'main' into add-config-maps
adwk67 11c1c91
wip: quote properties
adwk67 3a35501
fixed sorting
adwk67 17ceb14
regenerate charts
adwk67 876e726
resolved merge conflict
adwk67 b5deb99
resolved merge conflict II
adwk67 4528749
fixed test
adwk67 033c201
wip
adwk67 63ff6e7
working copy with arguments-via-config map
adwk67 f359ac2
regenerate charts
adwk67 e52d2bf
format corrections
adwk67 a498eba
move duplicated code to a function
adwk67 90b20fd
moved config map mounts to driver/executors
adwk67 8112601
removed redundant element
adwk67 11015b4
updated changelog and updated usage doc
adwk67 8b77c6a
lint fix
adwk67 f332efb
removed dead code
adwk67 919491f
add kuttl test
adwk67 8b36ff1
use VolumeMount rather than a new struct
adwk67 b48436f
use standard configmap-backed volume
adwk67 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
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 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cm-job-arguments # <1> | ||
data: | ||
job-args.txt: | | ||
s3a://nyc-tlc/trip data/yellow_tripdata_2021-07.csv # <2> | ||
42 changes: 42 additions & 0 deletions
42
docs/modules/ROOT/examples/example-sparkapp-configmap.yaml
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,42 @@ | ||
--- | ||
apiVersion: spark.stackable.tech/v1alpha1 | ||
kind: SparkApplication | ||
metadata: | ||
name: ny-tlc-report-configmap | ||
namespace: default | ||
spec: | ||
version: "1.0" | ||
sparkImage: docker.stackable.tech/stackable/spark-k8s:3.2.1-hadoop3.2-stackable0.4.0 | ||
mode: cluster | ||
mainApplicationFile: s3a://stackable-spark-k8s-jars/jobs/ny-tlc-report-1.1.0.jar # <3> | ||
mainClass: tech.stackable.demo.spark.NYTLCReport | ||
volumes: | ||
- name: job-deps | ||
persistentVolumeClaim: | ||
claimName: pvc-ksv | ||
args: | ||
- "--input /arguments/job-args.txt" # <4> | ||
sparkConf: | ||
"spark.hadoop.fs.s3a.aws.credentials.provider": "org.apache.hadoop.fs.s3a.AnonymousAWSCredentialsProvider" | ||
"spark.driver.extraClassPath": "/dependencies/jars/hadoop-aws-3.2.0.jar:/dependencies/jars/aws-java-sdk-bundle-1.11.375.jar" | ||
"spark.executor.extraClassPath": "/dependencies/jars/hadoop-aws-3.2.0.jar:/dependencies/jars/aws-java-sdk-bundle-1.11.375.jar" | ||
driver: | ||
cores: 1 | ||
coreLimit: "1200m" | ||
memory: "512m" | ||
volumeMounts: | ||
- name: job-deps | ||
mountPath: /dependencies | ||
configMapMounts: | ||
- configMapName: cm-job-arguments # <5> | ||
path: /arguments # <6> | ||
executor: | ||
cores: 1 | ||
instances: 3 | ||
memory: "512m" | ||
volumeMounts: | ||
- name: job-deps | ||
mountPath: /dependencies | ||
configMapMounts: | ||
- configMapName: cm-job-arguments # <5> | ||
path: /arguments # <6> |
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,50 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: cm-job-arguments | ||
data: | ||
job-args.txt: | | ||
s3a://nyc-tlc/trip data/yellow_tripdata_2021-07.csv | ||
--- | ||
apiVersion: spark.stackable.tech/v1alpha1 | ||
kind: SparkApplication | ||
metadata: | ||
name: ny-tlc-report-configmap | ||
namespace: default | ||
spec: | ||
version: "1.0" | ||
sparkImage: docker.stackable.tech/stackable/spark-k8s:3.2.1-hadoop3.2-stackable0.4.0 | ||
mode: cluster | ||
mainApplicationFile: s3a://stackable-spark-k8s-jars/jobs/ny-tlc-report-1.1.0.jar | ||
mainClass: tech.stackable.demo.spark.NYTLCReport | ||
volumes: | ||
- name: job-deps | ||
persistentVolumeClaim: | ||
claimName: pvc-ksv | ||
args: | ||
- "--input /arguments/job-args.txt" | ||
sparkConf: | ||
"spark.hadoop.fs.s3a.aws.credentials.provider": "org.apache.hadoop.fs.s3a.AnonymousAWSCredentialsProvider" | ||
"spark.driver.extraClassPath": "/dependencies/jars/hadoop-aws-3.2.0.jar:/dependencies/jars/aws-java-sdk-bundle-1.11.375.jar" | ||
"spark.executor.extraClassPath": "/dependencies/jars/hadoop-aws-3.2.0.jar:/dependencies/jars/aws-java-sdk-bundle-1.11.375.jar" | ||
driver: | ||
cores: 1 | ||
coreLimit: "1200m" | ||
memory: "512m" | ||
volumeMounts: | ||
- name: job-deps | ||
mountPath: /dependencies | ||
configMapMounts: | ||
- configMapName: cm-job-arguments | ||
path: /arguments | ||
executor: | ||
cores: 1 | ||
instances: 3 | ||
memory: "512m" | ||
volumeMounts: | ||
- name: job-deps | ||
mountPath: /dependencies | ||
configMapMounts: | ||
- configMapName: cm-job-arguments | ||
path: /arguments |
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.
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.