Skip to content

Instantly share code, notes, and snippets.

@nomastmas
nomastmas / cascade_delete.py
Created May 24, 2017 20:31
script to reproduce pods not being deleted on job delete through python api client
from __future__ import unicode_literals
from time import sleep
import yaml
from kubernetes import client, config
from kubernetes.client.rest import ApiException
job_template = """
apiVersion: batch/v1
seleniumhub:
image: selenium/hub
ports:
- 4444:4444
firefoxnode:
image: selenium/node-firefox
ports:
- 5900
links: