With VS Code, you can carry out a range of Kubernetes tasks using just the Command Palette.
Launch the Command Palette using the 'Manage'
menu (gear icon),
and select any of the listed tasks prefixed with Cloud Code: you'd like to run.
This is the full list of available Cloud Code commands:
Command | Purpose |
---|---|
Help | View our welcome experience |
Report Kubernetes Extension Issue on GitHub | Open a pre-populated issue on GitHub |
New Application | Create a new application from a template |
Run on Kubernetes | Run the current application on the active cluster |
Set as Current Context | Set the context for the active cluster |
Remove from Context | Set the given cluster as the current active cluster |
Set as Active Namespace | Set the given namespace as the current active namespace |
Refresh Cluster Context Explorer | Refresh the explorer |
View Logs | Open a terminal and write out the current logs from the container |
Stream Logs | Open a terminal and stream logs from the container |
Copy Resource Value | Copy the value of the given resource |
Open URL | Open URL in a web browser |
Describe | Give a detailed description of the resource |
Delete | Delete the given resource |
Open Dashboard | Open the Kubernetes dashboard |
Get Terminal | Open a terminal into the container |
Create Kubernetes resource from current file | Create a Kubernetes resource based on the configuration of the currently open file |
Diff the current JSON/YAML file with Kubernetes deployed resource | View the differences between a YAML file in source control and a deployed YAML file |
Apply the current JSON/YAML file to the Kubernetes deployed resource | Apply the current configuration file to a deployed resource |
Open Minikube dashboard for starting/stopping local Minikube cluster | Open Minikube dashboard to monitor and configure a local Minikube cluster |
Mount Secret as Volume | Mount the secret as a deployment in a base64 decoded file |
Add Secret as Environment Variable | Add an environment variable to the deployment with the value of the secret (base64 decoded) |