1 Star 0 Fork 0

龙彦/docker-spark

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
k8s-spark-cluster.yaml 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
apiVersion: v1
kind: Service
metadata:
name: spark-master
spec:
selector:
app: spark-master
ports:
- name: web-ui
protocol: TCP
port: 8080
targetPort: 8080
- name: master
protocol: TCP
port: 7077
targetPort: 7077
- name: master-rest
protocol: TCP
port: 6066
targetPort: 6066
clusterIP: None
---
apiVersion: v1
kind: Service
metadata:
name: spark-client
spec:
selector:
app: spark-client
clusterIP: None
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spark-master
labels:
app: spark-master
spec:
selector:
matchLabels:
app: spark-master
template:
metadata:
labels:
app: spark-master
spec:
containers:
- name: spark-master
image: bde2020/spark-master:3.3.0-hadoop3.3
imagePullPolicy: Always
ports:
- containerPort: 8080
- containerPort: 7077
- containerPort: 6066
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: spark-worker
labels:
app: spark-worker
spec:
selector:
matchLabels:
name: spark-worker
template:
metadata:
labels:
name: spark-worker
spec:
containers:
- name: spark-worker
image: bde2020/spark-worker:3.3.0-hadoop3.3
imagePullPolicy: Always
ports:
- containerPort: 8081
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fuli39_admin/docker-spark.git
[email protected]:fuli39_admin/docker-spark.git
fuli39_admin
docker-spark
docker-spark
master

搜索帮助