Skip to content

Instantly share code, notes, and snippets.

Created December 20, 2022 15:04
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save henryeleonu/157c513a560d384cf05339549a9afb09 to your computer and use it in GitHub Desktop.
spark pod
apiVersion: v1
kind: Pod
name: spark-pod
namespace: default
app: spark-pod
serviceAccountName: spark-sa
- name: spark-container-official
image: heleonu/spark-py-kube:1.2
imagePullPolicy: Always #"IfNotPresent"
#command: ["bash", "-c", "while true; do echo 1; sleep 1; done"]
command: ["jupyter", "notebook", "--ip", "", "--allow-root"]
- containerPort: 7077
- containerPort: 8080
- containerPort: 2222
- containerPort: 7777
- secretRef:
name: mysecret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment