fixed all-in-one.yaml

This commit is contained in:
dhaval055
2023-10-18 12:46:49 +00:00
parent acd29076a8
commit 11c176f56d
+39 -53
View File
@@ -230,18 +230,15 @@ metadata:
io.kompose.service: opensearch io.kompose.service: opensearch
name: opensearch name: opensearch
spec: spec:
type: NodePort
ports: ports:
- name: "9200" - name: "9200"
port: 9200 port: 9200
targetPort: 9200 targetPort: 9200
nodePort: 31001
selector: selector:
io.kompose.service: opensearch io.kompose.service: opensearch
status: status:
loadBalancer: {} loadBalancer: {}
--- ---
apiVersion: v1 apiVersion: v1
@@ -250,7 +247,7 @@ metadata:
name: shuffle-apps-pv name: shuffle-apps-pv
spec: spec:
capacity: capacity:
storage: 10Gi storage: 5Gi
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
persistentVolumeReclaimPolicy: Retain persistentVolumeReclaimPolicy: Retain
@@ -258,39 +255,38 @@ spec:
hostPath: hostPath:
path: /mnt/shuffle-data/backend path: /mnt/shuffle-data/backend
## --- ---
apiVersion: v1
kind: PersistentVolume
metadata:
name: shuffle-files-pv
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: shuffle-data
hostPath:
path: /mnt/shuffle-data/backend
# apiVersion: v1 ---
# kind: PersistentVolume
# metadata:
# name: shuffle-files-pv
# spec:
# capacity:
# storage: 5Gi
# accessModes:
# - ReadWriteOnce
# persistentVolumeReclaimPolicy: Retain
# storageClassName: fast
# hostPath:
# path: /mnt/shuffle-data/backend
# --- apiVersion: v1
kind: PersistentVolumeClaim
# apiVersion: v1 metadata:
# kind: PersistentVolumeClaim creationTimestamp: null
# metadata: labels:
# creationTimestamp: null io.kompose.service: backend-files-claim
# labels: name: backend-files-claim
# io.kompose.service: backend-files-claim spec:
# name: backend-files-claim accessModes:
# spec: - ReadWriteOnce
# accessModes: storageClassName: shuffle-data
# - ReadWriteOnce resources:
# storageClassName: fast requests:
# resources: storage: 5Gi
# requests: # status: {}
# storage: 1Gi
# status: {}
--- ---
@@ -307,10 +303,11 @@ spec:
storageClassName: shuffle-data storageClassName: shuffle-data
resources: resources:
requests: requests:
storage: 1Gi storage: 5Gi
# status: {} # status: {}
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@@ -341,19 +338,12 @@ spec:
name: shuffle-backend name: shuffle-backend
spec: spec:
volumes: volumes:
# - name: shuffle-files - name: shuffle-files
# persistentVolumeClaim: persistentVolumeClaim:
# claimName: backend-files-claim claimName: backend-files-claim
# - name: shuffle-apps
# hostPath:
# path: /mnt/shuffle-data/backend
# type: DirectoryOrCreate
- name: shuffle-apps - name: shuffle-apps
persistentVolumeClaim: persistentVolumeClaim:
claimName: backend-apps-claim claimName: backend-apps-claim
# - name: docker-socket
# hostPath:
# path: /var/run/docker.sock
# nodeSelector: # nodeSelector:
# node: master # node: master
containers: containers:
@@ -640,12 +630,10 @@ spec:
- containerPort: 5001 - containerPort: 5001
resources: {} resources: {}
volumeMounts: volumeMounts:
# - name: docker-socket
# mountPath: /var/run/docker.sock
- name: shuffle-apps - name: shuffle-apps
mountPath: /app/generated mountPath: /app/generated
# - name: shuffle-files - name: shuffle-files
# mountPath: /shuffle-files mountPath: /shuffle-files
restartPolicy: Always restartPolicy: Always
status: {} status: {}
@@ -662,12 +650,10 @@ metadata:
io.kompose.service: backend io.kompose.service: backend
name: shuffle-backend name: shuffle-backend
spec: spec:
type: NodePort
ports: ports:
- name: "50001" - name: "5001"
port: 5001 port: 5001
targetPort: 5001 targetPort: 5001
nodePort: 30009
selector: selector:
io.kompose.service: backend io.kompose.service: backend
status: status: