Skip to content

Instantly share code, notes, and snippets.

@henryeleonu
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
metadata:
name: spark-pod
namespace: default
labels:
app: spark-pod
spec:
serviceAccountName: spark-sa
containers:
- 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", "0.0.0.0", "--allow-root"]
ports:
- containerPort: 7077
- containerPort: 8080
- containerPort: 2222
- containerPort: 7777
envFrom:
- secretRef:
name: mysecret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment