YAML for Kubernetes Apply Deployment
Apply Kubernetes manifests to a cluster using kubectl apply.
YAML examples for Kubernetes Apply Deployment
Deploy to Google Kubernetes Engine
yaml
- action: "Kubernetes - deployment apply"
type: "KUBERNETES_APPLY"
config_path: "config.yaml"
validate: true
record_arg: "NOT_SET"
overwrite_arg: true
save_config_arg: true
force_arg: false
kubectl_version: "latest"
cascade: "FOREGROUND"
grace_period_arg: 1
targets:
- target: my_gke_cluster
type: GKE
name: My GKE Cluster
integration: my_integration
cluster: cluster-1
project: tokyo-house-138923
zone: europe-west1-c
Deploy to self-managed Kubernetes cluster
yaml
- action: "Apply Deployment"
type: "KUBERNETES_APPLY"
config_path: config.yml
cascade_arg: true
grace_period_arg: 180
kubectl_version: v1.19.0
targets:
- target: my_target_id
auth:
token: 'test-token'
method: TOKEN
name: my-target
type: K8S_CLUSTER
cluster: https://192.168.5.226:6443
Deploy to Amazon EKS cluster
yaml
- action: "Apply Deployment"
type: "KUBERNETES_APPLY"
config_path: "config.yaml"
cascade_arg: true
grace_period_arg: 0
kubectl_version: "1.11.1"
targets:
- target: my_eks_cluster
type: EKS
name: My EKS Cluster
integration: my_integration
cluster: cluster-1
region: us-west-2
role_arn: arn:aws:iam::344123456789:role/EKS_TESTS
Deploy to Azure AKS cluster
yaml
- action: "Apply Deployment"
type: "KUBERNETES_APPLY"
config_path: "config.yaml"
cascade_arg: true
grace_period_arg: 0
kubectl_version: "1.11.1"
targets:
- target: my_aks_cluster
type: AKS
name: My AKS Cluster
integration: my_integration
cluster: buddy-tests
subscription: d4fd0732-1b7f-47ff-8ca9-8b003428dcd8
resource_group: test-buddy_group
Deploy to DigitalOcean Kubernetes cluster
yaml
- action: "Apply Deployment"
type: "KUBERNETES_APPLY"
config_path: "config.yaml"
cascade_arg: true
grace_period_arg: 0
kubectl_version: "1.11.1"
targets:
- target: my_doks_cluster
type: DOKS
name: My DOKS Cluster
integration: my_integration
cluster: 0ec55079-0398-4cfc-9b51-97e07cb07ae7
Apply and prune resources missing from the configuration
yaml
- action: "Apply and prune"
type: "KUBERNETES_APPLY"
config_path: "k8s/"
prune_arg: true
all_arg: true
prune_whitelist_arg: "core/v1/ConfigMap"
targets:
- target: my_gke_cluster
type: GKE
name: My GKE Cluster
integration: my_integration
cluster: cluster-1
project: tokyo-house-138923
zone: europe-west1-c