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.
- Host: GitHub
- URL: https://github.com/irvifa/kubernetes-batch-api-example
- Owner: irvifa
- Created: 2020-04-16T07:08:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-05-22T23:23:18.000Z (about 3 years ago)
- Last Synced: 2025-05-30T01:38:09.490Z (about 1 year ago)
- Topics: kubernetes, kubernetes-cli
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`