Skip to content

Latest commit

 

History

History
24 lines (23 loc) · 699 Bytes

File metadata and controls

24 lines (23 loc) · 699 Bytes

Deploying a Job

This Job makes use of secret vars, it should be filled out before attempting to deploy.

  1. Copy env file from a template:
cp .env.dist .env
  1. Edit .env file and fill out your secrets.
  2. Ensure the secret file is ignored by git.
  3. Deploy the sample.

Calling a Job

The Job generates random number and prints env vars configured in job.yaml and loaded from secret .env file. The following request performs its functionality:

curl -X POST "http://localhost:7005/pub/job/python-env-secret/latest/api/v1/perform" \
  -H "Content-Type: application/json" \
  -d '{}'
# Expect:
# {
#  "model": "zoo",
#  "result": 0.844725159639815,
#  "passwd": "itworks!"
# }