Skip to content

Instantly share code, notes, and snippets.

View pashok2398's full-sized avatar

Pavel Druyan pashok2398

View GitHub Profile
@pashok2398
pashok2398 / gist:b347d5a2da1987b458ec941cc9895a85
Created July 16, 2020 09:58
openhab-docker-compose.yaml
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 March 6, 2019 07:59
Delete oldest pod k8s cronJob
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: your-cron
spec:
schedule: "0 0 */2 * *"
concurrencyPolicy: Forbid
jobTemplate:
spec:
template: