Skip to content

irvifa/kubernetes-batch-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-batch-api-example

Build

docker build -t <dockerimage-name> \
  --build-arg SLACK_WEBHOOK_URL_ARG=${SLACK_WEBHOOK_URL} \
  --build-arg CLUSTER_NAMESPACE_ARG=${CLUSTER_NAMESPACE}

After building the image you can run this in your local, however it's not recommended to include your secret like the webhook into your Dockerimage directly.

Deployment

  • Build
docker build -t <dockerimage-name>
  • Push Dockerimage
  • Create a Secret
kubectl -n <NAMESPACE> create secret generic app-secret --from-literal=slackwebhook='<SLACK_WEBHOOK>'
  • Change the fields of $namespace, $clusterNamespace, and $imageName.
  • You can use kubectl apply -f k8s --recursive

About

Example of Kubernetes Batch API usage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published