bright-policeman-43626
05/21/2024, 2:21 AMkubernetes-exec
I love running the actions directly in the containers!
---
kind: Deploy
type: container
name: redis
description: Redis container edge-api-cc
spec:
image: redis:5-alpine
ports:
- name: redis
containerPort: 6379
healthCheck:
command: [redis-cli, ping]
---
# Run action for Redis clear task
kind: Run
type: kubernetes-exec
name: redis-clear
description: Redis clear task
dependencies: [deploy.redis]
spec:
resource:
kind: "Deployment"
name: "redis"
command: [redis-cli, flushall]