Skip to content

Commit c47714e

Browse files
committed
example updates
1 parent b1cf5bf commit c47714e

File tree

9 files changed

+7
-12
lines changed

9 files changed

+7
-12
lines changed

behavorial/BatchJob/job.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ spec:
2222
name: random-generator
2323
command:
2424
- java
25-
# Use / as classpath to pick up the class file
26-
- -classpath
27-
- /
2825
# Class running batch job
2926
- RandomRunner
3027
# 1. Arg: File to store data (on a PV)

behavorial/DaemonService/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Nevertheless, let's create a DaemonSet with
1616

1717
[source, bash]
1818
----
19-
kubectl create -f ./daemonset.yml
19+
kubectl create -f https://k8spatterns.io/DaemonService/daemonset.yml
2020
----
2121

2222
You can now check the generates pods with

behavorial/DaemonService/daemonset.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
- -c
2828
- >-
2929
while true; do
30-
java -cp / RandomRunner /host_dev/random 100000;
30+
java RandomRunner /host_dev/random 100000;
3131
sleep 30;
3232
done
3333
# Mount host's /dev directory

behavorial/PeriodicJob/cron-job.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ spec:
1616
command:
1717
- java
1818
# Use / as classpath to pick up the class file
19-
- -classpath
20-
- /
2119
# Class running batch job
2220
- RandomRunner
2321
# 1. Arg: File to store data (on a PV)

behavorial/SingletonService/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# DeploymentConfig for starting up the random-generator
1+
# Deployment for random-generator service for starting up the random-generator
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:

foundational/DeclarativeDeployment/recreate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ spec:
3232
initialDelaySeconds: 15
3333
readinessProbe:
3434
exec:
35-
command: [ "stat", "/random-generator-ready" ]
35+
command: [ "stat", "/opt/random-generator-ready" ]

foundational/DeclarativeDeployment/rolling-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ spec:
4242
initialDelaySeconds: 15
4343
readinessProbe:
4444
exec:
45-
command: [ "stat", "/random-generator-ready" ]
45+
command: [ "stat", "/opt/random-generator-ready" ]

foundational/HealthProbe/deployment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ spec:
3434
readinessProbe:
3535
# We are checking for a file created by our app when its ready
3636
exec:
37-
command: [ "stat", "/random-generator-ready" ]
37+
command: [ "stat", "/opt/random-generator-ready" ]

foundational/ManagedLifecycle/pod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
command:
2222
- sh
2323
- -c
24-
- sleep 30 && echo "Wake up!" > /postStart_done
24+
- sleep 30 && echo "Wake up!" > /opt/postStart-done
2525
# Call out to the /shutdown endpoint. Check logs for the result
2626
preStop:
2727
httpGet:

0 commit comments

Comments
 (0)