Skip to content

Commit

Permalink
chore(mrs): Add mrs cluster example
Browse files Browse the repository at this point in the history
  • Loading branch information
dmicheneau committed Jan 19, 2023
1 parent edad185 commit cdb1390
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
47 changes: 47 additions & 0 deletions examples/mrs/cluster.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
apiVersion: mrs.flexibleengine.upbound.io/v1beta1
kind: Cluster
metadata:
annotations:
meta.upbound.io/example-id: mrs/v1beta1/cluster
labels:
testing.upbound.io/example-name: example_mrs_cluster
name: example-mrs-cluster
spec:
forProvider:
analysisCoreNodes:
- dataVolumeCount: 1
dataVolumeSize: 100
dataVolumeType: SAS
flavor: c3.2xlarge.2.linux.mrs
nodeNumber: 3
rootVolumeSize: 100
rootVolumeType: SAS
availabilityZone: eu-west-0a
componentList:
- Hadoop
- Spark
- Hive
managerAdminPwdSecretRef:
key: example-mrs-admin-password
name: example-mrs-secret
namespace: crossplane-system
masterNodes:
- dataVolumeCount: 1
dataVolumeSize: 100
dataVolumeType: SAS
flavor: c3.2xlarge.2.linux.mrs
nodeNumber: 2
rootVolumeSize: 100
rootVolumeType: SAS
name: example-mrs-cluster
nodeKeyPairSelector:
matchLabels:
testing.upbound.io/example-name: example_keypair
subnetIdSelector:
matchLabels:
testing.upbound.io/example-name: example_subnet
type: ANALYSIS
version: MRS 2.0.1
vpcIdSelector:
matchLabels:
testing.upbound.io/example-name: example_vpc
10 changes: 10 additions & 0 deletions examples/mrs/cluster_secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
labels:
testing.upbound.io/example-name: example_mrs_secret
name: example-mrs-secret
namespace: crossplane-system
type: Opaque
stringData:
example-mrs-admin-password: SuperS3cr3tP4ssw@rd
23 changes: 23 additions & 0 deletions examples/mrs/job.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: mrs.flexibleengine.upbound.io/v1beta1
kind: Job
metadata:
annotations:
meta.upbound.io/example-id: mrs/v1beta1/job
labels:
testing.upbound.io/example-name: test
name: test
spec:
forProvider:
clusterIdSelector:
matchLabels:
testing.upbound.io/example-name: example
name: ${var.job_name}
parameters: ${var.access_key} ${var.secret_key} 1 s3a://obs-demo-analysis/input
s3a://obs-demo-analysis/output
programParameters:
--class: com.orange.bigdata.spark.examples.DriverBehavior
programPath: ${var.program_path}
type: SparkSubmit

---

0 comments on commit cdb1390

Please sign in to comment.