-
Notifications
You must be signed in to change notification settings - Fork 117
Replace submission v1 with submission v2. #286
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| --- | ||
| apiVersion: extensions/v1beta1 | ||
| kind: Deployment | ||
| metadata: | ||
| name: spark-resource-staging-server | ||
| spec: | ||
| replicas: 1 | ||
| template: | ||
| metadata: | ||
| labels: | ||
| resource-staging-server-instance: default | ||
| spec: | ||
| volumes: | ||
| - name: resource-staging-server-properties | ||
| configMap: | ||
| name: spark-resource-staging-server-config | ||
| containers: | ||
| - name: spark-resource-staging-server | ||
| image: kubespark/spark-resource-staging-server:v2.1.0-kubernetes-0.1.0-alpha.3 | ||
| resources: | ||
| requests: | ||
|
||
| cpu: 100m | ||
| memory: 256Mi | ||
| limits: | ||
| cpu: 100m | ||
| memory: 256Mi | ||
| volumeMounts: | ||
| - name: resource-staging-server-properties | ||
| mountPath: '/etc/spark-resource-staging-server' | ||
| args: | ||
| - '/etc/spark-resource-staging-server/resource-staging-server.properties' | ||
| --- | ||
| apiVersion: v1 | ||
| kind: ConfigMap | ||
| metadata: | ||
| name: spark-resource-staging-server-config | ||
| data: | ||
| resource-staging-server.properties: | | ||
| spark.kubernetes.resourceStagingServer.port=10000 | ||
| spark.ssl.kubernetes.resourceStagingServer.enabled=false | ||
| # Other possible properties are listed below, primarily for setting up TLS. The paths given by KeyStore, password, and PEM files here should correspond to | ||
| # files that are securely mounted into the resource staging server container, via e.g. secret volumes. | ||
| # spark.ssl.kubernetes.resourceStagingServer.keyStore=/mnt/secrets/resource-staging-server/keyStore.jks | ||
| # spark.ssl.kubernetes.resourceStagingServer.keyStorePassword=changeit | ||
| # spark.ssl.kubernetes.resourceStagingServer.keyPassword=changeit | ||
| # spark.ssl.kubernetes.resourceStagingServer.keyStorePasswordFile=/mnt/secrets/resource-staging-server/keystore-password.txt | ||
| # spark.ssl.kubernetes.resourceStagingServer.keyPasswordFile=/mnt/secrets/resource-staging-server/keystore-key-password.txt | ||
| # spark.ssl.kubernetes.resourceStagingServer.keyPem=/mnt/secrets/resource-staging-server/key.pem | ||
| # spark.ssl.kubernetes.resourceStagingServer.serverCertPem=/mnt/secrets/resource-staging-server/cert.pem | ||
| --- | ||
| apiVersion: v1 | ||
| kind: Service | ||
| metadata: | ||
| name: spark-resource-staging-service | ||
| spec: | ||
| type: NodePort | ||
| selector: | ||
| resource-staging-server-instance: default | ||
| ports: | ||
| - protocol: TCP | ||
| port: 10000 | ||
| targetPort: 10000 | ||
| nodePort: 31000 | ||
|
||
Large diffs are not rendered by default.
This file was deleted.
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.
Does this image exist already?
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.
We need to publish this: https://github.com/apache-spark-on-k8s/spark/blob/branch-2.1-kubernetes/resource-managers/kubernetes/docker-minimal-bundle/src/main/docker/resource-staging-server/Dockerfile