Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit f2aed23

Browse files
author
Corneil du Plessis
authored
Ensure dataflow and skipper use ports above 1024 in pods (#5137)
Fixes #5136
1 parent dc70517 commit f2aed23

File tree

8 files changed

+17
-13
lines changed

8 files changed

+17
-13
lines changed

src/carvel/config/dataflow-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spec:
4444
mountPath: /workspace/runtime/secrets
4545
readOnly: true
4646
ports:
47-
- containerPort: 80
47+
- containerPort: 9393
4848
startupProbe:
4949
httpGet:
5050
port: 9393

src/carvel/config/skipper-deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ spec:
4242
readOnly: true
4343
#@ end
4444
ports:
45-
- containerPort: 80
45+
- containerPort: 7577
4646
startupProbe:
4747
httpGet:
4848
port: 7577

src/kubernetes/server/server-deployment.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ spec:
2626
mountPath: /etc/secrets/database
2727
readOnly: true
2828
ports:
29-
- containerPort: 80
29+
- containerPort: 9393
3030
livenessProbe:
3131
httpGet:
3232
path: /management/health
33-
port: 80
33+
port: 9393
3434
initialDelaySeconds: 45
3535
readinessProbe:
3636
httpGet:
3737
path: /management/info
38-
port: 80
38+
port: 9393
3939
initialDelaySeconds: 45
4040
startupProbe:
4141
tcpSocket:
42-
port: 80
42+
port: 9393
4343
initialDelaySeconds: 15
4444
periodSeconds: 3
4545
failureThreshold: 120
@@ -60,7 +60,7 @@ spec:
6060
fieldRef:
6161
fieldPath: "metadata.namespace"
6262
- name: SERVER_PORT
63-
value: '80'
63+
value: '9393'
6464
- name: SPRING_CLOUD_CONFIG_ENABLED
6565
value: 'false'
6666
- name: SPRING_CLOUD_DATAFLOW_FEATURES_ANALYTICS_ENABLED

src/kubernetes/server/server-svc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
type: LoadBalancer
1111
ports:
1212
- port: 80
13+
targetPort: 9393
1314
name: scdf-server
1415
selector:
1516
app: scdf-server

src/kubernetes/skipper/skipper-deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
mountPath: /etc/secrets/database
2727
readOnly: true
2828
ports:
29-
- containerPort: 80
29+
- containerPort: 7577
3030
livenessProbe:
3131
httpGet:
3232
path: /actuator/health
@@ -59,6 +59,8 @@ spec:
5959
value: 'en_US.utf8'
6060
- name: JDK_JAVA_OPTIONS
6161
value: '-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8'
62+
- name: SERVER_PORT
63+
value: '7577'
6264
- name: SPRING_CLOUD_CONFIG_ENABLED
6365
value: 'false'
6466
- name: SPRING_CLOUD_KUBERNETES_CONFIG_ENABLE_API

src/templates/kubernetes/server/server-deployment.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,16 @@ spec:
2626
mountPath: /etc/secrets/database
2727
readOnly: true
2828
ports:
29-
- containerPort: 80
29+
- containerPort: 8080
3030
livenessProbe:
3131
httpGet:
3232
path: /management/health
33-
port: 80
33+
port: 8080
3434
initialDelaySeconds: 45
3535
readinessProbe:
3636
httpGet:
3737
path: /management/info
38-
port: 80
38+
port: 8080
3939
initialDelaySeconds: 45
4040
resources:
4141
limits:
@@ -56,7 +56,7 @@ spec:
5656
fieldRef:
5757
fieldPath: "metadata.namespace"
5858
- name: SERVER_PORT
59-
value: '80'
59+
value: '8080'
6060
- name: SPRING_CLOUD_CONFIG_ENABLED
6161
value: 'false'
6262
- name: SPRING_CLOUD_DATAFLOW_FEATURES_ANALYTICS_ENABLED

src/templates/kubernetes/server/server-svc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ spec:
1010
type: LoadBalancer
1111
ports:
1212
- port: 80
13+
targetPort: 8080
1314
name: scdf-server
1415
selector:
1516
app: scdf-server

src/templates/kubernetes/skipper/skipper-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ spec:
2626
mountPath: /etc/secrets/database
2727
readOnly: true
2828
ports:
29-
- containerPort: 80
29+
- containerPort: 7577
3030
livenessProbe:
3131
httpGet:
3232
path: /actuator/health

0 commit comments

Comments
 (0)