An open API service indexing awesome lists of open source software.

https://github.com/irvifa/kubernetes-batch-api-example

Example of Kubernetes Batch API usage.
https://github.com/irvifa/kubernetes-batch-api-example

kubernetes kubernetes-cli

Last synced: 2 months ago
JSON representation

Example of Kubernetes Batch API usage.

Awesome Lists containing this project

README

          

# kubernetes-batch-api-example

## Build

```aidl
docker build -t \
--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
```
- Push `Dockerimage`
- Create a `Secret`
```
kubectl -n create secret generic app-secret --from-literal=slackwebhook=''
```
- Change the fields of `$namespace`, `$clusterNamespace`, and `$imageName`.
- You can use `kubectl apply -f k8s --recursive`