Skip to content

Instantly share code, notes, and snippets.

Avatar

Pavel Druyan pashok2398

View GitHub Profile
View gist:b347d5a2da1987b458ec941cc9895a85
version: "3"
services:
openhab:
image: openhab/openhab:2.5.5
restart: always
network_mode: "host"
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/hosts:/etc/hosts"
@pashok2398
pashok2398 / pod-deleter.yaml
Last active Mar 6, 2019
Delete oldest pod k8s cronJob
View pod-deleter.yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: your-cron
spec:
schedule: "0 0 */2 * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
You can’t perform that action at this time.