Skip to content

Commit 111b0f4

Browse files
committed
chore: Some minor fixes
1 parent eed8b9e commit 111b0f4

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

advanced/ImageBuilder/knative/README.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ kubectl logs random-generator-with-template-pod-0ae221 -c build-step-image-build
116116

117117
=== Deploy application
118118

119-
When you have build the random-generatot with one of the methods above, you can deploy it easily.
119+
When you have build the random-generator with one of the methods above, you can deploy it easily.
120120
Unfortunately, for picking up images, Kubernetes (or at least Minikube) doesn't support service DNS lookups in the `image:` field of a container specification.
121121

122122
So we need to insert the IP adress directly which you can do while deploying, like in:

behavorial/DaemonService/daemonset.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ spec:
1313
labels:
1414
app: random-refresher
1515
spec:
16-
# Only use nodes with the label 'feature=hw-rng' enabled
17-
nodeSelector:
18-
feature: hw-rng
1916
# Also run on the the master even it's tainted
2017
tolerations:
2118
- key: node-role.kubernetes.io/master
@@ -28,7 +25,11 @@ spec:
2825
command:
2926
- sh
3027
- -c
31-
- "while true; do java -cp / RandomRunner /host_dev/random 100000; sleep 30; done"
28+
- >-
29+
while true; do
30+
java -cp / RandomRunner /host_dev/random 100000;
31+
sleep 30;
32+
done
3233
# Mount host's /dev directory
3334
volumeMounts:
3435
- mountPath: /host_dev

configuration/ConfigurationResource/pod.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,13 @@ spec:
3030
volumeMounts:
3131
- name: config-volume
3232
mountPath: /config
33+
- name: secret-volume
34+
mountPath: /secret
3335
volumes:
34-
# Volume is mounted directly from a config map
36+
- name: secret-volume
37+
secret:
38+
secretName: my-secret
3539
- name: config-volume
3640
configMap:
3741
name: random-generator-config
42+
# Volume is mounted directly from a config map

0 commit comments

Comments
 (0)