Changelog
- feat: add exponential backoff delay for failed hooks (#211 )
- fix build: remove sources and .git from final image, update versions (#213, #202)
- update versions: alpine 3.12 (#201), kubectl 1.19.4, go 1.15
- tests: fix for long running generator (#207)
Installation and usage
Create image with your hooks added into /hooks directory:
Dockerfile
FROM flant/shell-operator:v1.0.0-beta.13
ADD pods-hook.sh /hooks
Push to registry, create rbac and create a Pod or Deployment:
apiVersion: v1
kind: Pod
metadata:
name: shell-operator
spec:
containers:
- name: shell-operator
image: registry.mycompany.com/shell-operator:monitor-pods
imagePullPolicy: Always
serviceAccountName: monitor-pods-acc
Check README for more information and /examples for inspiration.