The Kubectl plugin allows you to configure YAML deployments into Kubernetes clusters that are part of an environment and have Kubernetes (via Kubectl)
in the cluster definition.
Microservice deployments use an apply
deployment command to configure new deployments and upgrade existing deployments. You can use the Additional options for Kubectl deployment parameter to provide a list of flags and options for the apply
command. The flags and options are added to the apply
command in the following order; options that are later prepended can override previously configured values.
-
Configuration: The Additional options for Kubectl parameter
-
Cluster definition:
Namespace
-
Cluster definition:
Kubeconfig context
-
Deployment:
Additional options
After invoking the apply
command, the plugin procedure invokes the following set of commands to retrieve the deployment details for each Deployment object: get deployment <deploymentName> -o=json
. Each deployment JSON is parsed to retrieve the list of containers that were deployed. These containers are reported to the environment inventory. If the plugin fails to find any deployments in the YAML files, no containers are reported to the environment inventory.