Skip to content

Commit

Permalink
MET-6296 Refactor directory structure
Browse files Browse the repository at this point in the history
Rename some files to unify formatting
  • Loading branch information
Ruufuus committed Dec 17, 2024
1 parent 1d80152 commit e57ae45
Show file tree
Hide file tree
Showing 13 changed files with 27 additions and 27 deletions.
20 changes: 10 additions & 10 deletions paas/deploy.sh → paas/deploy-flink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ oc project | grep ecloud-flink-poc
echo Project OK

#Configure volumes
oc apply -f deployments-volume.yaml
oc apply -f web-upload-volume.yaml
oc apply -f job-manager-working-volume.yaml
oc apply -f job-manager-dumps-volume.yaml
oc apply -f flink-data-volume.yaml
oc apply -f flink/deployments-volume.yaml
oc apply -f flink/web-upload-volume.yaml
oc apply -f flink/job-manager-working-volume.yaml
oc apply -f flink/job-manager-dumps-volume.yaml
oc apply -f flink/flink-data-volume.yaml

#Configure service account used by Flink to manipulate Kubernetes
oc apply -f service-account/flink-sa-role.yaml
oc apply -f service-account/flink-sa.yaml
oc apply -f service-account/flink-sa-rolebinding.yaml

# Configuration and service definition
oc apply -f flink-configuration-configmap.yaml
oc apply -f jobmanager-service.yaml
oc apply -f flink/flink-configuration-configmap.yaml
oc apply -f flink/job-manager-service.yaml

# Create the deployments for the cluster
oc apply -f jobmanager-session-deployment.yaml
oc apply -f taskmanager-session-deployment.yaml
oc apply -f flink/job-manager-session-deployment.yaml
oc apply -f flink/task-manager-session-deployment.yaml

# Create client
oc apply -f flink-client.yaml
oc apply -f flink/flink-client.yaml
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ data:
# the conf/masters file, this will be taken care of automatically. Yarn
# automatically configure the host name based on the hostname of the node where the
# JobManager runs.
address: flink-jobmanager
address: flink-job-manager
# The RPC port where the JobManager is reachable.
port: 6123
memory:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Service
metadata:
name: flink-jobmanager
name: flink-job-manager
spec:
type: ClusterIP
ports:
Expand All @@ -13,4 +13,4 @@ spec:
port: 8081
selector:
app: flink
component: jobmanager
component: job-manager
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flink-jobmanager
name: flink-job-manager
spec:
replicas: 1
selector:
matchLabels:
app: flink
component: jobmanager
component: job-manager
template:
metadata:
labels:
app: flink
component: jobmanager
component: job-manager
spec:
serviceAccountName: flink-sa
imagePullSecrets:
- name: image-registry-pull
containers:
- name: jobmanager
- name: job-manager
image: registry.paas.psnc.pl/ecloud-poc/metis-processing-engine-flink:1.20-java21
imagePullPolicy: Always
args: ["jobmanager"]
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: flink-taskmanager
name: flink-task-manager
spec:
replicas: 1
selector:
matchLabels:
app: flink
component: taskmanager
component: task-manager
template:
metadata:
labels:
app: flink
component: taskmanager
component: task-manager
spec:
serviceAccountName: flink-sa
imagePullSecrets:
- name: image-registry-pull
containers:
- name: taskmanager
- name: task-manager
image: registry.paas.psnc.pl/ecloud-poc/metis-processing-engine-flink:1.20-java21
imagePullPolicy: Always
args: ["taskmanager"]
Expand Down
File renamed without changes.
File renamed without changes.
12 changes: 6 additions & 6 deletions paas/redeploy-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ oc project | grep ecloud-flink-poc
echo Project OK

# Remove the deployments for the cluster
oc delete -f jobmanager-session-deployment.yaml
oc delete -f taskmanager-session-deployment.yaml
oc delete -f flink/job-manager-session-deployment.yaml
oc delete -f flink/task-manager-session-deployment.yaml

# Remove client
oc delete -f flink-client.yaml
oc delete -f flink/flink-client.yaml

# Create the deployments for the cluster
oc apply -f jobmanager-session-deployment.yaml
oc apply -f taskmanager-session-deployment.yaml
oc apply -f flink/job-manager-session-deployment.yaml
oc apply -f flink/task-manager-session-deployment.yaml

# Create client
oc apply -f flink-client.yaml
oc apply -f flink/flink-client.yaml

0 comments on commit e57ae45

Please sign in to comment.