Run kubectl command

step

Provides general kubectl use and can take kubectl commands.

Specification

cluster

Required

object
A map of configuration and credentials for accessing a Kubernetes cluster.
cluster.name

Required

string
A name for the Kubernetes cluster. Used for referencing it via kubectl contexts.
cluster.connection

Required

A Relay Kubernetes connection to useConnection docs
!Connection {type: kubernetes, name: my-kubernetes-connection}
command

Required

string
The command to pass to kubectl. For example, `apply`.
args
Optional
string
A string of arguments for commands other than `apply`.
file
Optional
string
A resource file to use when command is `apply`.
namespace
Optional
string
The namespace to run the command under.
git
Optional
object
A git repository containing Kubernetes manifests
git.connection
Optional
A Relay SSH connection to useConnection docs
!Connection {type: ssh, name: my-ssh-connection}
git.name

Required

string
A directory name for the git clone.
git.branch
Optional
string
The Git branch to clone.
git.repository

Required

string
The git repository URL.

Join our community

We’re excited to see and share in our community’s creation. Take a look at our community overview to learn how to begin contributing to Relay.