代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。