Something pretty cool about the `kubernetes-exec` ...
# 💻|contributing
b
Something pretty cool about the
kubernetes-exec
I love running the actions directly in the containers!
Copy code
---
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]