Skip to content

Commit

Permalink
add hostAliases for "warehouse.minio"
Browse files Browse the repository at this point in the history
  • Loading branch information
eslamdyab21 committed Jan 19, 2025
1 parent 86b6aa5 commit 70293b6
Showing 1 changed file with 25 additions and 60 deletions.
85 changes: 25 additions & 60 deletions k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
labels:
app: spark-master
spec:
hostAliases:
- ip: "10.97.11.170"
hostnames:
- "warehouse.minio"
containers:
- name: spark-master
image: tabulario/spark-iceberg
Expand Down Expand Up @@ -185,29 +189,11 @@ spec:
port: 5010
targetPort: 5010
---
apiVersion: v1
kind: Service
metadata:
name: spark-master-out-service
namespace: lakehouse
spec:
type: NodePort
selector:
app: spark-master
ports:
- name: p1
protocol: TCP
port: 8888
targetPort: 8888
nodePort: 30001
- name: p2
protocol: TCP
port: 8080
targetPort: 8080
nodePort: 30002


---



apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -216,7 +202,7 @@ metadata:
labels:
app: spark-worker
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app: spark-worker
Expand All @@ -225,6 +211,10 @@ spec:
labels:
app: spark-worker
spec:
hostAliases:
- ip: "10.97.11.170"
hostnames:
- "warehouse.minio"
containers:
- name: spark-worker
image: tabulario/spark-iceberg
Expand Down Expand Up @@ -389,27 +379,10 @@ spec:
port: 5010
targetPort: 5010
---
apiVersion: v1
kind: Service
metadata:
name: spark-worker-out-service
namespace: lakehouse
spec:
type: NodePort
selector:
app: spark-worker
ports:
- name: p1
protocol: TCP
port: 8888
targetPort: 8888
nodePort: 30010
- name: p2
protocol: TCP
port: 8081
targetPort: 8081
nodePort: 30011
---




apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -427,6 +400,10 @@ spec:
labels:
app: rest
spec:
hostAliases:
- ip: "10.97.11.170"
hostnames:
- "warehouse.minio"
containers:
- name: rest
image: apache/iceberg-rest-fixture
Expand Down Expand Up @@ -540,6 +517,7 @@ metadata:
name: minio
namespace: lakehouse
spec:
clusterIP: 10.97.11.170
selector:
app: minio
ports:
Expand All @@ -552,23 +530,10 @@ spec:
port: 9001
targetPort: 9001
---
apiVersion: v1
kind: Service
metadata:
name: minio-out-service
namespace: lakehouse
spec:
type: NodePort
selector:
app: minio
ports:
- name: p1
protocol: TCP
port: 9001
targetPort: 9001
nodePort: 30004

---



apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -610,7 +575,7 @@ spec:
command: ["/bin/sh", "-c"]
args:
- |
until (/usr/bin/mc config host add minio http://minio:9000 admin password) do
until (/usr/bin/mc config host add minio $MINIO_ENDPOINT $AWS_ACCESS_KEY_ID $AWS_SECRET_ACCESS_KEY) do
echo '...waiting...' && sleep 1;
done;
/usr/bin/mc mb --ignore-existing minio/warehouse;
Expand Down

0 comments on commit 70293b6

Please sign in to comment.