Skip to content

Commit

Permalink
fix deployment template
Browse files Browse the repository at this point in the history
  • Loading branch information
thanh-nguyen-dang committed Jun 5, 2024
1 parent fab62b9 commit 3aaf628
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions kube/services/spark/spark-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ spec:
volumeMounts:
- name: namenode-pv-storage
mountPath: /hadoop/dfs/name
imagePullPolicy: Always
volumeClaimTemplates:
- metadata:
name: namenode-pv-storage
Expand Down Expand Up @@ -61,6 +62,7 @@ spec:
volumeMounts:
- name: datanode-pv-storage
mountPath: /hadoop/dfs/data
imagePullPolicy: Always
volumeClaimTemplates:
- metadata:
name: datanode-pv-storage
Expand All @@ -79,21 +81,12 @@ metadata:
spec:
replicas: 1
selector:
# Only select pods based on the 'app' label
matchLabels:
app: spark
revisionHistoryLimit: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
app: resourcemanager
template:
metadata:
labels:
app: spark
dbsheepdog: "yes"
GEN3_DATE_LABEL
app: resourcemanager
spec:
affinity:
podAntiAffinity:
Expand Down Expand Up @@ -132,6 +125,7 @@ spec:
envFrom:
- configMapRef:
name: hadoop-spark-config
imagePullPolicy: Always

---
apiVersion: apps/v1
Expand Down Expand Up @@ -185,6 +179,7 @@ spec:
envFrom:
- configMapRef:
name: hadoop-spark-config
imagePullPolicy: Always

---
apiVersion: apps/v1
Expand Down Expand Up @@ -239,6 +234,7 @@ spec:
envFrom:
- configMapRef:
name: hadoop-spark-config
imagePullPolicy: Always

---
apiVersion: apps/v1
Expand Down Expand Up @@ -292,3 +288,4 @@ spec:
envFrom:
- configMapRef:
name: hadoop-spark-config
imagePullPolicy: Always

0 comments on commit 3aaf628

Please sign in to comment.