Knowledge

Kubernetes kubectl

Parameters
Name Description
name Required String The name of the action.
trigger_time Required String Specifies when the action should be executed. Can be one of ON_EVERY_EXECUTION, ON_FAILURE or ON_BACK_TO_SUCCESS.
type Required String The type of the action. Should be set to KUBERNETES_CLI.
auth_type Required String Authorization type. Can be one of BASIC, TOKEN or CERTS.
server Required String The host for the connection.
execute_commands Required String[] The commands that will be executed.
login String The username required when auth_type is set to BASIC.
passwordString The password required when auth_type is set to BASIC.
token String The token required when auth_type is set to TOKEN.
client_ca String The certificate authority required when auth_type is set to CERTS.
client_cert String The client certificate required when auth_type is set to CERTS.
client_key String The client key required when auth_type is set to CERTS.
after_action_id Integer The numerical ID of the action, after which this action should be added.
integration_id Required Integer The ID of the Google integration.
zone_id Required String The ID of the GKE zone.
cluster Required String The ID of the GKE cluster.
application_id Required String The ID of the GKE application.
Example
actions:
  - action: "Run kubectl"
    type: "KUBERNETES_CLI"
    trigger_time: "ON_EVERY_EXECUTION"
    auth_type: "BASIC"
    server: "https://123.45.56.89:6443"
    login: "admin"
    password: "qwerty"
    execute_commands:
    - "kubectl --namespace=buddy-tests get pods"
actions:
  - action: "Run kubectl"
    type: "KUBERNETES_CLI"
    trigger_time: "ON_EVERY_EXECUTION"
    zone_id": "europe-west1-c"
    cluster": "cluster-1"
    application_id": "tokyo-house-138923"
    execute_commands:
    - "kubectl --namespace=buddy-tests get pods"
    integration_id: 2

Get started now

14 days of unlimited trial. No credit card required.