Skip to content

Commit 9aafd06

Browse files
LucasRoesleralexellis
authored andcommitted
Update cronjob examples to allow entrypoint images
**What** - Move the `/bin/sh` to the `command` field so that it defines the container entrypoint as the shell. This is the most robust way to define these jobs and supports the new `faas-cli` docker image that sets `faas-cli` as the entrypoint - Reference https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#notes Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
1 parent 2090ed1 commit 9aafd06

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

docs/reference/cron.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ spec:
5454
containers:
5555
- name: openfaas-cli
5656
image: openfaas/faas-cli:0.8.3
57-
args:
57+
command:
5858
- /bin/sh
59+
args:
5960
- -c
6061
- echo "verbose" | faas-cli invoke nodeinfo -g http://gateway.openfaas:8080
6162
restartPolicy: OnFailure
@@ -172,8 +173,9 @@ spec:
172173
secretKeyRef:
173174
name: basic-auth
174175
key: basic-auth-password
175-
args:
176+
command:
176177
- /bin/sh
178+
args:
177179
- -c
178180
- echo -n $PASSWORD | faas-cli login -g http://gateway.openfaas:8080 -u $USERNAME --password-stdin
179181
- echo "verbose" | faas-cli invoke nodeinfo -g http://gateway.openfaas:8080

0 commit comments

Comments
 (0)