Skip to main content

Pod Action

Pod action allows you to run an arbitrary pod on your kubernetes cluster.

ping-database-from-pod.yaml
apiVersion: mission-control.flanksource.com/v1
kind: Playbook
metadata:
name: ping-database-from-pod
spec:
description: Create a pod and ping the database
actions:
- name: Ping database
pod:
name: Ping db from the pod
spec:
containers:
- name: my-alpine-container
image: ubuntu:jammy
command: ['/bin/sh']
args:
- -c
- 'apt-get update -y && apt-get install -y iputils-ping && ping -c 2 postgres.default.svc.cluster.local'
resources:
limits:
memory: 128Mi
cpu: '1'
requests:
memory: 64Mi
cpu: '0.2'
FieldDescriptionTypeRequired
nameName of the pod that'll be createdstringtrue
specFull pod specificationPodSpectrue
maxLengthMaximum length of the logs to show (default: 3000 characters)integer
artifactsSpecify what artifacts generated in the pod needs to be saved[]Artifact

Artifact

FieldDescriptionTypeRequired
pathPath or glob.stringtrue

Read more ...