Skip to content

Commit

Permalink
[CI] Update k8s probes [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Jan 29, 2024
1 parent a0b1df8 commit 24fee74
Show file tree
Hide file tree
Showing 14 changed files with 36 additions and 34 deletions.
3 changes: 1 addition & 2 deletions src/carvel/config/dataflow-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ spec:
ports:
- containerPort: 9393
startupProbe:
httpGet:
tcpSocket:
port: 9393
path: #@ dataflow_liveness_path()
failureThreshold: 4
initialDelaySeconds: 10
timeoutSeconds: 3
Expand Down
7 changes: 3 additions & 4 deletions src/carvel/config/skipper-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,23 @@ spec:
ports:
- containerPort: 7577
startupProbe:
httpGet:
tcpSocket:
port: 7577
path: /actuator
failureThreshold: 4
initialDelaySeconds: 10
timeoutSeconds: 3
periodSeconds: 15
livenessProbe:
httpGet:
path: /actuator/health
path: /actuator/health/liveness
port: 7577
failureThreshold: 4
initialDelaySeconds: 1
timeoutSeconds: 3
periodSeconds: 15
readinessProbe:
httpGet:
path: /actuator/info
path: /actuator/health/readiness
port: 7577
failureThreshold: 3
initialDelaySeconds: 5
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/k8s/deploy-scdf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if [ "$K8S_DRIVER" != "tmc" ] && [ "$K8S_DRIVER" != "gke" ]; then
case $BROKER in
"kafka")
# TODO get version from yaml spec.template.spec.containers[0].image
sh "$SCDIR/load-image.sh" "confluentinc/cp-kafka:5"
sh "$SCDIR/load-image.sh" "confluentinc/cp-kafka:5.5.2"
sh "$SCDIR/load-image.sh" "confluentinc/cp-zookeeper:5"
;;
"rabbit" | "rabbitmq")
Expand Down
7 changes: 3 additions & 4 deletions src/deploy/k8s/yaml/server-deployment-pro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,17 @@ spec:
containerPort: 9393
livenessProbe:
httpGet:
path: /management/health
path: /management/health/liveness
port: 9393
initialDelaySeconds: 45
readinessProbe:
httpGet:
path: /management/info
path: /management/health/readiness
port: 9393
initialDelaySeconds: 45
startupProbe:
httpGet:
tcpSocket:
port: 9393
path: /management/health
failureThreshold: 3
timeoutSeconds: 3
initialDelaySeconds: 60
Expand Down
4 changes: 2 additions & 2 deletions src/deploy/k8s/yaml/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ spec:
name: http
livenessProbe:
httpGet:
path: /management/health
path: /management/health/liveness
port: 9393
initialDelaySeconds: 1
readinessProbe:
httpGet:
path: /management/info
path: /management/health/readiness
port: 9393
initialDelaySeconds: 1
startupProbe:
Expand Down
4 changes: 2 additions & 2 deletions src/deploy/k8s/yaml/skipper-deployment-pro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ spec:
name: jdwp-skipper
livenessProbe:
httpGet:
path: /actuator/health
path: /actuator/health/liveness
port: 7577
initialDelaySeconds: 1
readinessProbe:
httpGet:
path: /actuator/info
path: /actuator/health/readiness
port: 7577
initialDelaySeconds: 1
startupProbe:
Expand Down
4 changes: 2 additions & 2 deletions src/deploy/k8s/yaml/skipper-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ spec:
name: jdwp-skipper
livenessProbe:
httpGet:
path: /actuator/health
path: /actuator/health/liveness
port: 7577
initialDelaySeconds: 1
readinessProbe:
httpGet:
path: /actuator/info
path: /actuator/health/readiness
port: 7577
initialDelaySeconds: 1
startupProbe:
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ scdf-type:
maintenance-snapshot: '1.5.4-SNAPSHOT'
default:
scdf-type: 'oss'
version: 'release'
version: 'snapshot'
package-version: '2.11.3-SNAPSHOT'
2 changes: 1 addition & 1 deletion src/docker-compose/docker-compose-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ version: '3'
services:

kafka-broker:
image: confluentinc/cp-kafka:5
image: confluentinc/cp-kafka:5.5.2
container_name: dataflow-kafka
expose:
- "9092"
Expand Down
7 changes: 4 additions & 3 deletions src/kubernetes/mariadb/mariadb-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ spec:
ports:
- containerPort: 3306
name: mariadb
requests:
cpu: 2000m
memory: 1Gi
resources:
requests:
cpu: 2000m
memory: 1Gi
volumeMounts:
- name: data
mountPath: /var/lib/mariadb
Expand Down
8 changes: 4 additions & 4 deletions src/kubernetes/server/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ spec:
- containerPort: 9393
livenessProbe:
httpGet:
path: /management/health
path: /management/health/liveness
port: 9393
initialDelaySeconds: 45
initialDelaySeconds: 0
readinessProbe:
httpGet:
path: /management/info
path: /management/health/readiness
port: 9393
initialDelaySeconds: 45
initialDelaySeconds: 0
startupProbe:
tcpSocket:
port: 9393
Expand Down
4 changes: 2 additions & 2 deletions src/kubernetes/skipper/skipper-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ spec:
- containerPort: 7577
livenessProbe:
httpGet:
path: /actuator/health
path: /actuator/health/liveness
port: 7577
initialDelaySeconds: 1
periodSeconds: 60
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /actuator/info
path: /actuator/health/readiness
port: 7577
initialDelaySeconds: 1
periodSeconds: 10
Expand Down
12 changes: 8 additions & 4 deletions src/templates/kubernetes/server/server-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ spec:
- containerPort: 8080
livenessProbe:
httpGet:
path: /management/health
path: /management/health/liveness
port: 8080
initialDelaySeconds: 45
initialDelaySeconds: 0
readinessProbe:
httpGet:
path: /management/info
path: /management/health/readiness
port: 8080
initialDelaySeconds: 45
initialDelaySeconds: 0
startupProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 15
resources:
limits:
cpu: 1.0
Expand Down
4 changes: 2 additions & 2 deletions src/templates/kubernetes/skipper/skipper-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ spec:
- containerPort: 7577
livenessProbe:
httpGet:
path: /actuator/health
path: /actuator/health/liveness
port: 7577
initialDelaySeconds: 1
periodSeconds: 60
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /actuator/info
path: /actuator/health/readiness
port: 7577
initialDelaySeconds: 1
periodSeconds: 10
Expand Down

0 comments on commit 24fee74

Please sign in to comment.